Immy wrote: > Hi, > > Thanks for the reply.. > > This is what I'm doing in all other classes, which happen to be > Activities... > But here, > > Database_mob mDbHelper = new Database_mob(this); > > generates an error which says Database_mob(*classname*) is undefined.
That would be because classname is not a Context subclass. If classname is an inner class, use MyActivity.this instead, where MyActivity is the name of the activity class (or other Context). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

