Friday, January 9, 2015

Website View Apk


Website View Apk

အ​ေပၚမွာ ​ေျပာထားတဲ့အတိုင္​း AIDE Apk စတင္​ဖြင္​့ပါ။ၿပီးရင္​ res>>>>layout>>>>main.xmlကိုဖြင္​့ပါ။
​ေအာက္​က code ကို ထည္​့ပါ။


<WebView
android:id="@+id/webView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>


src >>> MainActivity.java ကိုဖြင္​့ပါ။ ​ေအာက္​က code ကို ထည္​့ပါ။
import(အပိုင္​း)

import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

private WebView webView;

Source (အပိုင္​း)

webView = (WebView) findViewById(R.id.webView1);
webView.setWebViewClient(new Callback());
WebSettings webSettings = webView.getSettings();
webSettings.setBuiltInZoomControls(true);
webView.loadUrl("http://myanmarandroiddev.blogspot.com");
}private class Callback extends WebViewClient {
public boolean shouldOverrideUrlLoading(WebView view,
String url) {
return (false);
}


AndroidManifest.xml (အပိုင္​း)

<uses-permission android:name="android.permission.INTERNET" />
   


အဆင္​​ေျပပါ​ေစ။


​ေရးသားသူ =​ေဇယ်ာလင္​း

1 comment: