Writing Twitter Client using OAuth: Callback fails

by Samuh » Mon, 15 Feb 2010 21:14:08 GMT


Sponsored Links
 I am working on an Android application which is to serve as a simple
Twitter client. I am using OAuth for authorization and have registered
my application with Twitter as new OAuth client.
Now when the user authorizes the application, I expect to be taken to
the Callback URL(which is pointing to my application); but this is not
happening.

My Problem along with source code is described in detail here:
 http://stackoverflow.com/questions/2199357/oauth-twitter-on-android-callback-fails )

The following intent is launched post authorization:
Intent {
act=android.intent.action.VIEW dat= http://twitter.com/oauth/authorize? 
oauth_token=XXACTUAL_TOKEN_HEREXX8&oauth_callback=myapp:///tweet
cmp=com.android.browser/.BrowserActivity }

Some how, the hypothetical URL, I provided while registering my
application, gets called.

Please let me know if I am missing something here...

Thanks.

--



Writing Twitter Client using OAuth: Callback fails

by Samuh » Mon, 15 Feb 2010 21:37:28 GMT


 I made a mistake above.

The following intent is launched for authorization:
Intent {
act=android.intent.action.VIEW dat= http://twitter.com/oauth/ 
authorize?
oauth_token=XXACTUAL_TOKEN_HEREXX8&oauth_callback=myapp:///tweet
cmp=com.android.browser/.BrowserActivity }


--


Sponsored Links


Other Threads

1. startForeground

it has Notification as arg
what is it for, when is it shown

-- 

2. How to specify id when uses include in layout xml file

Hi,

In my layout xml file, I have included other layout xml file (each
with a different android id).

<include layout="@layout/view_contact_name" android:id="+id/test1"/>
<include layout="@layout/view_contact_name" android:id="+id/test2"/>

But when I run it in the emulator, and start Hierarchy Viewer, each of
the layout still shows 'NO_ID', and in my code, I have
findViewById(R.id.test1) and findViewById(R.id.test2) both returns null.

Can anyone please help me with my problem?
Thank you.

-- 

3. Mediaplayer and stopping it....

4. How can I check if GPS is supported in code?

5. Could this happen on Android?

6. Android keyevent keycodes and scancodes

7. OnScrollListener#onScrollStateChanged cange behavior from 1.5?