Android Context Get getVoiceSearchIMId(Context context)

Here you can find the source of getVoiceSearchIMId(Context context)

Description

get Voice Search IM Id

Declaration

public static String getVoiceSearchIMId(Context context) 

Method Source Code

//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
}

Related

  1. getTimestamp(Context context)
  2. getTypeface(Context context, String name)
  3. getUserAgentString(Context context)
  4. getVersion(Context context)
  5. getVersionCode(Context mContext)