WebView reload - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for WebView reload method.

This code example shows how to use the following methods: canGoBack, canGoForward, goBack, goForward, reload
 
	} 
 
	@Override 
	public void onClick(View v) {
		if (v.getId() == mBackButton.getId() && mWebView.canGoBack()) { // 上一頁
			mWebView.goBack();
		} else if (v.getId() == mForwardButton.getId() && mWebView.canGoForward()) { // 下一頁
			mWebView.goForward();
		} else if (v.getId() == mRefreshButton.getId()) { // 重新整理
			mWebView.reload();
		} 
	} 
 
} 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: getSettings, loadUrl, reload, setWebViewClient
{ 
	public void onCreate(Bundle savedInstanceState)
	{ 
		super.onCreate(savedInstanceState);
 
		WebView webView = new WebView(this);
 
		String url = getIntent().getStringExtra("url");
 
		webView.getSettings().setJavaScriptEnabled(true);
		webView.setWebViewClient(new HelloWebViewClient());
		webView.reload();
 
		webView.loadUrl(url);
 
		setContentView(webView);
	} 
 
	private class HelloWebViewClient extends WebViewClient
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: scrollTo, getOriginalUrl, loadUrl, reload
	} 
 
	 
	public static void recargar() { 
		 
		viewer.loadUrl("file://" + Environment.getExternalStorageDirectory()
				+ "/myScreenplays/" + "preview" + ".xhtml"); 
		// viewer.loadUrl( "javascript:window.location.reload( true )" ); 
		 
		Log.i(Preview.LOGTAG ,"algo "+"resume "+viewer.getOriginalUrl());
		viewer.reload();
		viewer.scrollTo(scrollX, scrollY);
 
	} 
 
} 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: scrollTo, loadUrl, reload
		viewer.reload();
 
	} 
 
	public static void recargar() { 
		viewer.loadUrl("file://" + Environment.getExternalStorageDirectory()
				+ "/myScreenplays/" + "partial_preview" + ".xhtml"); 
		// viewer.loadUrl( "javascript:window.location.reload( true )" ); 
		viewer.reload();
		viewer.scrollTo(scrollX, scrollY);
 
	} 
} 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: reload
              Intent i = new Intent(Intent.ACTION_SEND);
              i.setType("message/rfc822");
              i.putExtra(Intent.EXTRA_EMAIL, new String[]{mt.getTo()});
              i.putExtra(Intent.EXTRA_SUBJECT, mt.getSubject());
              context.startActivity(i);
              view.reload();
        } 
        catch (ActivityNotFoundException e) {
          Log.w(TAG, "Problem with Intent.ACTION_SEND", e);
                  new AlertDialog.Builder(context)
                    .setTitle("Contact Info")
                    .setMessage( "Please send your feedback to: app.ocr@gmail.com" )
                    .setPositiveButton( "Done", new DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int which) {
                            Log.d("AlertDialog", "Positive");
                        } 
                    }) 
                    .show();
        } 
            return true; 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE

Related WebView reload Questions & Answers:

reload Method Overview
Reloads the current URL.
See Code Examples for other Android WebView Methods: