Android 未在inappbrowser中加载站点
我正在使用应用浏览器中的phonegaps显示我的站点。该网站可以很好地使用手机浏览器。但当我通过eclipse实现它并嵌入InApp浏览器时,它并没有显示出来。我的index.html代码如下所示Android 未在inappbrowser中加载站点,android,cordova,inappbrowser,Android,Cordova,Inappbrowser,我正在使用应用浏览器中的phonegaps显示我的站点。该网站可以很好地使用手机浏览器。但当我通过eclipse实现它并嵌入InApp浏览器时,它并没有显示出来。我的index.html代码如下所示 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Opprox</title> <link rel="stylesheet" href="css/jq
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Opprox</title>
<link rel="stylesheet" href="css/jquery.mobile-1.4.2.min.css">
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.mobile-1.4.3.min.js></script>
// Wait for Cordova to load
//
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
// Cordova is ready
//
function onDeviceReady() {
var ref = window.open('http://beta.opprox.com/index.html', '_blank', 'location=no');
ref.addEventListener('loadstart', function(event) { alert('start: ' + event.url); });
ref.addEventListener('loadstop', function(event) { alert('stop: ' + event.url); });
ref.addEventListener('loaderror', function(event) { alert('error: ' + event.message); });
ref.addEventListener('exit', function(event) { alert(event.type); });
}
</script>
对位
你找到解决办法了吗?
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id= "com.opprox.beta"
versionCode="10"
version = "1.1.0">
<!-- versionCode is optional and Android only -->
<name>Opprox</name>
<description>This is discription line
</description>
<author href="http://opprox.com" email="info@opprox.com">
Me
</author>
<access origin="*" />
<gap:plugin name="org.apache.cordova.inappbrowser" />
<preference name="orientation" value="portrait" />
</widget>