Android Question Share the same database (SQLite) for different applications

AUGUSTO CAVALEIRO

Member
Licensed User
Good afternoon,

I need to share the same database (SQLLIte) on the same device by two different applications. I tried using File.DirRootExternal but it doesn't work... can anyone help me?

Thanks in advance
 

aeric

Expert
Licensed User
Longtime User
Here is an example using UDP.

 
Upvote 0

DitoNet

Member
Licensed User
SQLite supports concurrent reads/writes, just enable WAL mode and place the database in a folder accessible to both applications.
B4X:
PRAGMA journal_mode = wal;
Regards, G.
 
Upvote 0
Top