Android Studio Connect With Existing Sqlite Database
Solution 1:
By default, each app's files are private to the app.
You could tell Android that your two apps should get permission to access each other's files by setting the sharedUserId
attribute for both and signing them with the same signature, but the 'official' way to give other apps access to your data is to create a content provider.
Solution 2:
Yes it is possible through the use of content providers. According to the documentation:
A content provider manages access to a central repository of data. A provider is part of an Android application, which often provides its own UI for working with the data. However, content providers are primarily intended to be used by other applications, which access the provider using a provider client object.
I suggest you read the following articles:
http://developer.android.com/guide/topics/providers/content-providers.html
http://www.tutorialspoint.com/android/android_content_providers.htm
Post a Comment for "Android Studio Connect With Existing Sqlite Database"