Android Tutorial
Create by
(Afriyudi, M.Kom)
Membuat project
android create project
--target 1
--name MyAndroidWebViewApp
--path <your Directory>/MyAndroidWebViewAppProject
--activity MyAndroidWebViewAppActivity
--package id.ubd.myandroidwebview
Step 1 :Insert WebView in main.xml
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
Step 2 : open file
MyAndroidWebViewAppActivity and add this
code
WebViewmyWebView=(WebView)findViewById(R.id.webview);
Stringhtml="<html><body>Hello<b>Android</b>,I'mUsingWeb
View</body></html>";
myWebView.loadData(html,"text/html","utf8");
Step 3 : compile dan running
Step 4 : tambahkan tabel dan beri warna
kemudian compile dan lihat hasilnya