Guest User

Untitled

a guest
Nov 15th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Intent i = getBaseContext().getPackageManager()
  2. .getLaunchIntentForPackage( getBaseContext().getPackageName() );
  3. i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  4. startActivity(i);
  5.  
  6. @Override
  7. public void onPageStarted(WebView view, String url, Bitmap favicon) {
  8. view.clearCache(true);
  9.  
  10. if(b){
  11. Log.d("WEBVIEW", "onFinisghed b true");
  12. Map<String, String> noCacheHeaders = new HashMap<String, String>(2);
  13. noCacheHeaders.put("Pragma", "no-cache");
  14. noCacheHeaders.put("Cache-Control", "no-cache");
  15. view.loadUrl(url, noCacheHeaders);
  16. b = false;
  17. }...
  18.  
  19. CookieManager.getInstance().removeAllCookie();
  20.  
  21. CookieManager.getInstance().removeAllCookies(null)
Add Comment
Please, Sign In to add comment