I am using Android 5.0 in Galaxy S4. When I double press in the home button, the S Voice is open. I want to make the code open it. I used the below code but the code only opens google voice. How can I open S Voice without any configuration? Thank you so much
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, "en-US");
try {
startActivityForResult(intent, 1);
} catch (ActivityNotFoundException a) {
Toast.makeText(this, "Oops! Your device doesn't support Speech to Text",Toast.LENGTH_SHORT).show();
}
This is S-Voice

Update: I installed the software Dexplorer, and found the Svoice. However, I cannot access to see the AndroidManifest.xml

The version of S-Voice I have installed will respond to any of the following intent actions:
final String SVOICE_PACKAGE_NAME = "com.vlingo.midas";
final String SVOICE_LISTEN_ACTION = "com.sec.action.SVOICE";
final Intent intent = new Intent();
intent.setPackage(SVOICE_PACKAGE_NAME);
intent.setAction(SVOICE_LISTEN_ACTION);
// intent.setAction(Intent.ACTION_VOICE_COMMAND);
// intent.setAction(RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE);
// intent.putExtra(RecognizerIntent.EXTRA_SECURE, false);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
try {
startActivity(intent);
} catch (final ActivityNotFoundException e) {
e.printStackTrace();
} catch (final Exception e) {
e.printStackTrace();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With