user8430 user8430 - 1 year ago 103
Android Question

How to open S Voice using Anroid Programming

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

enter image description here

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

enter image description here

Answer Source

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.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 {
            } catch (final ActivityNotFoundException e) {
            } catch (final Exception e) {