I have a streaming app that has the option of a sleep timer. I have the code working within the service to stop the stream and do any clean up. I would also like to stop the activity that called it.
This works when the activity is displayed/active.
I'm not sure of what to do when the activity is paused. Is there a best practice for this kind of situation?
This works when the activity is displayed/active.
B4X:
CallSubDelayed2(GUI, "Activity_Pause", True)