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; /*www . j ava 2 s . 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.FireworkWriter; public class FireworkSaver extends AsyncTaskLoader<Firework> { private final FireworkWriter writer; private final Firework firework; public static final int LOADER_ID = 123; public FireworkSaver(Context context, FireworkWriter writer, Firework firework) { super(context); this.writer = writer; this.firework = firework; forceLoad(); } @Override public Firework loadInBackground() { writer.saveFirework(firework); return firework; } }