cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Clarkson (JIRA)" <>
Subject [jira] [Commented] (CB-1879) DeviceReady event not firing on Nexus 7 4.2 emulator on a PC
Date Mon, 19 Nov 2012 14:21:01 GMT


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

View raw message