I guess an option is to declare a static Cursor in your Activity, then call manageQuery once. Subsequently, in the service, you can just do a requery() on the Cursor object.
On Nov 1, 5:01 pm, "Lillian Brandão" <[EMAIL PROTECTED]> wrote: > Hi, > > I have an application which access database information and I need to > retrieve this information inside a service (subclass of Service) method. In > order to access the database info, I need to call the method managedQuery of > an Activity instance 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? > > Thanks in advance, > Lillian Brandão. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

