views:

214

answers:

1

Trying the following tutorial

http://www.androidsdkforum.com/android-sdk-development/3-oauth-twitter.html

i am having trouble understanding callback URL

my twitter app name is "faisal-android" and my call back url i defined in code is

myapp://wozzon-android

and having entry in xml file as

           <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="faisal-android" />
            </intent-filter>

m i way to defining callback url is correct ??

when i run the code it gives me error "Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match"

my twitter app account settings as following alt text

+1  A: 

i think you need to check browser and not client if you use a callback url

I read somethink about this : http://blog.sogeti.com/mobile/2010/03/twitter-oauth-for-android.html

Kahlan
gr8 help you win
Faisal khan