DBHelper should take the Context object as a parameter in the ctor. Use this 
passed context in the call to ProgressDialog.show(). When you instantiate 
the DBHelper object in GolfCaddie activity, pass "this" as the parameter in 
the ctor. Also make sure you call the DBHelper method to create the db in an 
AsyncTask as I explained earlier. The said AsyncTask should be in GolfCaddie 
Activity.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to