Android IMEI Get getIMEI(Context context)

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

Description

get IMEI

Declaration

public static String getIMEI(Context context) 

Method Source Code

//package com.java2s;

import android.content.Context;
import android.telephony.TelephonyManager;

public class Main {
    public static String getIMEI(Context context) {
        return ((TelephonyManager) context
                .getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();

    }/*from w ww  . j  av a2 s.co m*/
}

Related

  1. getIMEI(Context context)
  2. getIMEI(Context context)
  3. getIMEI(Context context)
  4. showInputMethodPicker(Context context)
  5. showInputMethodSettingsPage(Context context)