How can I make the process when some clicks on the Android menu button - Using the sencha touch2 application

I have a sencha touch 2 mobile application. I want to show a menu when users click the menu button of an Android device.

How can i do this.

+6
source share
2 answers

If you are terminating the application using phonegap / cordova, see the Cordoba API .

If you do not see this question .

Luck,

Brad

0
source

Sencha Touch does not support menu buttons or the Back button on Android without wrapping the app using Cordova (or something like that). Functionality is simply not possible at this time only with Sencha Touch.

Once you are ready to use the ST in your application, you can listen to the menu button using the following command:

document.addEventListener("menubutton", function() { //do your menu functionality here }, false); 
0
source

Source: https://habr.com/ru/post/948635/


All Articles