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. unable to install ADT plugin for europa eclipse 3.3

Hello everybody,

I am getting following message while installing ADT plugin for europa
eclipse 3.3.

Android Development Tools (0.9.1.v200905011822-1621) requires plug-in
"org.eclipse.wst.sse.core".

Please suggest.

Thanks in advance!!

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

2. how to get the app name instead of the app package to appear in the manage apps menu?

Use android:label in the application (and optionally activity) tag.






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

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

3. Spinners not displaying selected item

4. where is the arm implemention of tls

5. We want to port android on FPGA as part of master thesis. Please help

6. Can one APK result in multiple icons/apps on the device?

7. custom attributes in properties view