You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (JIRA)" <ji...@apache.org> on 2012/10/02 20:37:08 UTC

[jira] [Created] (CB-1574) On Android 4.x events are only sent on every second menu button press

Simon MacDonald created CB-1574:
-----------------------------------

             Summary: On Android 4.x events are only sent on every second menu button press
                 Key: CB-1574
                 URL: https://issues.apache.org/jira/browse/CB-1574
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.1.0
            Reporter: Simon MacDonald
            Assignee: Simon MacDonald
             Fix For: 2.2.0


I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).

When I check logcat:
first press:  
W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null

second press: 
D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
D/CordovaWebView(19858): >>> loadUrlNow()
D/CordovaLog(19858): MENUBUTTON PRESSED
D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1574) On Android 4.x events are only sent on every second menu button press

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468589#comment-13468589 ] 

Joe Bowser commented on CB-1574:
--------------------------------

Does it break the back button? If not, go for it.  If the end user overrides the method, they broke it and get to keep both pieces.

                
> On Android 4.x events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1574) On Android 4.x events are only sent on every second menu button press

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467958#comment-13467958 ] 

Joe Bowser commented on CB-1574:
--------------------------------

This is reproducible in MobileSpec, BTW
                
> On Android 4.x events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1574) On Android 4.x events are only sent on every second menu button press

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468570#comment-13468570 ] 

Simon MacDonald commented on CB-1574:
-------------------------------------

I can reproduce this on all my 4.1 devices. Sadly, I don't know if there is much we can do about it. Here is the logs from my first key down on the menu button:

D/CordovaWebView( 3100): In onKeyPreIme with key code = 82
D/CordovaWebView( 3100): In onKeyDown with key code = 82
D/DroidGap( 3100): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@426122a0)
D/CordovaWebView( 3100): In onKeyPreIme with key code = 82
D/CordovaWebView( 3100): In onKeyUp with key code = 82

then when I click it a second time:

W/InputMethodManagerService(  397): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42a18560 attribute=null

As you can see the key handlers are never called. I need to look into that method in DroidGap a bit more but I'm off to a meeting.


                
> On Android 4.x events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1574) On Android 4.x events are only sent on every second menu button press

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468130#comment-13468130 ] 

Simon MacDonald commented on CB-1574:
-------------------------------------

This is not reproducible on my 4.0.4 phone. I can reproduce it in the 4.1 emulator and will give it a try on my 4.1 tablet tomorrow.
                
> On Android 4.x events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1574) On Android 4.x events are only sent on every second menu button press

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-1574:
---------------------------

    Priority: Minor  (was: Major)
    
> On Android 4.x events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1574) On Android 4.x events are only sent on every second menu button press

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468583#comment-13468583 ] 

Simon MacDonald commented on CB-1574:
-------------------------------------

If I go into DroidGap and change:

    public boolean onPrepareOptionsMenu(Menu menu) {
        this.postMessage("onPrepareOptionsMenu", menu);
        return super.onPrepareOptionsMenu(menu);
    }

to:

    public boolean onPrepareOptionsMenu(Menu menu) {
        this.postMessage("onPrepareOptionsMenu", menu);
        return false;
    }

then I see a menu key event for every press of the key. I'm sketchy about changing this especially since the end user can over-ride this method in their project to get the desired behaviour.
                
> On Android 4.x events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1574) On Android 4.x events are only sent on every second menu button press

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-1574:
---------------------------

    Priority: Major  (was: Minor)
    
> On Android 4.x events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1574) On Android 4.1 events are only sent on every second menu button press

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald updated CB-1574:
--------------------------------

    Summary: On Android 4.1 events are only sent on every second menu button press  (was: On Android 4.x events are only sent on every second menu button press)
    
> On Android 4.1 events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1574) On Android 4.1 events are only sent on every second menu button press

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald resolved CB-1574.
---------------------------------

    Resolution: Fixed

Checked in a fix for this issue.
                
> On Android 4.1 events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1574) On Android 4.x events are only sent on every second menu button press

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468132#comment-13468132 ] 

Joe Bowser commented on CB-1574:
--------------------------------

There shouldn't be a menu button on an Android 4.x device by default to begin with, since we're setting the target. 
                
> On Android 4.x events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1574) On Android 4.x events are only sent on every second menu button press

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468622#comment-13468622 ] 

Simon MacDonald commented on CB-1574:
-------------------------------------

No, this doesn't touch the back button code at all. I've tested the change on 2.3.5, 4.0.4 and 4.1.1 and it seems to work just fine. Plus anyone can over-ride it if they extend DroidGap. I will check in the change after lunch.


                
> On Android 4.x events are only sent on every second menu button press
> ---------------------------------------------------------------------
>
>                 Key: CB-1574
>                 URL: https://issues.apache.org/jira/browse/CB-1574
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>             Fix For: 2.2.0
>
>
> I want to implement a custom menu in my phonegap app. I have added an eventlistener for the menubutton event.
> When I press the menubutton the first time, it opens the menu. When I press it again, I close the menu.
> Every time after that that I want to open the menu, I have to press the menubutton twice (and to close, I have to press it also twice).
> When I check logcat:
> first press:  
> W/InputMethodManagerService(  315): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@421c95b8 attribute=null
> second press: 
> D/DroidGap(19858): onMessage(onPrepareOptionsMenu,com.android.internal.view.menu.MenuBuilder@41db3150)
> D/CordovaWebView(19858): >>> loadUrlNow()
> D/CordovaLog(19858): MENUBUTTON PRESSED
> D/CordovaLog(19858): file:///android_asset/www/app.js: Line 2393 : MENUBUTTON PRESSED
> I/Web Console(19858): MENUBUTTON PRESSED at file:///android_asset/www/app.js:2393

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira