-2

I am new to Android programming.you wanted to know that can an application add or modify database of some other application?

In short can two applications have access to same database in Android?

2 Answers2

1

Yes, this is what a ContentProvider is for. One app can expose an interface to query its own database to another app. You can read all about them here at the official docs.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
0

Yes, the data can be shared between different applications using ContentProvider like this:

enter image description here

enter image description here

If you want to learn further about this, I would recommend you a 1 day course on Content Provider from Udacity. You may need to sign in to view the course. It's free.

Yogesh Umesh Vaity
  • 41,009
  • 21
  • 145
  • 105