Skip to content Skip to sidebar Skip to footer

Access Database Of Another App

On the dev site, it says if your applications are signed with the same certificate you can share data. I would like to create a utility that I can pack with a csv file, sign and pa

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:

Post a Comment for "Access Database Of Another App"