I'm trying to send HTTP Post requests to my webservice. It seems to work, however the cookies are not enabled.
I tried to import android.webkit.CookieManager
in my Application and then use this code :
CookieManager cookieManager = new CookieManager();
cookieManager.setAcceptCookie(true);
I get an error telling me that CookieManager cannot be instancied.
Is there a way to allow cookies when sending a POST request ?
Thanks for your help.
Try this for webview cookies
http://developer.android.com/reference/android/webkit/CookieManager.html#setCookie(java.lang.String,java.lang.String,android.webkit.ValueCallback