When I create a instance of the SQLiteOpenHelper, I always need a
"Context" to be passed as its constructor's argument. To use this
"Context", in my service layer class, I extends Activity class, though
I do not display this activity on the screen because it is my service
layer. I always get NullPointer exception when I open the
SQLiteOpenHelper in my service layer class, Is it because my service
layer class extends the Activity class but I did not show this
activity on mobile screen? (That's there is no intent to my service
layer class), if it is so, how to get rid of it if I wanna open a
SQLiteOpenHelper in my service layer class which do not need to
extends Activity, but need a Context object to pass to
SQLiteOpenHelper?

-- 
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