nielsv nielsv - 1 year ago 125
Android Question

Ripple Emulator + android project with PhoneGap

I'm creating an android project with PhoneGap in the Eclipse IDE.

Now I want to use the Ripple Emulator instead of the Android Virtual Device Manager (AVD) because the AVD is very slow.

I installed the extension in my Google Chrome and enabled the 'Allow access to file URLs' option.

When I open my index.html page I get a javascript pop-up like this:
enter image description here

If I click "OK" or "Cancel" the page just freezes so I can't enable the ripple emulator ... .

This is my "index.html" file:

<title>PhoneGap Testing</title>
<meta http-equiv="Content-type" content="text/html;charset=utf-8">
<meta name="viewport" id="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript" charset="utf-8">
function onBodyLoad(){
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady(){
navigator.notification.alert("PhoneGap is ready!");
<body onload="onBodyLoad()">
<h1>Hello PhoneGap</h1>
<p>This is a sample app</p>

Does anyone knows why I get this pop-up?

Answer Source

I ran into the same challenge, and found that if you keep hitting Cancel (or esc key) on these prompts, ripple will actually load, and work just fine. Hitting Ok (instead of cancel) seems to make it hang...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download