I'm trying to access a content provider to read contact information using a managedQuery.
The problem is that I need to access this content from a class that extends BroadcastReceiver. As managedQuery is part of the Activity class, this is kinda hard.
The method that accesses the content provider is held within a utility class and is usually statically called using (Activity)this but as it is being called from a BroadcastReceiver I cannot typecast 'this' as an Activity.
Any help would be great.
Thanks in advance,