android.net.sip.SipAudioCall Java Examples

The following examples show how to use android.net.sip.SipAudioCall. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MyActivity.java    From ArtHook with Apache License 2.0 6 votes vote down vote up
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    // Handle action bar item clicks here. The action bar will
    // automatically handle clicks on the Home/Up button, so long
    // as you specify a parent activity in AndroidManifest.xml.
    int id = item.getItemId();
    if (id == R.id.action_settings) {
        try {
            SipAudioCall call = new SipAudioCall(this, null);
            call.startAudio();
        } catch (Exception e) {
            Log.w(TAG, e);
        }
        return true;
    }
    return super.onOptionsItemSelected(item);
}
 
Example #2
Source File: CallInfo.java    From africastalking-android with MIT License 4 votes vote down vote up
CallInfo(SipAudioCall call) {
    this(call.getPeerProfile().getUriString());
}
 
Example #3
Source File: MyApplication.java    From ArtHook with Apache License 2.0 4 votes vote down vote up
@Hook("android.net.sip.SipAudioCall->startAudio")
public static void SipAudioCall_startAudio(SipAudioCall call) {
    Log.d(TAG, "SipAudioCall_startAudio");
    OriginalMethod.by(new $() {}).invoke(call);
}