Chapter 6, Database Examples won't work on real device! Please help!
I cannot get any of the Database Try It Out examples presented from p225 onwards in Chapter 6 to work on my HTC Wildfire S device. Everything was going swimmingly up until now! I get the following dreaded message:
Sorry!
The application Databases (process com.baad.Databases) has stopped unexpectedly. Please try again.
Force close?
I am pretty sure the problem lies in the line:
Cursor c = db.getAllContacts(), but since I cannot find fault with that method (or any other for that matter) in the DBAdapter class I am at a loss.
Has anyone else experienced this problem? Do I need a uses-permission or something?
Please help! I have to write an application that uses my own database, so would really like to understand this example.
Thanks in advance!
Nick
|