activity ComponentInfo{com.example.abdullah.newstroynory/com.example.abdullah.newstroynory.MainActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java-wrap
android.view.View$1.onClick(View.java:3039)E/AndroidRuntime(894): Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
E/AndroidRuntime(894): at android.database.AbstractCursor
我已经寻找了很长一段时间的解决方案,但仍然找不到合适的方法让它发挥作用。public Cursor lastrow() { try{ db = this.getReadableDatabase(); // Read Data
String query = "SELECT ID As _id, Spinpos, Detai
请求android.database.CursorIndexOutOfBoundsException:索引0,大小为0
这是我的活动。: Unable to start activity ComponentInfo{tubapps.datepickerdb/tubapps.datepickerdb.IncomeActivity}: android.database.CursorIndexOutOfBoundsException: Index
start activity ComponentInfo{com.example.socialize_us/com.example.socialize_us.PhoneBookActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
04-03 05:33:43.090: E/AndroidRuntime(963): at android.app.ActivityThread.perf
基本上我有这个:for (int i = 0; i < cur.getColumnCount(); i++) {
String name = cur.getColumnName请求的android.database.CursorIndexOutOfBoundsException:索引-1 (大小为0)引起的错误AndroidRuntime
int count = 0; count++; //here, count is recordsreturn hasObject;rocess: com.example.s210121629.myhealth, PID: 10953
android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of <em