F fpdianzen Member Licensed User Longtime User Feb 8, 2012 #1 hi! is there any aside from doing the kiosk mode. that my activity cannot be closed together with blocking the back key and home? :sign0104:
hi! is there any aside from doing the kiosk mode. that my activity cannot be closed together with blocking the back key and home? :sign0104:
JonPM Well-Known Member Licensed User Longtime User Feb 9, 2012 #2 Android does not allow you to block these keys Sent from my DROIDX Upvote 0
M MiniDemonic Member Licensed User Longtime User Feb 9, 2012 #3 B4X: Sub Activity_KeyPress (KeyCode As Int) As Boolean If KeyCode = 4 Then Return True End If End Sub That blocks the Back key. Blocking Home is impossible, and Kiosk Mode is your only choice. Upvote 0
B4X: Sub Activity_KeyPress (KeyCode As Int) As Boolean If KeyCode = 4 Then Return True End If End Sub That blocks the Back key. Blocking Home is impossible, and Kiosk Mode is your only choice.
Erel B4X founder Staff member Licensed User Longtime User Feb 9, 2012 #4 Note that you can use: B4X: Keycodes.KEYCODE_BACK instead of 4. It is a bit more clear. Upvote 0