*sharath* 0 Junior Poster in Training

hi all.
I am new to android programming and i got struck when i am trying to work with speech recognizer.
i tried this tutorial and it worked fine

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.