On Wed, Sep 15, 2010 at 8:57 AM, xi developer <xidevelope...@gmail.com> wrote:
> 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.

A Service is a Context. Use the Service as your Context.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

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