[android-developers] Re: SQLite and DB query
Would you be willing to try a raw query?
Cursor c = db.rawQuery("SELECT * FROM players", null);
if (c != null) {
if (c.moveToFirst()) {
do {
int id = c.getInt(0);
// other fields etc
} while (c.moveToNext());
}
c.close();
}
Might be easier to debug.
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home