How can I msg to skype?

94 views Asked by At

How can it send a msg to someone written in the application, I have the java down below but this one asks me to write the name that I skype msg to

((Button) findViewById(R.id.skypemsg)).setOnClickListener(new OnClickListener()
  {
   @Override
   public void onClick(View v)
   {
    String skypeName = ((EditText) findViewById(R.id.edt_skypeusername)).getText().toString().trim();
    if(skypeName.length()<=0)
    {
     Toast.makeText(getApplicationContext(), "Please enter skype username to message", Toast.LENGTH_SHORT).show();
    }
    else
    {
     String mySkypeUri = "skype:"+skypeName+"?chat";
     SkypeUri(MainActivity.this, mySkypeUri);
    }
   }
  });
1

There are 1 answers

0
Axel On BEST ANSWER

As I understand your comment, I think you want to do this (fill in the correct name):

((Button) findViewById(R.id.skypemsg)).setOnClickListener(new OnClickListener()
  {
   @Override
   public void onClick(View v)
   {
     String skypeName = "yourSkypeName"; // <-- change this
     String mySkypeUri = "skype:"+skypeName+"?chat";
     SkypeUri(MainActivity.this, mySkypeUri);
   }
  });