您在此处提供的屏幕截图不是Gmail活动的一部分,而是这些本身称为Android OS的部分AccountManager
。
检查这里更多地了解它
现在主要答案:
当您指定要通过意图启动它们时,您可以执行
//pass the action while creating intent
Intent intent = new Intent(Settings.ACTION_ADD_ACCOUNT);
//setting type for Google Accounts
intent.putExtra(Settings.EXTRA_ACCOUNT_TYPES, new String[] {"com.google"});
startActivity(intent);
唯一的一件事情是,很少有自定义的Android OS(如linage OS),默认情况下不包括此客户管理器。
感谢您的指正。
这些活动的URI是什么,例如Gmail应用程序具有com.google.android.gm URI,我们可以在该应用程序中使用此URI从另一个应用程序打开gmail。
@AdeelIftikhar我尝试搜索文档,但是Google似乎没有提到此信息,我可以建议您查看Android OS的源代码,但我也不知道它是否在这里source.android.com
是否可以通过无障碍服务访问这些活动?