Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. //Make sure No cookies are created
  2. CookieManager.getInstance().setAcceptCookie(false);
  3.  
  4. //Make sure no caching is done
  5. myWebView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
  6. myWebView.getSettings().setAppCacheEnabled(false);
  7. myWebView.clearHistory();
  8. myWebView.clearCache(true);
  9.  
  10.  
  11. //Make sure no autofill for Forms/ user-name password happens for the app
  12. myWebView.clearFormData();
  13. myWebView.getSettings().setSavePassword(false);
  14. myWebView.getSettings().setSaveFormData(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement