gameone Member Licensed User Jan 15, 2016 #1 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
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 Jan 15, 2016 #2 The goal will be to start a new activity when user go to home screen touch while activity is running & visible. Upvote 0
The goal will be to start a new activity when user go to home screen touch while activity is running & visible.
lemonisdead Well-Known Member Licensed User Longtime User Jan 15, 2016 #3 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
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.
gameone Member Licensed User Jan 15, 2016 #4 Yeah he work, i try that but they are some delay :/ Upvote 0
lemonisdead Well-Known Member Licensed User Longtime User Jan 15, 2016 #5 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
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).
gameone Member Licensed User Jan 15, 2016 #7 See they are a way but is no available on b4a. https://github.com/shaobin0604/Android-HomeKey-Locker I will start look how make librairy if possible from that and share it if i got it. Last edited: Jan 15, 2016 Upvote 0
See they are a way but is no available on b4a. https://github.com/shaobin0604/Android-HomeKey-Locker I will start look how make librairy if possible from that and share it if i got it.
Erel B4X founder Staff member Licensed User Longtime User Jan 17, 2016 #8 There is no reliable way to lock the home button. You can start with this tutorial: Android "Kiosk mode" tutorial Upvote 0
There is no reliable way to lock the home button. You can start with this tutorial: Android "Kiosk mode" tutorial