Programmatically starting the 'Add Account' activity in Android 2.2

前端 未结 6 1364
耶瑟儿~
耶瑟儿~ 2020-12-16 19:47

I\'ve been experimenting with the Android SDK over the past few days, in readiness to write an App for the store, however I\'ve run across a bit of a problem.

The Ap

6条回答
  •  执念已碎
    2020-12-16 20:12

    Android Account Manager provides an API to add account. (google or other account types)

    public AccountManagerFuture addAccount (String accountType, String authTokenType, String[] requiredFeatures, Bundle addAccountOptions, Activity activity, AccountManagerCallback callback, Handler handler)

    http://developer.android.com/reference/android/accounts/AccountManager.html

提交回复
热议问题