Seth
Seth

Reputation: 152

Android file: scheme cookies

I have a web app that I want host locally from an Android device. It requires for certain cookies to be set. I'm using the CookieManager to set the cookies on the webview but it appears to only work for device > Android API 11. Is it possible to set cookies for pages using the file:// URL scheme?

Upvotes: 0

Views: 1019

Answers (1)

user726627
user726627

Reputation: 26

You have to implement method setAcceptFileSchemeCookies which is available from API level 12.

To set cookies for File Scheme Urls.

For more details refer to http://developer.android.com/reference/android/webkit/CookieManager.html

Upvotes: 1

Related Questions