AsyncQueryService
Helper class that performs ContentProvider operations in a Service
Features:
- Executes the operation in a background Sservice which minimizes the chance of the operation getting lost because the caller (Activity) is killed.
- Designed for easy migration from AsyncQueryHandler.
- In additional to query/insert/update/delete, it also supports batch mode i.e. ContentProviderOperation
- Undo support in the form for delayed operation with cancel
Todo:
- Add wake lock
Change-Id: Id3b24a34e5af11da448bace585911bcd7d4553c5
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 975276a..cceff3b 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -130,6 +130,9 @@
<category android:name="android.intent.category.UNIT_TEST" />
</intent-filter>
</activity>
+
+ <service android:name=".AsyncQueryServiceHelper" />
+
</application>
</manifest>