1

We are working on an application that needs / wants to act like the stock Gallery app in that it shows images from the SD card, as well as images from picasa.

I realize I could obtain credentials from the user / use oauth / whatever, then access the picasa web service API, and so on. however, I'm wondering if there's any shortcut. requiring the user to log in to picasa each time they fire up the app is a real downer. even asking for the creds one time makes people worry.

any ideas?

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Jeffrey Blattman
  • 22,176
  • 9
  • 79
  • 134

1 Answers1

1

You can request permission to use the Google account using the AccountManager API. See What should I use Android AccountManager for? for more details on this.

Community
  • 1
  • 1
Steve Pomeroy
  • 10,071
  • 6
  • 34
  • 37
  • that does not apply. that perm is to allow your app to create / manage an account. it does give access to the creds of existing accounts (obviously). – Jeffrey Blattman Jun 04 '11 at 16:30
  • Sorry, my answer wasn't entirely clear. I was recommending looking more into the AccountManager API, not recommending the specific permission mentioned in the referenced SA post. As Google supposedly dogfoods the SDK APIs for all their applications, you should be able to use the existing Google account on the device to authenticate if you request the right permissions. Unfortunately, I don't know what that is, but I suspect the answer lies in the Android source. I'll post more if I find it. – Steve Pomeroy Jun 05 '11 at 05:06