I have a working twitter4j implementation, but the OAuth process for authorizing the application leaves the Android web browser behind the application. I would like to try to implement my own webview in a running activity in order to finish () this or at least clean up after my application. The problem is that now I need to figure out how to return authURL to my main activity.
What is the best way to return authURL? I have subclassed the webview widget and am experimenting with the ability to return authURL to onPageFinished (), but not quite there yet.
private class myWebViewClient extends WebViewClient { @Override public void onPageFinished (WebView view, String url) { Log.d (TAG, "onPageFinished"); super.onPageFinished (view, url); if (url.contains (TwitterLibActivity.CALLBACK_URL) == true) { Log.d (TAG, "have auth url:" + url); finish(); } } @Override public boolean shouldOverrideUrlLoading (WebView view, String url) { Log.d (TAG, "myWebViewClient url:" + url);
wufoo source share