How to Retrieve the Terminal's IMEI Number: Difference between revisions

From wizarPOS
No edit summary
 
No edit summary
Line 1: Line 1:
Snippet code:
The code snippet is as follows:  
   TelephonyManager telephonyManager =
   TelephonyManager telephonyManager =
                 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
                 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
   String imei = telephonyManager.getImei(slot index);
   String imei = telephonyManager.getImei(slot index);

Revision as of 04:45, 29 March 2020

The code snippet is as follows:

 TelephonyManager telephonyManager =
               (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
 String imei = telephonyManager.getImei(slot index);