任何人都可以举例说明如何实现这个抽象类-ConnectionService。我的想法是使用TelecomManager进行呼出。https://developer.android.com/reference/android/telecom/ConnectionService.html#SERVICE_INTERFACETelecomManagertelecomManager=(TelecomManager)this.getSystemService(Context.TELECOM_SERVICE);PhoneAccountHandleaccountHandle=telecomManag
我正在尝试使用ConnectionService从FCM通知中呈现ConnectionService提供的调用UI。我缺少什么来完成这个?按照https://developer.android.com/guide/topics/connectivity/telecom/selfManaged上的步骤操作我添加了:和当我收到FCM通知时,我会:TelecomManagertelecomManager=(TelecomManager)this.getSystemService(Context.TELECOM_SERVICE);StringpackageName=getApplication
我正在尝试在Android上实现iOScallkit行为。我收到来自firebase的推送通知,我想向用户显示“来电”屏幕。为此,我使用了android.telecom包和其他类中的ConnectionService。这是我的调用管理器类:classCallManager(context:Context){valtelecomManager:TelecomManagervarphoneAccountHandle:PhoneAccountHandlevarcontext:Contextvalnumber="3924823202"init{telecomManager=context.ge
我有一个Service,我正试图将其绑定(bind)到我的主要Activity,但我收到了一个java.lang.ClassCastException:android.os.BinderProxy无法转换为com.walintukai.rubix.ConnectionService$LocalBinder。我已经在list中声明了该服务。为什么会这样?舱单声明服务(简码)publicclassConnectionServiceextendsService{staticfinalStringTAG=ConnectionService.class.getName();privateBlue