Is it possible to use the accelerometer in a background service?

by Dianne Hackborn » Thu, 10 Sep 2009 03:42:13 GMT


Sponsored Links
 There is no need to use getBaseContext(); Service is itself a Context.







-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~



Is it possible to use the accelerometer in a background service?

by John Smith » Thu, 10 Sep 2009 06:21:53 GMT


 2009/9/10 dadical <keyes...@gmail.com>:



Thanks for that I think the problem was far simpler, I was coding late
at night and I didn't set the class to implement SensorEventListener
:)

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Using OpenGL to draw bitmap in Oval shape

Hi All,

Can OpenGL manipulate the Bitmap reference that is passed, to show in
any shape e.g., Oval, curve and draw it on the Canvas?

Thanks

-- 

2. problem in taking log

Hello,

I want to take log but my USB cabel is facing problem as there is
issue in driver. is there any ohter alternate of it ?

-- 

3. creating and opening sqlitedb on sdcard for api7

4. Clockwise landscape orientation

5. Access adbd from within Android app

6. voot WTA : id-android kapan Noban?

7. get debug flag from manifest