6

I have a sencha touch 2 based mobile app. I want to show a menu when users clicks on the menu button of android device.

How can I do that.

Vikash Agrawal
  • 101
  • 1
  • 9

2 Answers2

0

If you are wrapping your application with phonegap/cordova, see the Cordova API.

If you are not see this question.

Good Luck,

Brad

Community
  • 1
  • 1
bwags
  • 998
  • 9
  • 16
0

Sencha Touch does not support the Menu or Back buttons on Android, without wrapping the app using Cordova (or something like it). The functionality simply is not possible at this time with Sencha Touch alone.

Once you have Cordova ready for use in your ST app, you can listen for the menu button using this:

document.addEventListener("menubutton", function() {
    //do your menu functionality here
}, false);
kevhender
  • 4,285
  • 1
  • 13
  • 16