0

I would like to open, by a button click, an external application. In my case, this external application, is Quicksupport by teamviewer.

is Possible?

Tks.

Anto
  • 907
  • 5
  • 14
  • 26
  • 1
    Have you checked [Open another application from your own (intent)](http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent) – Ravi Jul 13 '16 at 09:17

1 Answers1

1
mSomeButton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent = getPackageManager()
                  .getLaunchIntentForPackage("com.abc.def"); //Teamviewer's app ID
            if(intent != null) {
                Bundle extras = new Bundle(); // if you need to pass some info
                extras.putString(key1, "SomeEmail@gmail.com");
                extras.putString(key2, "ldkjgkjgioerjijbmgjQ2349487598");
                intent.putExtras(extras);
                startActivity(intent);
            }
        }
    });

For gist snippet, refer to this link.

David
  • 15,894
  • 22
  • 55
  • 66