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
>
>                     @Override
>             protected void onStop()
>             {
>              mSensorManager.unregisterListener(mSensorListener, mySensor);
>              super.onStop();
>
>              }
>
> Am I doing it wrong?
>
> Abhi

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to