The error is that the activity cannot connect to the database by the application context when that option is checked.
I now created a second pointer, using the dbHelper class directly, and that seems to work. I am just concerned about side effects of having the db open twice, albeit briefly.
SQLiteDatabase myDb = myDbHelper.openDataBase();
...
myDb.close();
On Friday, September 28, 2012 9:17:42 PM UTC-4, G. Blake Meike wrote:
mmmm.... that's a little odd. Still no details, but I've done something similar in my code, a lot and have never noticed this problem. Did you, by any chance, pass the Activity context to the db, when you opened it?--If you are willing to share, I'd really love to see this code and the error it drives...
G. Blake MeikeMarakanaThe second edition of Programming Android is now on-line:
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment