My problem would appear to be simple but I can find no information
which tells me how to correct the problem. There must be people who
use a temporary table and then delete all the rows and reuse it.
I create a temporary table. I can display the table using a ListView
and am able to select a single item. The next time I try to load data
data to the table I try to delete all rows from my temporary table and
populate it with new data. I use the following code to remove all
rows:
Cursor courseCursor = this.mDbHelper.fetchAllTempCourses();
startManagingCursor(courseCursor);
courseCursor.moveToFirst();
crsCount = courseCursor.getCount();
//
if (crsCount>0){
db.delete("TempCourses", null, null);
}
I receive the following error:
05-07 15:12:07.201: ERROR/AndroidRuntime(318):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.oys.gfa.acecapper/
com.oys.gfa.acecapper.DownSelectCourse}:
java.lang.NullPointerException
Any insight would be appreciated.
Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en