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
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
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
3 matches
Mail list logo