Android picasa integration is done using following code :-
GoogleOAuthGetTemporaryToken temporaryToken = new GoogleOAuthGetTemporaryToken();
temporaryToken.signer = createOAuthSigner();
temporaryToken.consumerKey = "anonymous";
temporaryToken.scope = PicasaUrl.ROOT_URL;
temporaryToken.displayName = "Picasa Atom XML Sample for the GData Java library";
temporaryToken.callback = "picasa-sample:///";
isTemporary = true;
credentials = temporaryToken.execute();
GoogleOAuthAuthorizeTemporaryTokenUrl authorizeUrl = new GoogleOAuthAuthorizeTemporaryTokenUrl();
authorizeUrl.temporaryToken = credentials.token;
Intent webIntent = new Intent(Intent.ACTION_VIEW);
webIntent.setData(Uri.parse(authorizeUrl .build()));
startActivity(webIntent);
Now using following its work...
temporaryToken.consumerKey = "anonymous"; // working
but after registering app i use this CONSUMER_KEY instead of "anonymous" like this
temporaryToken.consumerKey = Constants.CONSUMER_KEY; // not working
then it does not work.
Why.? Or any other solution for Picasa Android integration.
0 comments:
Post a Comment