Hi Again,

It seems like I'm talking to myself, but I managed to solve the
problem.
It turns out I had the provider tag in both of my applications, when
all that
was needed is a URI call within an application that wants to use the
provider.

On Apr 28, 4:25 pm, ccylan <[EMAIL PROTECTED]> wrote:
> Hello Again,
>
> I was successfully able to implement my customizedcontentprovider.
> However there are a couple questions I would like to ask.
>
> Thecontentproviderseems to create a database inside the application
> that I first call it in.  When I open up another application to insert
> into thatcontentprovider, 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 thecontentproviders 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 "accessingcontentproviders" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to