Reputation: 13747
I don't understand why I am getting this error:
CookieSyncManager::createInstance() needs to be called before CookieSyncManager::getInstance()
In my code I am doing this:
CookieManager.getInstance().setCookie(url, "skip_interstitial=1");
I am not using CookieSyncManager anywhere. Am I suppose to do CookieSyncManager.createInstance(Context) even though I am only using CookieManager?
Thanks!
Upvotes: 0
Views: 1026
Reputation: 28484
You must call CookieSyncManager.createInstance(this);
In Your Respective Activity
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
CookieSyncManager.createInstance(this);
Upvotes: 1