Is it possible to clear all cookies in an Android device? -
many apps in android using embedded webviews.
is possible clear cookies set in such webviews?
if clear cookies browser menu, ones set webviews cleared well?
edit: webview documentation page seems cookies of webview kept separate ones of browser, hence suspect user cannot delete cookies set webview:
for obvious security reasons, application has own cache, cookie store etc.—it not share browser application's data.
is there way delete them via settings or via other tool?
thanks
to disallow cookies being stored in webview, try following using cookiemanager:
cookiemanager.getinstance().setacceptthirdpartycookies(false);
you remove them manually yourself:
cookiesyncmanager.createinstance(this); cookiemanager cookiemanager = cookiemanager.getinstance(); cookiemanager.removeallcookie(); cookiemanager.setacceptcookie(false);
here documentation: http://developer.android.com/reference/android/webkit/cookiemanager.html
and removeallcookie() function looks this:
public abstract void removeallcookies (valuecallback callback)
Comments
Post a Comment