At the beginning, I would like to apologize for my bad English.
There is my problem:
Below timer is showing message at every 3 second , but when i getting out from the program (using back button) the message still pop out.
public Runnable mUpdateTimeTask = new Runnable(){
@Override
public void run() {
// TODO Auto-generated method stub
while (true) {
try {
Thread.sleep(3000);}
catch (Exception e) {
// TODO: handle exception
}
mHandler.post(new Runnable(){
@Override
public void run() {
Toast.makeText(getApplicationContext(), "Testing 3 Seconds", Toast.LENGTH_LONG).show();
}
});
}
}
};
i already use mHandler.removeCallbacks(mUpdateTimeTask);
still can't stop it.
Thanks in advance.