1. The old version is unavailable in the new version, probably because the Skype activity structure changes:
// Intent Sky = new intent ("android. Intent. Action. call_privileged ");
// Sky. setclassname ("com. Skype. Raider ",
// "Com. Skype. Raider. contactsync. contactskypeoutcallstartactivity ");
// Sky. setdata (URI. parse ("Tel:" + phone ));
// Startactivity (SKY );
2. Open the main page of Skype:
// Packagemanager = getactivity (). getpackagemanager ();
// Intent Skype = packagemanager. getlaunchintentforpackage ("com. Skype. Raider ");
// Skype. setdata (URI. parse ("Tel: 65465446 "));
// Startactivity (Skype );
3. input the phone number, directly go to the Skype dialing screen, and call:
Intent intent = new intent ("android. Intent. Action. call_privileged ");
Intent. setclassname ("com. Skype. Raider ",
"Com. Skype. Raider. Main ");
Intent. setdata (URI. parse ("Tel:" + phone ));
Startactivity (intent );