2014-01-29 34 views
0

我正在製作應用程序,需要使用Skype進行視頻通話。誰能幫我?我寫了到目前爲止的代碼是:在Android中使用Skype撥打電話號碼並需要獲取Skype聯繫人列表

Intent sky = new Intent("android.intent.action.VIEW"); 
sky.setData(Uri.parse("skype:" + playerChanged + "?call&video=true")); 
sky.setComponent(new ComponentName("com.skype.raider", "com.skype.raider.Main")); 
sky.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
startActivity(sky); 

但是這個代碼什麼也沒做,除了開放的Skype應用。

我要取我的Skype聯繫人列表...

+3

轉到此鏈接(http://stackoverflow.com/questions/6414494/launch-skype-from-the-app-programetically-pass-number-android?rq=1) –

回答

0

儘量做到以下幾點:

Intent skypeIntent = new Intent(Intent.ACTION_VIEW); 
skypeIntent.setData(Uri.parse("tel:" + number)); 
skypeIntent.setComponent(new ComponentName("com.skype.raider", "com.skype.raider.Main")); 
skypeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
context.startActivity(skypeIntent); 

希望幫助。

相關問題