1. Are you ready for the Galaxy S20? Here is everything we know so far!

It doesnt go to Skype Application

Discussion in 'Android Development' started by SamoZain, Oct 5, 2014.

  1. SamoZain

    SamoZain Newbie
    Thread Starter

    I'm added a button link to Skype application, if the mobile I have, has skype application, it goes to it, if it doesn't, it goes to https://play.google.com/store/apps/details?id=com.skype.raider
    the thing is, I want to send a message to someone using Skype
    So (if) send a message to someone (else) go to google play to download Skype

    Here is the code

    Code (Text):
    1.     raskypelink.setOnClickListener(new OnClickListener() {
    2.  
    3.             @Override
    4.             public void onClick(View arg0) {
    5.  
    6.                    if (uri.contains("https://www.skype.com/" )) {
    7.                         String name_here = "name_here";
    8.                         String uri1 = "skype://Page/" + rod_abbotson;
    9.                         Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri1));
    10.                         startActivity(intent);
    11.                     } else {
    12.                         String skype = "skype";
    13.                         String uri1 = "https://play.google.com/store/apps/details?id=com.skype.raider";
    14.                         Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri1));
    15.                         startActivity(i);
    16.                     }
    17.                 }
    18.             });
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Manaya

    Manaya Member

    From the official documentation, it says:

    Note: scheme and host name matching in the Android framework is case-sensitive, unlike the formal RFC. As a result, you should always ensure that you write your Uri with these elements using lower case letters, and normalize any Uris you receive from outside of Android to ensure the scheme and host is lower case.

    So maybe try skype://page/ (with lower case p)
     
Loading...
Similar Threads - doesnt Skype Application
  1. Argofy
    Replies:
    10
    Views:
    687
  2. vmaks
    Replies:
    2
    Views:
    1,160
  3. moumen shobaky
    Replies:
    16
    Views:
    1,271
  4. AdiA
    Replies:
    7
    Views:
    1,143
  5. Drakontek
    Replies:
    13
    Views:
    4,316
  6. MikeHunt555
    Replies:
    5
    Views:
    2,343
  7. Vítězslav Herman
    Replies:
    2
    Views:
    940
  8. Palmerston
    Replies:
    7
    Views:
    2,710
  9. Santosh Neupane
    Replies:
    0
    Views:
    2,165
  10. MicroDeath
    Replies:
    7
    Views:
    1,258

Share This Page

Loading...