You have to add a WebView object like this:
In your layout.xml
<?xml version="1.0" encoding="utf-8"?>
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
Then in MainActivity.java
use this:
WebView webViewer = (WebView) findViewById(R.id.webview);
webView.loadUrl("file:///android_asset/www/index.html");
Obviously you have to add permission
<uses-permission android:name="android.permission.INTERNET" />
Read this WebView
for a better explanation
If you want to use super.loadUrl(String)
you have to import org.apache.cordova.*
, read this PhoneGap API
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…