Android IMEI Get getIMEI(Context context)

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

Description

get IMEI

License

Open Source License

Declaration

public static String getIMEI(Context context) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import android.content.Context;

import android.telephony.TelephonyManager;

public class Main {
    public static String getIMEI(Context context) {
        TelephonyManager tm = (TelephonyManager) context
                .getSystemService(Context.TELEPHONY_SERVICE);
        if (tm == null) {
            return null;
        }//from   www  .  j  a va 2  s  .  c  o  m
        return tm.getDeviceId();
    }
}

Related

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