I have one Sqlite Database file. I want to share my sqlite database between two different android application. Is possible to do such ? if so the what necessary steps I should try ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The short answer: Yes.
The long answer: You will have to “register” your application to share its contents with your second application. That being said, the down side is, you will be sharing your contents with every other application too. Not that I see it being a problem since other developers will not necessarily know how to gain access to your app’s data using the Content Providers.
You can follow this link to read up about creating and access content providers.
Oh. Almost forgot. This is how you share data between applications. I have personally never heard of anyone having shared databases. DB’s are always private to their own application and never exposed to others including the users. See this link for more about Databases in Android