In general, I want to make it possible to dial via Skype . In the case when I have a <user_name> - I do this:

 Intent intent = new Intent("android.intent.action.VIEW"); intent.setData(Uri.parse("skype:" + skypeUserName)); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); 

after that, if the username is correct, then Skype starts and the call begins. In case <user_name> incorrect or there is simply no one, I want to just launch Skype , a screen with contacts, for example! How can this be implemented, just run the application in such a form in which it would run if I clicked on the application icon?

    1 answer 1

    If skypeUserName unknown, then you can run Skype like this:

     PackageManager pm = context.getPackageManager(); Intent intent = pm.getLaunchIntentForPackage("com.skype.raider") context.startActivity(intent); 
    • Great, it starts up right. - Kirill Stoianov