Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

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

like image 997
nielsv Avatar asked Dec 12 '22 11:12

nielsv


1 Answers

Uninstall the Chrome extension (it is no longer needed).

like image 128
wires Avatar answered Dec 21 '22 09:12

wires