Hello there, I want to populate ExpandableListView from database. But
I can't create the DBAdapter object in class extends
BaseExpandableListAdapter, because I don't know what context must be
passed to DBAdapter constructor. I use DBAdapter db = new
DBAdapter(AutoContacts.this); but it doesn't work (AutoContacts is
main class extends Activity).
And here is DBAdapter constructor:
public DBAdapter(Context ctx) {
this.context = ctx;
DBHelper = new DatabaseHelper(context);
}
--
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