<a href="http://blog.51cto.com/attachment/201212/225721359.png" target="_blank"></a>
<a href="http://blog.51cto.com/attachment/201212/225959389.png" target="_blank"></a>
package com.xiaoma.sencha;
import org.apache.cordova.DroidGap;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.EditText;
import com.foreveross.cube.R;
public class MainActivity extends DroidGap
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// setContentView(R.layout.login);
super.loadUrl("sdcard/sencha/init.html");
// initView();
}
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script src="assets/js/jquery-1.8.2.min.js"></script>
<title>應用初始化......</title>
</head>
<body>
<div style="display: none;">
<h1>應用初始化</h1>
<!-- 等待對話框 -->
<div id="progressModal" class="modal hide">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3>加載中......</h3>
</div>
</div>
<!-- 出錯對話框 -->
<div id="errorModal" class="modal hide">
<h3>出錯</h3>
<div class="modal-body">
<p></p>
</div>
</body>
</html>
<a href="http://blog.51cto.com/attachment/201212/230631404.png" target="_blank"></a>
<a href="http://blog.51cto.com/attachment/201212/230651963.png" target="_blank"></a>
本文轉自華華世界 51CTO部落格,原文連結:http://blog.51cto.com/mzh3344258/1086202,如需轉載請自行聯系原作者