Sqlite Android, 2 apps accessing a database

Asked

Viewed 70 times

1

How do I make 2 applications use the same database? If I create the bank in an app the other one does not access this bank, then how to make this 2nd app access this same bank?

1 answer

0

I’m not sure I understand your question, but if you created the bank on a smartphone, another one probably won’t have access. What you should do in this case is create a web service with a cloud bank where apps, regardless of which smartphone you’re on, can access. Do you understand? If you need to have databases on smartphones, make sure you need to sync to the cloud database via service (API, Web server, etc).

  • But would I have to make a cloud bank if I wanted to access a bank on 1 smartphone but in two apps? Example : one data logging application and another with the query of this data

  • The same bank is accessed. However via api.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.