Exemplo n.º 1
0
  public String getRequestToken()
      throws OAuthMessageSignerException, OAuthNotAuthorizedException,
          OAuthExpectationFailedException, OAuthCommunicationException {

    //		String callBackUrl="mfmd://OAuthActivity";
    String callBackUrl = "";
    String oauthURL = provider.retrieveRequestToken(consumer, callBackUrl);
    return oauthURL;
  }
Exemplo n.º 2
0
 public void requestAuthorization(final Activity ctx, final DialogListener listener)
     throws OAuthMessageSignerException, OAuthNotAuthorizedException,
         OAuthExpectationFailedException, OAuthCommunicationException {
   final String authUrl = httpOauthprovider.retrieveRequestToken(httpOauthConsumer, callback);
   ctx.runOnUiThread(
       new Runnable() {
         public void run() {
           new SocialLibDialog(ctx, authUrl, listener, callback).show();
         }
       });
 }