2012-07-18 11 views
6

AndroidのデバイスにSkype2.8.0.920)がインストールされています。最初のデバイスにはAndroid 2.2が付属し、2番目に4.04が付属しています。Skypeがダイヤルを開始して2秒後に電話を切る - Android

私は...

Intent skype_intent = new Intent("android.intent.action.CALL_PRIVILEGED"); 
skype_intent.setClassName("com.skype.raider", "com.skype.raider.Main"); 
skype_intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);     
skype_intent.setData(Uri.parse("tel:PassportCard"));     
act.startActivity(skype_intent); 

を次のコードを実行することにより、通話を開始するとき... Skypeが 2秒後にハングアップをダイヤル開始します。

ただし、現在の(2.8.0.920)Skypeバージョンをで置き換えた場合、コードは正常に機能します。

これはなぜですか?どんな助け?

+0

Skype自体のバグかもしれません! – pixelscreen

+0

あなたは以前のバージョンを知っていましたか? – Aamirkhan

答えて

0

これは私が見つけた解決策です。

In Java file: 
Intent iskype = new Intent("android.intent.action.VIEW"); 
iskype.setData(Uri.parse("skype:PassportCard")); 
act.startActivity(iskype); 

In AndroidManifast.xml 
<intent-filter> 
     <category android:name="android.intent.category.DEFAULT" /> 
     <action android:name="android.intent.action.VIEW" />      
     <data android:scheme="skype" /> 
</intent-filter>    
関連する問題