lorensiuswlt/AndroidTwitter — comment on commit 07df74365151d3cd9ec99af861a10fb61d2a5081
File:  line 0
By SecretNick:

Probably I have found a solution about this issue.
I think that the problem is the presences of old cookies in any new WebView call.

Try to use this code snippet in TwitterDialog.java:

private void setUpWebView() {
mWebView = new WebView(getContext());

// START MY NEW CODE
CookieSyncManager.createInstance(getContext());
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.removeAllCookie();
// END MY NEW CODE

mWebView.setVerticalScrollBarEnabled(false);
mWebView.setHorizontalScrollBarEnabled(false);
mWebView.setWebViewClient(new TwitterWebViewClient());
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.loadUrl(mUrl);
mWebView.setLayoutParams(FILL);

mContent.addView(mWebView);
}