Android Open Source - sqlite-provider Firework Loader

From Project

Back to project page sqlite-provider.


The source code is released under:

Apache License

If you think the Android project sqlite-provider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.novoda.sqliteprovider.demo.loader;
/*from   w  w w  . j  a  v  a 2s  . c  o m*/
import android.content.Context;

import com.novoda.sqliteprovider.demo.domain.Firework;
import com.novoda.sqliteprovider.demo.persistance.FireworkReader;

import java.util.List;

public class FireworkLoader extends AsyncTaskLoader<List<Firework>> {

    public static final int LOADER_ID = 123;

    private final FireworkReader fireworkReader;

    public FireworkLoader(Context context, FireworkReader fireworkReader) {
        this.fireworkReader = fireworkReader;

    public List<Firework> loadInBackground() {
        return fireworkReader.getAll();

Java Source Code List