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:
If I click "OK" or "Cancel" the page just freezes so I can't enable the ripple emulator ... .
This is my "index.html" file:
<!DOCTYPE HTML>
<html>
<head>
<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!");
}
</script>
</head>
<body onload="onBodyLoad()">
<h1>Hello PhoneGap</h1>
<p>This is a sample app</p>
</body>
</html>
Does anyone knows why I get this pop-up?
Uninstall the Chrome extension (it is no longer needed).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With