title: Hello, World. Speech Recognition
body: <p>How can I make this program display a simple Hello World message when I say Hello World?  I want to make this program into a speech recognition application that displays what I say onto the screen of cell phone running android 2.1 or later.</p>
  
  <p>so far this is what I have:</p>
  
  <pre><code>    // **** SpeechRecognition.java  *****
      package com.SpeechRecognition.CMPE4373;
  
       import android.app.Activity;
       import android.os.Bundle;
       import android.widget.*; 
       import android.os.Handler;
  
       import android.speech.*;
       import android.inputmethodservice.*;
  
       public class SpeechRecognition extends Activity {
       /*  Declaring variables  */
     private static final String TAG = "VoiceRecognition";
     private static final int VOICE_RECOGNITION_REQUEST_CODE = 1234;
     private ListView mList;
     private Handler mHandler;
     private Spinner mSupportedLanguageView;
  
       /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mHandler = new Handler();
  
           }
        }
  
  
  
  
  
  &lt;!--               layout/main.xml          --&gt;
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" &gt;
  
  &lt;TextView
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:text="@string/hello" /&gt;
  
  &lt;/LinearLayout&gt;
  
  
  
  
  &lt;!--              AndroidManifest.xml          --&gt;
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.SpeechRecognition.CMPE4373"
  
   android:versionCode="1"
   android:versionName="1.0" &gt;
   &lt;uses-sdk android:minSdkVersion="14" /&gt;
   &lt;application
      android:icon="@drawable/ic_launcher2"
      android:label="@string/app_name" &gt;
      &lt;activity
          android:label="@string/app_name"
          android:name=".SpeechRecognition" &gt;
          &lt;intent-filter &gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
       &lt;/activity&gt;
     &lt;/application&gt;
  
   &lt;/manifest&gt;
  </code></pre>