gaponov
gaponov

Reputation: 1032

How to add system SIP account

From android version 2.3 native VoIP support has become available. How can I add system SIP account from my application? I think solution may be in using System settings content provider. But I dont know how exactly make it.

Upvotes: 5

Views: 1340

Answers (1)

Hitesh Patel
Hitesh Patel

Reputation: 2878

There is no System content Provider available for SIP account.

There are only two way available for that,

First,

You can call SIP account system activity through intent.

if (SipManager.isVoipSupported(this) && SipManager.isApiSupported(this)){
       // SIP is supported, let's go!
       Intent intent = new Intent();
       intent.setAction("android.intent.action.MAIN");
       intent.setComponent(ComponentName.unflattenFromString("com.android.phone/.sip.SipSettings"));
       startActivity(intent);
}

Second,

You can Register SIP account for specific time period using android.net.sip.SipManager class.

If you want more clarification than you can ask me right here...!!!

Upvotes: 5

Related Questions