onReceive Context called FragmentTab
<p>Actually I am moving SIPdemo into fragment.</p>

<pre><code>public void onReceive(Context context, Intent intent) {
    System.out.println("onReceive");
    SipAudioCall incomingCall = null;
    try {

        SipAudioCall.Listener listener = new SipAudioCall.Listener() {
            @Override
            public void onRinging(SipAudioCall call, SipProfile caller) {
                try {
                    call.answerCall(30);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        };

         // ERROR
        LessonMainRightGroupChat wtActivity = (LessonMainRightGroupChat) context;
         // ERROR because it is fragment


        incomingCall = wtActivity.manager.takeAudioCall(intent, listener);
        incomingCall.answerCall(30);
        System.out.println(" answerCall");

        incomingCall.startAudio();
        incomingCall.setSpeakerMode(true);
        if(incomingCall.isMuted()) {
            incomingCall.toggleMute();
        }

        wtActivity.call = incomingCall;

        wtActivity.updateStatus(incomingCall);
        System.out.println(" wtActivity.updateStatus(incomingCall)");

    } catch (Exception e) {
        if (incomingCall != null) {
            incomingCall.close();
        }
    }
}
</code></pre>

<p>I need to use context to call back my tab? or How can i do it so that I can wake up the tab to answer the call?</p>

<p>LessonMainRightGroupChat wtActivity = (LessonMainRightGroupChat) context;
// Error because it is fragment</p>
