1

I have application and its configuration application. The configuration is very complicated so I decided to create a separate application for that. the configuration need to save data to the database and the application will read it. I saw that the sql lite is local to the application and I can't access the same db from both of them. Is there way to use the same database ? How ?

Thanks

1
  • Build your own ContentProvider ... Commented Aug 1, 2011 at 20:44

2 Answers 2

4

You can develop a Content Provider

Sign up to request clarification or add additional context in comments.

3 Comments

I'll also point out that you can have multiple launchable activities in the application, all of which would have direct access to the database -- two icons in the launcher even though they came from the same place...
Thanks, its sound good. do you have any link to example for that. I'm new to Android.
It's just a matter of setting things up in the manifest -- multiple intent filters. You'll also want to learn about task affinity
0

A content provider would be the ideal solution. You can also export the database to the sd card in your config app then import it any time your non config app starts up(or resumes).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.