Android Question Table update & separeted db file

luke2012

Well-Known Member
Licensed User
Longtime User
Hello to all.
Do you think that you I can update a sql files from one app to another?

I'll explain.
The App A and the App B are installed on the same device and have 2 db that have a common table but the dbs are "physically" separated because the app A has its db file and app B has its own in separate paths.

I somehow can access the db file of App B from App A (eg to perform an update on a table from App A)?

Thanks in advance for your reply.
 

Mahares

Expert
Licensed User
Longtime User
Do you think that you I can update a sql files from one app to another?

If the databases are not in File.DirInternal, which render the databases private to the particular app, you can attach one database to the other and manipulate any table of anyone of the two databases at will. See my post # 7 on how to ATTACH DATABASE in the following link:
https://www.b4x.com/android/forum/threads/copying-table-from-a-database-to-another.42139/
There are other links for: ATTACH DATABASE
 
Upvote 0
Top