Error in OAuth While Authentication and shwong blank Dialog of twitter in android


#1

hello Friends,

I am Running twitter in my application and it runs fine with the following error for first time, but after logged out of the session when i again try to login to the twitter its showing me blank white dialogue , I don able to rectify it please help me and tell me what’s the issue in this error. here is the error log.

D/Twitter-WebView(26524): Redirecting URL x-latify-oauth-twitter://callback?oauth_token=ZddOxJef4oFPgse0Of9wVqX1OMZ6hHaxFUGS6qweXA&oauth_verifier=srYrycNuQokMz8hb6pKZKMgiY0xrM3DGDPF7qTllDI
W/System.err(26524): java.net.MalformedURLException: Unknown protocol: x-latify-oauth-twitter
W/System.err(26524): at java.net.URL.(URL.java:292)
W/System.err(26524): at java.net.URL.(URL.java:159)
W/System.err(26524): at net.londatiga.android.TwitterApp.getVerifier(TwitterApp.java:175)
W/System.err(26524): at net.londatiga.android.TwitterApp.processToken(TwitterApp.java:136)
W/System.err(26524): at net.londatiga.android.TwitterApp$4.onComplete(TwitterApp.java:198)
W/System.err(26524): at net.londatiga.android.TwitterDialog$TwitterWebViewClient.shouldOverrideUrlLoading(TwitterDialog.java:114)
W/System.err(26524): at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:216)
W/System.err(26524): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:323)
W/System.err(26524): at android.os.Handler.dispatchMessage(Handler.java:99)
04-10 08:32:01.160: W/System.err(26524): at android.os.Looper.loop(Looper.java:123)
04-10 08:32:01.190: W/System.err(26524): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-10 08:32:01.190: W/System.err(26524): at java.lang.reflect.Method.invokeNative(Native Method)
04-10 08:32:01.190: W/System.err(26524): at java.lang.reflect.Method.invoke(Method.java:521)
04-10 08:32:01.190: W/System.err(26524): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run

Thanks and Regards

Arun Joshi.


#2

I’m not too familiar with Android, but this part of the error:

W/System.err(26524): java.net.MalformedURLException: Unknown protocol: x-latify-oauth-twitter

Seems to be where you’re having the issue – your custom protocol doesn’t look to be registered with whatever resolves them.