application crashes while using a method of different class

后端 未结 1 498
夕颜
夕颜 2021-01-25 05:35

I am developing a SIP application for incoming and outgoing calls and i want to show AlertDialog on incoming call. For that i had put two butto

相关标签:
1条回答
  • 2021-01-25 06:02

    did you created instance?

    incomingCallReceiver=new IncomingCallReceiver();
    

    or change you method to static

    public static void acceptCall() 
    

    //and call this in your IncomingCallPage

    IncomingCallReceiver.acceptCall()
    
    0 讨论(0)
提交回复
热议问题