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.
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...!!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With