On Fri, Jul 6, 2012 at 7:36 AM, Rajis <[email protected]> wrote:
>> I've googled so much about content provider but i haven't able to land on
>> a single simple example. Everyone shows how to share a data inside an app,
>> not between two apps. Pls try to put up an example or sample code; Will be
>> much useful :) Thnx in advance :)
>
>

In general asking people to post example code isn't likely to get you
as many answers... because nobody has time to write up examples and
test them, etc...

But to use a content provider between two apps you do the exact same
procedure as the within the app, except that your URI for things
changes (to the other app).  You *do* have to be careful: you have to
ensure that the other app is actually *there*, and that it's the
correct version you need.  (I.e., the schemas didn't change or
anything...).

So, to be clear, why do you need to do this?  If you need a relatively
tight coupling between the apps anyway, then they shouldn't be two
separate apps, they should be a single app.

kris

-- 
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

Reply via email to