You don't do anything special to use it from another app, just use ContentResolver to perform a query or whatever operation you want on the appropriate URI. This will use the URI's authority to find the other app's content provider, launch it, perform the operation on it, and return the result.
On Tue, Jan 20, 2009 at 11:02 PM, [email protected] <[email protected] > wrote: > > Just went through a thread > > > http://groups.google.com/group/android-developers/browse_thread/thread/9804e683c7cebfc3/fe94e57e8f6f5847?lnk=gst&q=inserting+to+database+using+SQLite#fe94e57e8f6f5847 > > where in some details about what a content provider does is given > > Could some one help with the following > > 1. How do i use the content provider defined to interact with an > application. > I mean the database defined is for use in the program only, then > how can i use this content provider from another program. > > 2. Is there an example depicting using of content providers. How are > the content providers accessed else where so tht he databases defined > in it be created at run time. > > Need urgent help regarding how to use a content provider from other > applications. > > Cheers, > Sunit > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

