Indexoutofboundsexception Error On Android Device Not On Emulator
Here is the problem that I am dealing with right now with my Android App. Program works fine on emulator without any error but errors out on real device running same OS. I have a
Solution 1:
Your cursor/database is probably empty - no rows. Try:
if (cur.moveToFirst()) { // returns false if cursor is empty
widget_enabled = cur.getInt(0);
} else {
widget_enabled = 0;
}
Post a Comment for "Indexoutofboundsexception Error On Android Device Not On Emulator"