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

