Hi,
I am trying to post on Twitter from Android; first I considered http://code.google.com/p/oauth-signpost/wiki/TwitterAndSignpost but it asks the user to go on site and authorize the application, then to manually input the PIN in order to start posting. Next, starting with http://dev.bostone.us/2009/07/16/android-oauth-twitter-updates/#awp::2009/07/16/android-oauth-twitter-updates/ and following all the suggestions in the discussion threads I struggled to get the callback URL to get me back to my application after Twitter authorization. I did not succeed.
My question is: in the AndroidManifest.xml, under:
<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" android:host="twitt" />
</intent-filter>
what exactly should be the scheme? The exact string "myapp", the name of my Android application, the name of my application created on Twitter? And host, is it mandatory?
Assuming that:
- my app on Twitter is named TwittApp, with a callback url defined at creation time: http://www.twittapp.com and a callback URL defined at creation time: http://www.twittapp.com/callbck
- my Android app is named AndroidTwittApp
How should the intent-filter data be defined? The callback url must be a real, browsable url?
Can somebody, please, show me the intent filter of a working example ?
I am anxious to receive an answer to help me go further, thank you in advance.