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" />
အဆင္ေျပပါေစ။
ေရးသားသူ =ေဇယ်ာလင္း
errorျဖစ္ေနတယဆရာ
ReplyDelete