Skip to content Skip to sidebar Skip to footer

Everythings Seems Ok But Function Retrieverequesttoken() Throws 'oauthcommunicationexception' Exception

I am trying to build an android app so that it tweets in twitter. I am trying to get uri using the function retrieveRequestToken(consumer,CALLBACK_URI) but it throws 'OAuthCommunic

Solution 1:

This is caused by a network on main thread exception. Try running the oauth code on a thread:

          new Thread(new Runnable() {
                public void run() {
                    String authUrl = provider.retrieveRequestToken(consumer,CALLBACK_URI);
                }
              }).start();

Post a Comment for "Everythings Seems Ok But Function Retrieverequesttoken() Throws 'oauthcommunicationexception' Exception"