> I'm trying implement a background service to read data from a sensor and
> write into SQLite database. Therefore I have implement android service to
> run this task as a background service. But the problem here is since this is
> a service i need to extends this from Service class. And then when I try to
> access the sensor, it is impossible because to access a sensor it need to be
> an activity. And since i have already extends service I can not extend any
> more class.

You don't need to be an activity to access a sensor.

Pent

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to