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/11/18 18:10:58 UTC

[jira] [Created] (CB-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

Simon MacDonald created CB-1879:
-----------------------------------

             Summary: DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
                 Key: CB-1879
                 URL: https://issues.apache.org/jira/browse/CB-1879
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.2.0
            Reporter: Simon MacDonald
            Assignee: Simon MacDonald
            Priority: Minor


I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.

It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.

I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser commented on CB-1879:
--------------------------------

I guess we can use this and I can revert the last JS change.
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser updated CB-1879:
---------------------------

    Priority: Major  (was: Blocker)
    Assignee: Joe Bowser  (was: Simon MacDonald)

I can reproduce on this end, but this is not a blocker.
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Simon MacDonald commented on CB-1879:
-------------------------------------

Hey Joe, Tom posted a patch to SO. 

http://stackoverflow.com/questions/13433656/phonegap-not-firing-deviceready-on-android-4-2/13455618#13455618

Folks are reporting that it is working. Maybe we can check that in for now and work on the refactor.
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser commented on CB-1879:
--------------------------------

DeviceReady fired when I tested 4.2 on Friday.  I blame the emulator for being too slow and screwing something up.  People should wait on Intel to create an image.  The ARM one is too slow.
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Minor
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Andrew Grieve commented on CB-1879:
-----------------------------------

Committed this: https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=commit;h=3566154cd02b10cc1fb5dde39db30a02dc56a953


                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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] [Assigned] (CB-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser reassigned CB-1879:
------------------------------

    Assignee: Joe Bowser  (was: Andrew Grieve)
    
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser commented on CB-1879:
--------------------------------

Figured it out myself.  Switching to prompt for all input, because the annotation doesn't compile with the current SDK installed.
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Marcel Kinard commented on CB-1879:
-----------------------------------

FYI, A couple of docs I found:

http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface%28java.lang.Object,%20java.lang.String%29
http://developer.android.com/reference/android/webkit/JavascriptInterface.html

                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Blocker
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Andrew Grieve commented on CB-1879:
-----------------------------------

I didn't test this out, but according to the docs, this should only break on 4.2 devices if the app was compiled to target API level 17 (JB-MR1). No existing apps should be broken.

Did you say you found a compile error when trying to add @JavascriptInterface to the methods? I did so in this branch:

https://github.com/agrieve/incubator-cordova-android/commit/144d986de97592a92e162c389fb071449c737f7d

And it compiled & ran fine on my 4.2 Galaxy Nexus.
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser resolved CB-1879.
----------------------------

    Resolution: Fixed

Fixed by switching to prompt on Cordova JS.  The annotations are broken so we can't use AddJavascriptInterface.  

https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=13840a8cdfffe20130461fe3a26e93b2ac9b93fa
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser commented on CB-1879:
--------------------------------

Same here. I got crazy compile errors.  I think I tweeted a bunch of profanity related to this.
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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] [Comment Edited] (CB-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser edited comment on CB-1879 at 11/19/12 5:45 PM:
----------------------------------------------------------

I can reproduce on this end, but this is not a blocker.  4.2 is only on the Nexus 4, 7 and 10.  It's major because a lot of people have the Nexus 7 and ordered the 4, but they aren't the majority of devices. 
                
      was (Author: bowserj):
    I can reproduce on this end, but this is not a blocker.
                  
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Andrew Grieve
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Simon MacDonald updated CB-1879:
--------------------------------

    Priority: Blocker  (was: Minor)
    
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Blocker
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Tom Clarkson commented on CB-1879:
----------------------------------

Definitely not just an emulator issue - I'd classify it as blocker rather than minor.

The problem seems to be a change in 4.2:

WebView.addJavascriptInterface requires explicit annotations on methods for them to be accessible from Javascript.

I was able to get deviceready firing again by excluding 4.2 in CordovaWebView.exposeJsInterface(). The proper solution is probably to work out what those annotations are, but any side effects that the quick fix may have are less severe than the app failing to start.


                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Minor
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Simon MacDonald commented on CB-1879:
-------------------------------------

Weird, when I added that annotation in Eclipse and Ant complained. I was using Android SDK 17. But now after getting your change it works fine. I'm not going to waste any more time wondering about it though.
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser resolved CB-1879.
----------------------------

    Resolution: Fixed

Fixed by adding an else-if in Java.  The less changes to the JS, the better. 
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=blobdiff;f=lib/android/exec.js;h=c6e426fd8a496fac814c23b295359fc947f875cb;hp=bbc66ccfb8cc76f136e56c01bdfbb390949a5026;hb=48d5bb1be59e5f0a4df3e896788b40bca35b3d69;hpb=13840a8cdfffe20130461fe3a26e93b2ac9b93fa
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=c416c77d7a53c8efb2275e147c4f91caac71a334
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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] [Reopened] (CB-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser reopened CB-1879:
----------------------------


Switching to Java Fix

                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Simon MacDonald commented on CB-1879:
-------------------------------------

I changed the priority to blocker. When I originally opened the bug it was only reproducible on a emulator on a PC. Now that we have confirmations of problems on devices I've upped the priority.
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Simon MacDonald
>            Priority: Blocker
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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] [Assigned] (CB-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC

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

Joe Bowser reassigned CB-1879:
------------------------------

    Assignee: Andrew Grieve  (was: Joe Bowser)

We need to go back to prompt.  addJavascriptInterface changes on 4.x require a refactor of the code to work right.
                
> DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
> ------------------------------------------------------------
>
>                 Key: CB-1879
>                 URL: https://issues.apache.org/jira/browse/CB-1879
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Simon MacDonald
>            Assignee: Andrew Grieve
>
> I created an application with the create.bat on windows and compiled it with ADT and the latest SDK.
> It launches and displays the cordova display but it doesnt fire the deviceready event as it keeps saying "connecting to device". The same applies for the emulator. It works when I change the OS to 4.0 for the emulator though.
> I think this is just an emulator problem but I'm waiting to hear back from someone with a real device.

--
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