I have a audio application which runs default ringtone continiously using runnable.I am posting this runnable and the music is getting played in runnable.However i have a flag which checks whether the user wants to stop the music or not.This flag i am setting when i want to stop the music but what is happening is that after i have pressed stop the thread is running for some more time and then stopping.I guess runnable is scheduled many times previously causing the thread to run even after when i have pressed stop.
I want to stop the runnable and stop the music once i press stop button.It should stop at the moment when i have pressed the stop button not afterwards.Please help me in resolving it. FYI......Remove callbacks is also not working. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

