Android content provider within the same application

I have more than one action (inside the same application) that must have access to the database. What is the best sample to implement this? Do I need a content provider, even if all the actions belong to the same application?

What activities should be responsible for opening and closing the database?

+3
source share
2 answers

Not necessary. You just need to create a content provider if you want some external application to access your data.

0
source

: . - , , - Android (, ). Activity - , .

OReilly Android , , .

+3

Source: https://habr.com/ru/post/1754459/


All Articles