I am using webview
to load the responsive website but it shows the width outside to the mobile size.
I open the link in a mobile Chrome browser and it looks
try this one hope it will help you
String link = "";// global variable
Resources res;// global variable
//in onCreate
res = ctx.getResources();
link = url;
faqwebview.getSettings().setJavaScriptEnabled(true);
faqwebview.setWebViewClient(new WebViewClient() {
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
// TODO Auto-generated method stub
super.onPageStarted(view, url, favicon);
if (!loading) {
loading=true;
Utils.ShowMyprogress(this, "Fetching data...");
}
}
@Override
public void onPageFinished(WebView view, String url) {
// TODO Auto-generated method stub
super.onPageFinished(view, url);
Utils.DismissMyprogress();
loading=false;
}
@Override
public void onReceivedError(WebView view, int errorCode,
String description, String failingUrl) {
// TODO Auto-generated method stub
super.onReceivedError(view, errorCode, description, failingUrl);
Utils.DismissMyprogress();
Utils.showToast(this, "error in load page==" + description);
}
});
faqwebview.loadUrl((link == null || link.isEmpty()) ? res
.getString(R.string.app_baseurl) : link);