In Android 2.0 there is a new android.accounts.AccountManager class has a function getAccounts() see: http://developer.android.com/reference/android/accounts/AccountManager.html#getAccounts()
Unfortunately, as most of you know the SDK doesn't come with any of the Google Apps that utilize the Google Account associated with the phone (Gmail, Google Talk, Calendar, etc.). This means that when you call getAccounts in an emulator it returns an empty array. The *hope* is that Google has modified the Google apps shipped with Android 2.0 to use the AccountManager API instead of whatever internal and super-secret-closed system they were using before. If this is the case, then 3rd party apps can hopefully gain access to a Google Auth token via the AccountManager instead of having to ask the user for their username / password. Unfortunately, the only phone that has android 2.0 on it to my knowledge is the Motorola Droid. So this is a call out to any developers that have access to that phone to please call AccountManager.getAccounts and let us know whether or not there is a Google Account on a production android device. If not then it appears that it will be up to 3rd party developers to write an Authenticator (ideally a free / open sourced one) that returns a Google Auth token (and prompts / stores user's Google credentials with the android.accounts API. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

