Skype starts dialing and deploys in 2 seconds - Android

I have Skype ( 2.8.0.920 ) installed on two Android devices. The first device comes with Android 2.2, the second comes with 4.04.

when I initiate the call by executing the following code ...

 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 starts dialing and hangs up after 2 seconds.

However, the code works fine if I replace the current ( 2.8.0.920 ) version of Skype with the previous one.

Why is this? Any help?

+6
source share
1 answer

This is the solution I found;

 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> 
0
source

Source: https://habr.com/ru/post/920803/


All Articles