Hi.
Searching my hard drives for the source code for the CookieManager library i find it's gone missing!
It's been so long since i updated the library it has been discarded.
Anyway here's an easy way for you to try the CookieManager setAcceptThirdPartyCookies method.
First add this inline java to your activity:
Code:
#If JAVA
import android.webkit.CookieManager;
import android.webkit.WebView;
public boolean GetAcceptThirdPartyCookies(WebView webview){
return CookieManager.getInstance().getAcceptThirdPartyCookies(WebView webview);
}
public void SetAcceptThirdPartyCookies(WebView webview, boolean accept){
CookieManager.getInstance().setAcceptThirdPartyCookies(WebView webview, boolean accept);
}
#End If
Now you can call either of those 2 methods using JavaObject, here's an example showing how to enable 3rd party cookies for 'MyWebView':
Code:
Dim NativeMe As JavaObject
NativeMe.InitializeContext
NativeMe.RunMethod("SetAcceptThirdPartyCookies", Array As Object(MyWebView, True))