6
我創建了一個Twitter應用程序,我需要我的Android應用程序的用戶授權其使用。我現在可以在瀏覽器中調用Twitter應用程序頁面併成功進行授權。但是,回調似乎沒有工作,我最終在瀏覽器中顯示了確認消息和PIN碼,但我的Android活動永遠不會被調用(onResume未觸發)。 這裏就是我有Android上的oauth_callback
- Twitter的網址:http://twitter.com/oauth/authorize?oauth_token=actualtokenhere&oauth_callback=myapp:///
在我的活動定義我有這個意圖過濾
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="myapp" /> </intent-filter>
正如我所說 - 我得到確認,但不定向,因此Android的應用程序是從來沒有回電
我遇到同樣的問題。我找不到任何設置像瀏覽器選項。請檢查我的代碼http://pastie.org/2255040。用戶登錄成功後,我無法重定向回到我的應用程序。如果http://chat.stackoverflow.com/rooms/1531/casual-chat請來這個房間請幫幫我。謝謝Venky。 – Venky 2011-07-22 17:22:51