Rectangle 27 0

Delete "cordova.js" in project, before uploading to And try this below code.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi"/>
<link rel="stylesheet" href="jqm/"/>
<link rel="stylesheet" href="jqm/"/>
<script src="js/jquery.js"></script>
<script src="jqm/"></script>
<script src="js/cordova.js"></script>
<script type="text/javascript">
            var page = $.mobile.activePage.attr("id");
        document.addEventListener("deviceready", function () {
            document.addEventListener("menubutton", menuKeyDown, true);
        }, false);
        function menuKeyDown() {
                alert('Menu button pressed.');

I just tried your code above, seems to work finally. :) So that means there's no way to intermingle this with jQuery Mobile then?

cordova - How to detect back and menu button on Android? PhoneGap + jQ...

jquery cordova jquery-mobile