我的主要活动中有一个列表视图,当我们单击它时显示一个人的详细信息,我有两个类
EmployeeList.java - http://pastebin.com/5vPMKrCQ
DatabaseHelper.java - http://pastebin.com/NS7RR8E6
我的 logcat 中有以下异常。
05-09 16:58:10.278: E/CursorWindow(23310): Failed to read row 0, column -1 from a CursorWindow which has 2 rows, 3 columns.
05-09 16:58:10.368: E/AndroidRuntime(23310): java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.