[android-developers] Re: background services

2010-01-29 Thread JFrog
Hey Abhi, If what I've understood about dealing with the sensors right now, you don't need to start a background service. You can simply access the accelerometer values through the following: SensorManager myManager; Sensor sensors[ ]; myManager =

[android-developers] Re: background services

2010-01-29 Thread JFrog
Hey Abhi, If what I've understood about dealing with the sensors right now, you don't need to start a background service. You can simply access the accelerometer values through the following: SensorManager myManager; List Sensor sensors[ ]; myManager =

[android-developers] Re: background services

2010-01-29 Thread Abhi
JFrog, Thanks a ton for that reply. I will try not using a background service, the way you mentioned. Let me see how that goes and post something quick back here. Thanks again. Abhi On Jan 29, 8:49 am, JFrog jeremiah.paul.sna...@gmail.com wrote: Hey Abhi, If what I've understood about

[android-developers] Re: background services

2010-01-28 Thread Abhi
can anyone point me to a sample code that uses this? On Jan 28, 1:11 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hi, I have an application with a single activity. When the user taps the screen while on the activity, I want to start the accelerometer in the background (keeping the main