R ronovar Active Member Licensed User Longtime User May 12, 2016 #1 I need when user press HOME button on remote control to display message box...but i added thsi code and apk is paused and exit. Code: Copy 'GET - KeyPressed Sub Activity_KeyUp (KeyCode As Int) As Boolean 'SELECT - Remote Code Select KeyCode Case KeyCodes.KEYCODE_HOME Log("Display Meesage to exit apk? Yes OR No") End Select End Sub
I need when user press HOME button on remote control to display message box...but i added thsi code and apk is paused and exit. Code: Copy 'GET - KeyPressed Sub Activity_KeyUp (KeyCode As Int) As Boolean 'SELECT - Remote Code Select KeyCode Case KeyCodes.KEYCODE_HOME Log("Display Meesage to exit apk? Yes OR No") End Select End Sub
DonManfred Expert Licensed User Longtime User May 12, 2016 #2 You need to resume the event. Return true from the sub Additional I suggest to call a sub with callsubdelayed to display the message box there Upvote 0
You need to resume the event. Return true from the sub Additional I suggest to call a sub with callsubdelayed to display the message box there
R ronovar Active Member Licensed User Longtime User May 12, 2016 #3 I try Return True and callsubdelayed none worked. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 13, 2016 #4 ronovar said: I need when user press HOME button on remote control to display message box Click to expand... It is not possible. You cannot intercept the home button event. It will always cause Activity_Pause to be called and your app will move to the background. Upvote 0
ronovar said: I need when user press HOME button on remote control to display message box Click to expand... It is not possible. You cannot intercept the home button event. It will always cause Activity_Pause to be called and your app will move to the background.