Just call getContentResolver().query().  As the documentation for
managedQuery() says, it is just a wrapper around the underlying query
call that connects the returned cursor with the activity's lifecycle.
Since you are not doing this from an activity, there is nothing useful
about managedQuery().

On Apr 7, 12:24 am, Sashi <[EMAIL PROTECTED]> wrote:
> I have an IntentReceiver.  Inside of onReceiveIntent(), I need to
> query a content provider.  Normall, in an Activity, I'd just use
> managedQuery(...) which returns a Cursor.  However, that is a member
> of Activity only.   How can I make the same query inside of the
> IntentReceiver?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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