/** {@inheritDoc} */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Edge case - start activity without twitter if (twitter == null) { finish(); return; } SoomlaUtils.LogDebug(TAG, "onCreate"); if (webView == null) { webView = new SoomlaTwitterWebView(this); webView.setWebViewClient( new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { // See if the URL should be handled by the provider // only if it's a callback which was passed by the // provider if (url.startsWith(oauthCallbackURL)) { Uri uri = Uri.parse(url); completeVerify(uri); return true; } return false; } }); } // we should append additional param forcing login/pass request, otherwise app will be loaded // with previous account // decision based on https://dev.twitter.com/oauth/reference/get/oauth/authorize String url = getIntent().getStringExtra("url") + "&force_login=true"; webView.loadUrlOnUiThread(url); webView.show(this); }