i have an activity called startactivity. from this i start a second activity by button
in the second one i create a handler which interacts like a new thread for 26 seconds. ( it checks every 600 ns something )
the problem is when the user clicks the back button on the phone. i tried
in the onPause() but without success. the handle runs further and brings an exception after 26 seconds because of an alert on the wrong activity called from the handler callback method.
how can i cancel the handler correctly?