Android 如何添加系统SIP帐户

Android 如何添加系统SIP帐户,android,Android,从android版本2.3开始,本机VoIP支持已变得可用。如何从应用程序中添加系统SIP帐户?我认为解决方案可能在于使用系统设置内容提供商。但我不知道具体怎么做。没有可用于SIP帐户的系统内容提供商 只有两条路可走 首先, 您可以通过intent调用SIP帐户系统活动 if (SipManager.isVoipSupported(this) && SipManager.isApiSupported(this)){ // SIP is supported, let'

从android版本2.3开始,本机VoIP支持已变得可用。如何从应用程序中添加系统SIP帐户?我认为解决方案可能在于使用系统设置内容提供商。但我不知道具体怎么做。

没有可用于SIP帐户的系统内容提供商

只有两条路可走

首先,

您可以通过intent调用SIP帐户系统活动

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);
}
第二,

您可以使用类注册特定时间段的SIP帐户

如果你想要更多的澄清,你可以在这里问我