Ertan Active Member Licensed User Jul 29, 2020 #1 Hi I want to create an event when the power button of the phone is pressed in my project. Keycodes it can not be found. B4X: Main - 119: Undeclared variable 'keycodes' is used before it was assigned any value. I don't have a problem with Android phones. I could not find a solution in the forum.
Hi I want to create an event when the power button of the phone is pressed in my project. Keycodes it can not be found. B4X: Main - 119: Undeclared variable 'keycodes' is used before it was assigned any value. I don't have a problem with Android phones. I could not find a solution in the forum.
Erel B4X founder Staff member Licensed User Longtime User Jul 29, 2020 #2 You cannot intercept the power button in Android or in iOS. Upvote 0