5

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.

gaponov
  • 1,012
  • 1
  • 12
  • 22

1 Answers1

5

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...!!!

B770
  • 1,272
  • 3
  • 17
  • 34
Hitesh Patel
  • 2,868
  • 2
  • 33
  • 62