but now i want speech recognition to be done as and when i enter the oncreate().i dont want any button or any other way so that i should write the listener for it and next write the code for speech recognition in that listener.
i tried it but i got an error stating that activity was not present which would handle the intent RecognizerIntent.ACTION_RECOGNIZE_SPEECH.
can i know what might the problem be?