Programmatically starting the 'Add Account' activity in Android 2.2

前端 未结 6 1369
耶瑟儿~
耶瑟儿~ 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:08

    For recent Androids using adb you can do:

    adb shell am start -a android.settings.ADD_ACCOUNT_SETTINGS \
                       -n com.android.settings/.accounts.AddAccountSettings
    

    (You’ll still have to select what account type you’d like though)

提交回复
热议问题