Understanding Voice Recognition Service
===

I am trying to understand the functioning of [RecognitionService][1] and [RecognitionService.Callback][2]. I am pretty new to this framework and would like to know how to call the onStartListening() function in RecognitionService. I saw the post http://stackoverflow.com/questions/9997720/how-to-register-a-custom-speech-recognition-service/11633783#11633783 but I had inserted log messages in all the main functions to see which one is being called when.

I have also looked at the sample app in the sdk, but it does a pretty bad job of explaining how things happen. I want to call the startService from an activity. 

I use the following intent 

    Intent startServiceIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
		startServiceIntent.setClass(this, SimpleVoiceService.class);
		
		startService(startServiceIntent);


Could someone please help me in getting this working. It will be great if someone could point me to a tutorial on this, or a describe the general flow of how to do it.

Thanks a lot.

  [1]: http://developer.android.com/reference/android/speech/RecognizerIntent.html
  [2]: http://developer.android.com/reference/android/speech/RecognitionService.Callback.html