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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -