Android Context Get getImei(Context context, String imei)

Here you can find the source of getImei(Context context, String imei)

Description

get Imei

Declaration

public static String getImei(Context context, String imei) 

Method Source Code

//package com.java2s;

import android.content.Context;

import android.telephony.TelephonyManager;

public class Main {
    public static String getImei(Context context, String imei) {
        TelephonyManager telephonyManager = (TelephonyManager) context
                .getSystemService(Context.TELEPHONY_SERVICE);
        imei = telephonyManager.getDeviceId();
        return imei;
    }/*from w ww .  j a va 2s.  c o  m*/
}

Related

  1. getExternalCacheDir(Context context)
  2. getFAFont(Context context)
  3. getFiles(Context context, String ext)
  4. getFromAssets(Context con, String fileName)
  5. getHelpUrl(Context context, String s)
  6. getInstalleApps(Context mContext)
  7. getInstance(Context context)
  8. getIntSPR(String key, Context context)
  9. getLastKnownLocation(Context context)