[android-developers] Re: how to stop accelerometer sensor running in background?

2010-02-04 Thread Abhi
Also, the app exits only when I press the back button. On Feb 4, 9:14 am, Abhi abhishek.r.sha...@gmail.com wrote: I have an app where the accelerometer runs in the background and continues to read values from the sensor even after the activity exits. Here is how I am trying to stop it    

[android-developers] Re: how to stop accelerometer sensor running in background?

2010-02-04 Thread JP
There's more to it than onStop(). Check out onPause(), or better yet, revisit the documentation on the Activity model. So you get sense of the dynamic, override all activity methods, place logs in them and play around so you get a feel which method gets called when. On Feb 4, 6:14 am, Abhi

[android-developers] Re: how to stop accelerometer sensor running in background?

2010-02-04 Thread JFrog
I believe when I had been running across handling sensor inputs there was always the finish( ) functionality included in my onStop( ) in order to finalize the end of the Activity. Of course there will always be a provider for the Android sensors out there that the system is supplying. Not sure