简体   繁体   English

以编程方式将Google帐户添加到android

[英]programatically add google account to android

I need to be able to programatically add a google account in android for testing purposes. 我需要能够以编程方式在Android中添加Google帐户以进行测试。 The reason for this is because the data in the device can get wiped and I would like a way of easily adding the test users again with a function rather than doing it again manually. 原因是因为设备中的数据可能会被擦除,我想要一种轻松地使用功能再次添加测试用户的方法,而不是手动进行操作。

any ideas please? 有什么想法吗?

You can use AccountManager . 您可以使用AccountManager

I dont have any experience in doing what you want. 我没有做你想要的任何经验。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM