0

I am using S8/S8+. I want to call bibxy app from the Intent. However, I cannot call it. How can I call it from Intent?

This is what I try

final String SVOICE_PACKAGE_NAME = "com.samsung.voiceserviceplatform";
final Intent intent = new Intent();
intent.setPackage(SVOICE_PACKAGE_NAME);
intent.setAction(Intent.ACTION_VOICE_COMMAND);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
getApplication().startActivity(intent);
John
  • 2,838
  • 7
  • 36
  • 65
  • Possible duplicate of [Open another application from your own (intent)](https://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent) – Nikolay Shmyrev Jun 18 '17 at 10:51
  • ACTION_VOICE_COMMAND does not seem right, Samsung might not support it, you probably just need an ACTION_MAIN. – Nikolay Shmyrev Jun 18 '17 at 10:52
  • Thanks, Nikolay Shmyrew. I will check it tomorrow and let you know. DO you know which is correct package name of bibxy in Samsung S8? – John Jun 18 '17 at 13:16

1 Answers1

0

This Works for me:

startActivity(new Intent(Intent.ACTION_VOICE_COMMAND).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
Roland Szép
  • 879
  • 1
  • 8
  • 19