Getting java.lang.ClassCastException while sending DTMF tones over an active call in android

非 Y 不嫁゛ 提交于 2019-12-08 06:28:17

Because your this is a HelloPage object. It is not an IInCallAdapter, does not inherit from it, and does not extend it. It can't be cast as one. Why would you think it could be?

Create a class that implements IInCallAdapter and then implement all its methods

public class ClassName implements IInCallAdapter {
    ... 
} 

Then you can create an instance of this class in your Activity class

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!