2012-02-08 102 views
6

從android版本2.3開始,本地VoIP支持已經可用。我如何從我的應用程序添加系統SIP帳戶?我認爲解決方案可能在使用系統設置內容提供商。但我不知道如何做到這一點。如何添加系統SIP帳戶

回答

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); 
} 

其次,

你可以註冊SIP帳戶使用android.net.sip.SipManager類特定的時間段。

如果你想要更多的澄清,你可以問我在這裏...... !!!

+0

我們如何改變編解碼器?我們目前使用g711 ...我們如何改變這種情況? – Jovan 2012-03-14 09:55:02