simon wrote:
> The Problem is, that i can't get my SelfWrittenContentProvider out of the 
> Context.

Use managedQuery() in your Activity or other Context to retrieve data, e.g.:

toursCursor=managedQuery(getIntent().getData(), PROJECTION, null, null, 
null);

Use insert(), update(), delete(), and kin on ContentResolver (from 
getContentResolver()) for data manipulation, e.g.:

Uri url=getContentResolver().insert(Provider.Tours.CONTENT_URI, values);

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training on the Ranch in September! http://www.bignerdranch.com

--~--~---------~--~----~------------~-------~--~----~
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]
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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to