Close

Not a member yet? Register now and get started.

lock and key

Sign in to your account.

Account Login

Forgot your password?

Android  // Browsing posts in Android

Android | Comments Off on SOURCE CODE Cara menampilkan HTML Webview pada ANDROID

SOURCE CODE Cara menampilkan HTML Webview pada ANDROID

SOURCE CODE Cara menampilkan HTML Webview pada ANDROID

SOURCE CODE Cara menampilkan HTML Webview pada ANDROID buat layout webview.xml <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” tools:context=”.Main” > <WebView android:id=”@+id/webView” android:layout_width=”match_parent” android:layout_height=”match_parent” android:layout_alignParentLeft=”true” android:layout_alignParentTop=”true” /> </RelativeLayout> kemudian buatkan tampilweb.java public class tampilweb extends Activity { WebView webView; String nama,def; String path=”file:///android_asset/bagianbagiangitar.html”; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.webview); WebView wv; wv = (WebView) findViewById(R.id.webView); […]

Read more...