-4

I would like to open another app when clicking a button in my app. How can I achieve that?

Intent intent = new Intent("com.test.test");
Cœur
  • 34,719
  • 24
  • 185
  • 251
M P
  • 113
  • 1
  • 4
  • 15

1 Answers1

0

You don't start "applications" in Android, but "activities". If the activity is not in your process, you need the full class name - just as you did in your demo code.

You need to know the exact activity name in order to open it.

elcuco
  • 8,684
  • 9
  • 45
  • 67