Hi Mark,

Thaks a lot! Now it's working fine!
About the activity (method managedQuery), I made a mistake. It's not
necessary.
Using DatabaseHelper to get a SQLiteDatabase instance is enough for me.

Thanks for the valuable help,

Lillian Brandão.


On Sat, Nov 1, 2008 at 10:16 PM, Mark Murphy <[EMAIL PROTECTED]>wrote:

>
> Lillian Brandão wrote:
> > In order to access the database info, I need to call the method
> > managedQuery of an Activity instance
>
> Why?
>
>  > but I don't know how to get an
> > instance of Activity from my service class. I've thought about starting
> > an activity from my service but I don't know how to do that.
> >
> > Does anyone have an idea of how to do that or suggest another approach?
>
> Just call getContentResolver().query(). Or, skip the whole content
> management thing and use DatabaseHelper to get a SQLiteDatabase instance
> and call query() or rawQuery() on it.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
>
> >
>

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