Android Question Activity_Pause code no run ?

gameone

Member
Licensed User
Here i have kind some of problem, i will like to Start a activity when my activity is paused.


Sub Activity_Pause (UserClosed As Boolean)
Log("Program paused or closed ?")
StartActivity(MyActivity)
End Sub


But that don't see work ? any idea ?
Thanks u
 

gameone

Member
Licensed User
The goal will be to start a new activity when user go to home screen touch while activity is running & visible.
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello,
When activity is paused, I would start a service which would start the required activity.
You would have to think about a global variable to check if the second activity should be started or not.
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
The delay is due to the device's speed. For some actions, like the Back key, perhaps could you block the keycode_back too when not needed (nothing to do with the Home key if your app is not the launcher).
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…