On Apr 25, 1:53 am, dadical <keyes...@gmail.com> wrote:
> I'm wading through the poorly documented AccountManager API and am a
> bit confused on a few points.  There's nothing like having to reverse-
> engineer public APIs :).

I feel your pain. We're about to release an app using the
AccountManager API to authenticate to GAE, and it's been a long road.

> Anyway, I'm curious about how to test the use of this API in an end-to-
> end fashion.  One very tricky aspect of the account manager is its
> ability to query the user before granting access to a particular
> account.  I can't seem to find any mention of how to "un-grant"
> permission for a particular application to use an account.  Does
> anyone know how this is done?

AFAIK, this is not currently possible, without reinstalling the
application with a different package name.

> Also, has anyone figured out what "authTokenType" is supposed to
> represent?  Using "android" seems to work for getting a google.com
> auth token, but it makes me nervous that I have no idea what this
> property is really intended for.  I could be building in a breaking
> point.

I use "ah", because someone mentioned it worked, and I tried it, and
it worked. Yes, it would be nice to know what allowable values for
this parameter are and what the differences are between them.

> Hey Google people, it would be really, really helpful to have a good
> working example of this API.  Even better, some comprehensible docs
> would help.  A mobile app interacting with an AppEngine backend would
> make sense for an example.

That would certainly be pretty sweet, considering the AccountManager
API has been included since 2.0. Maybe FroYo will contain an actual
working example? Of course by then it will be too late for us, but
we've managed to hack something workable together.

While we're asking for things, I mentioned to the Android team in chat
office hours a while back that it would be really awesome to be able
to set up a dummy Google Account in the emulator in order to test
stuff like the AccountManager API. Otherwise, I can only test apps
that use it on physical devices, which pretty severely limits testable
configurations. But hey, we can dream, right?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to