我有一个PhoneGap/Apache Cordova应用程序,我已经将自己的index.html页面插入到www文件夹中,但是当我运行应用程序时它没有进入index.html页面,而是启动了启动画面"设备准备就绪"消息.我在哪里配置启动页面?
Index.html页面:
<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>
Run Code Online (Sandbox Code Playgroud)
我认为你没有编辑正确的index.html文件.如果你正在为android构建,那么有一个index.html文件位于assets/www文件夹中.这是您应该编辑的文件,以创建Android应用程序的第一个屏幕.
注意:默认情况下将隐藏www文件夹,以使其可见goto 项目 - >属性 - >资源 - > Eclipse中的资源过滤器并删除排除过滤器.
有关更多信息,请查看:http://codezag.com/apache-cordova-android-stuck-device-ready-screen/
归档时间: |
|
查看次数: |
12137 次 |
最近记录: |