E edgar_ortiz Active Member Licensed User Longtime User Dec 22, 2015 #1 Hi, I need to share a SQLite with TWO app... I found this link... but really I'm stuck... how can I do this in B4A? http://developer.android.com/training/basics/data-storage/databases.html Thanks in advance Edgar
Hi, I need to share a SQLite with TWO app... I found this link... but really I'm stuck... how can I do this in B4A? http://developer.android.com/training/basics/data-storage/databases.html Thanks in advance Edgar
eurojam Well-Known Member Licensed User Longtime User Dec 22, 2015 #2 you can put the database into the external storage from the 1. App and access it from the second. the location will be: Code: Copy File.Combine(File.DirRootExternal, "Android/data/<package name of 1. app>/files") You should read the sql tutorial: https://www.b4x.com/android/forum/threads/sql-tutorial.6736/ Upvote 0
you can put the database into the external storage from the 1. App and access it from the second. the location will be: Code: Copy File.Combine(File.DirRootExternal, "Android/data/<package name of 1. app>/files") You should read the sql tutorial: https://www.b4x.com/android/forum/threads/sql-tutorial.6736/
klaus Expert Licensed User Longtime User Dec 22, 2015 #3 The code in the link you posted is what the SQL library does. You could read chapter 5 SQLite Database in the B4A User's Guide, it contains example projects. In some examples the database is stored in File.DirInternal, you can replace File.DirInternal by File.DirRootExternal. In File.DirRootExternal you could also define a subfolder to store the database. Upvote 0
The code in the link you posted is what the SQL library does. You could read chapter 5 SQLite Database in the B4A User's Guide, it contains example projects. In some examples the database is stored in File.DirInternal, you can replace File.DirInternal by File.DirRootExternal. In File.DirRootExternal you could also define a subfolder to store the database.