WebView wvLink = (WebView) getActivity().findViewById(R.id.wvLink);
wvLink.setWebViewClient(new WebViewClient() {
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
});
wvLink.getSettings().setJavaScriptEnabled(true);
String url = "http://www.pisisoft.com/pano/deneme.html"
wvLink.loadUrl(url);
final ProgressDialog progress = ProgressDialog.show(getActivity(), query, "Aranıyor....", true);
progress.show();
wvLink.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url) {
super.onPageFinished(view, url);
// Toast.makeText(getApplicationContext(), "Sayfa yüklendi", Toast.LENGTH_SHORT).show();
progress.dismiss();
}
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
//Toast.makeText(getApplicationContext(), "Bir hata oluştu", Toast.LENGTH_SHORT).show();
progress.dismiss();
}
});