We can add voice launching capability to our apps via Google Now. Using voice command, we can directly launch our app by saying "OK GOOGLE, START MY APP".
To add searchable feature to your app follow the below steps:
1. Add Intent-Filter to the activity in manifest file that you want to launch on voice command.
2. Add label to the activity in manifest file and add text that you want to call out to open the app from voice command. I have put "My App".
1. Add Intent-Filter to the activity in manifest file that you want to launch on voice command.
2. Add label to the activity in manifest file and add text that you want to call out to open the app from voice command. I have put "My App".
3. Make sure the activity has action=Main and category=Launcher in Intent-Filter.
4. Now build the project and deploy your app.
4. Now build the project and deploy your app.
5. To launch the app using voice command say "OK GOOGLE" to activate Google Now and say "START" followed by text you have entered in the lable for your launching activity and in search.xml. eg. in above case it would be "START MY APP"
Please note, during my test, some of the times it was difficult to open the app if the key word used was a famous word or phrase. You need to test on multiple call out phrases properly to get the best results.
Please note, during my test, some of the times it was difficult to open the app if the key word used was a famous word or phrase. You need to test on multiple call out phrases properly to get the best results.
Happy Coding :)

