Here you can find the source of getVoiceSearchIMId(Context context)
public static String getVoiceSearchIMId(Context context)
//package com.java2s; import android.util.Log; import android.content.ComponentName; import android.content.Context; public class Main { static final String TAG = "LIMEUtilities"; static final boolean DEBUG = true; public static String getVoiceSearchIMId(Context context) { ComponentName voiceInputComponent = new ComponentName( "com.google.android.voicesearch", "com.google.android.voicesearch.ime.VoceInputMethdServce"); if (DEBUG) Log.i(TAG, "getVoiceSearchIMId(), Comonent name = " + voiceInputComponent.flattenToString() + ", id = " + voiceInputComponent.flattenToShortString()); return voiceInputComponent.flattenToShortString(); }//from w w w. jav a 2s .co m }