Hello Again, I was successfully able to implement my customized content provider. However there are a couple questions I would like to ask.
The content provider seems to create a database inside the application that I first call it in. When I open up another application to insert into that content provider, it appears to work correctly and write in in the database of the first application. However, when I reboot android and run the second application, it creates a new database and writes it inside of the second application. How do I prevent this problem from occurring? Is there a way to make sure the content providers database is always located within the first application? Thanks again everyone. On Apr 24, 2:30 pm, ccylan <[EMAIL PROTECTED]> wrote: > Hello Everyone, > > Recently I've been trying to figure out how to have a background > service push data into a database and then read from that database > with another application. Initially I thought about just using the > various sql classes available, but then I discovered that the > databases for each application are only available to that > application. So after snooping around a little bit I found out about > ContentProvider. However, I'm still confused about how to use it even > after reading the "accessing content providers" page. > > I've been looking through DatabaseContentProvider since it seems like > I can use databases in conjunction with the ContentProvider, does this > mean that the database I create using the contentprovider accessible > to all my other applications? How would I access this database from > another application? Would it be done with that "content://..." > interface? > > I'm a bit confused so the way I wrote things out might not make sense, > please ask me for clarification on my questions if you need. > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

