posted 6 years ago
I made these two functions for speech recognition. the first function is called by a button in mainActivity. onActivityResult I am trying to compare speechResult exists in my file and if it exists I want to call PlayVideo activity but this never happens... in other words I want the user press the button and speak, after that, I want to search the speechresult in my file of videos and display him that title that said. for example, if my file got the title "butterfly" and user said it, i want to display him this video.