> how to instantiate database class from this class. > if i do like db = new Database(this); it gives me error. > so how can i achieve this?
"normal" class got no idea what "Context" is. There's same thread on friday or sat if I remember correctly. The sugested solution was to extend Application class with singleton pattern and add static method to get the content. Check group archive. -- Regards, Marcin Orlowski -- 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

