草庐IT

PhoneAccount

全部标签

Android:为电信注册新的PhoneAccount

我正在尝试制作一个新的PhoneAccount使用我的ConnectionService实现.在文档中它说我需要使用TelecomManager注册一个新的PhoneAccount,然后在我的电话应用程序设置中选择它。这是我的代码:TelecomManagertelecomManager=(TelecomManager)getSystemService(Context.TELECOM_SERVICE);ComponentNamecomponentName=newComponentName("se.example.connectionservicestandalonetest","se.