Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap / Apache Cordova: Stuck on "device is ready" screen

Tags:

cordova

I have a PhoneGap/Apache Cordova application, and I have inserted my own index.html page into the www folder, but when I run the application it doesn't go to the index.html page, instead it launches the splash screen which has the "device is ready" message. Where do I configure the launch page?

Index.html page:

<html>
<head>
    <script src="jquery-2.1.1.js"></script>
    <link rel="stylesheet" href="jquery.mobile/jquery.mobile-1.4.4.min.css" />
    <script src="jquery.mobile/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
    <div data-role="header" data-theme="b" class="ui-bar ui-bar-b"> 
        <h1>Welcome to my app!</h1>
    </div>
    Username <input type="text" id="username" name="Username"></input><br>
    Password <input type="text" id="password" name="Password"></input>
    <button id="submit">Submit</button>
    <div data-role="footer" data-theme="b" class="ui-bar ui-bar-b"><h1>Placeholder</h1></div>
</body>
<style type="text/css">
body{
    border:0;
}
</style>
</html>
like image 352
Ciaran Gallagher Avatar asked Sep 13 '14 15:09

Ciaran Gallagher


1 Answers

I think you're not editing the right index.html file. If you are building for android then there is a index.html file located in assets/www folder. This is the file you should be editing to create the first screen of your android app.

Note: The www folder will be hidden by default, to make it visible goto Project -> Properties -> Resource -> Resource Filters in Eclipse and remove the exclusion filters.

For more information check this: http://codezag.com/apache-cordova-android-stuck-device-ready-screen/

like image 50
Narendran Parivallal Avatar answered Oct 14 '22 03:10

Narendran Parivallal