Quick question, I have a listview that's populated from a database through an AsyncTask. I use an if statement to decide which db method to get a cursor from. The db methods work great outside an asynctask, but only works inside the asynctask when the Log code is there.
if (i == 1) {
c = cdb.getFive();
Log.d("TAG5", DatabaseUtils.dumpCursorToString(c));
}
works, but
if (i == 1) {
c = cdb.getFive();
//Log.d("TAG5", DatabaseUtils.dumpCursorToString(c));
}
doesn't work. Any ideas why?
EDIT - That code is in doInBackground()