Access Database Of Another App
Solution 1:
You could put your database on the external sdcard. There is no security there.
For sharing protected files the applications must be signed with the same cert and have matching android:sharedUserId in their AndroidManifest.xml files.
Your utility app could try opening the other apps database with an absolute pathname. I'm not sure what would happen with transaction management if both apps are modifying the db at the same time.
A better design is to have one application only own and access the database. Implement an "IMPORT" intent handler on the app that owns the database. Your utility application can send an Intent, specifying the csv filename in the intent extraData. Or you could just put the data on the Intent's extraData (if it's large then send an Intent for each record).
Solution 2:
The standard way is to implement a ContentProvider. Use permissions to control access. http://developer.android.com/guide/topics/providers/content-provider-basics.htmlhttp://developer.android.com/reference/android/content/ContentProvider.html
Post a Comment for "Access Database Of Another App"