I have to set a cookie in a WebView
in order to authenticate my user.
I've found a lot a code talking about that, but CookieSyncManager
is deprecated.
And this code seems to not work :
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.setAcceptCookie(true);
cookieManager.setCookie("my_url", "param=value;param=value;param=value");
webview.getSettings().setJavaScriptEnabled(true);