如何添加系统SIP帐户

时间:2012-02-08 10:30:21

标签: android

从Android版本2.3开始,原生VoIP支持已经可用。如何从我的应用程序添加系统SIP帐户?我认为解决方案可能在于使用系统设置内容提供商。但我不知道究竟是怎么做到的。

1 个答案:

答案 0 :(得分:5)

SIP帐户没有可用的系统内容提供程序。

只有两种可用方式,

首先,

您可以通过意图调用 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);
}

其次,

您可以使用 android.net.sip.SipManager 类在特定时间段内注册SIP帐户。

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

相关问题