How to start bibxy activity using programming?

2019-08-18 19:19发布

问题:

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);

回答1:

This Works for me:

startActivity(new Intent(Intent.ACTION_VOICE_COMMAND).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));