How can I know imei Android through code?

Hi all. Is it possible, for example in eclipse to write a app that reads imei, Android version, what applications are installed?
September 26th 19 at 11:31
1 answer
September 26th 19 at 11:33
public String getIMEI(Context Context){

 TelephonyManager mngr = (TelephonyManager) context.getSystemService(context.TELEPHONY_SERVICE); 
 String imei = mngr.getDeviceId();
 return imei;

Isn't this will only work on devices with the sim card.
If you try this on tablets, will get a solid zero.
The more that is required Parmesan android.permission.READ_PHONE_STATE
And do not like to give. - maxie.Wolff commented on September 26th 19 at 11:36
Be zeros, we can add the test - Roma commented on September 26th 19 at 11:39

Find more questions by tags AndroidEclipseMobile development