SQLite Context may not be initialized

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

SQLite Context may not be initialized

Postby foebea » Wed Apr 22, 2009 5:38 pm

Good morning all, long time lurker first time poster.

I've been reading through the Wrox pro android book as well as the tutorials at http://pidget.sit.rp.sg/android/?p=66 and both use the same phrasing of code to work with the database. I am getting errors with these tutorials on multiple computers as such: context may not be initialized.

here is the bit in question.
Image

attached is the completed project with this error. I have been stuck at this spot trying everything I can think of for three days. Any assistance would be greatly appreciated.
Attachments
ShoppingList.zip
(37.55 KiB) Downloaded 37 times
User avatar
foebea
Freshman
Freshman
 
Posts: 4
Joined: Mon Apr 20, 2009 4:18 am
Location: Ohio

Top

resolved

Postby foebea » Wed Apr 22, 2009 7:30 pm

There's a mismatch in the class and constructor names ShoppingListDbAdapter / ShoppingListDBAdapter. The B!

I had rewritten the entire project 5 times and made the same error each time. Doh!
User avatar
foebea
Freshman
Freshman
 
Posts: 4
Joined: Mon Apr 20, 2009 4:18 am
Location: Ohio

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 3 guests