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

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

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. OOT:Kalau bosen dengan n1? ? ?

malam para suhu sekalian..

bagi yang punya n1 (yg gak pnya ya gpp)

jika kalian bosan dengan N1..
dan ingin beli handphone baru, HP apa yg ingin dibeli??
(trserah hp apa aja, mo yg available ato yg coming soon)


"Indonesian Android Community [id-android]" 

2. Numbers aligned to the right in EditText

Is it possible to align text in the EditText widget to the right? I do
not see any such a property. Am I missing it or maybe there is no such
an option.


3. Is it possible to use 2.6.31 linux kernel with android 2.1

4. SQLite onUpgrade

5. Amdroid Market apk

6. Porting Android to Logipd zoom1

7. (currently nonworking) attempt at USB host mode for MSM7201