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.
package com.novoda.sqliteprovider.demo.loader; /*from w w w . j a v a 2s . c o m*/ import android.content.Context; import android.support.v4.content.AsyncTaskLoader; 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) { super(context); this.fireworkReader = fireworkReader; forceLoad(); } @Override public List<Firework> loadInBackground() { return fireworkReader.getAll(); } }