How to disable back button?

64 views
Skip to first unread message

Elias Fares

unread,
May 31, 2016, 12:49:30 PM5/31/16
to DroidScript
Hi,

When I run my application, is there a way to have the Android's back button disabled? The touch button that is on the bottom of every Android device.

Thanks,
Eli

Steve Garman

unread,
May 31, 2016, 1:44:02 PM5/31/16
to DroidScript
app.EnableBackKey( false );
will disable the back key in your application.

If you wish to provide alternative functionality for the back key, you should also create a function OnBack()

There is an example in the sample "App Events" or just search this group for EnableBackKey

Reply all
Reply to author
Forward
0 new messages