Write code snippet to retrieve IMEI number of Android phone.



Write code snippet to retrieve IMEI number of Android phone...

Answer / Raghvendra Vikram Yadav

To get the IMEI number of an Android device, you can use the TelephonyManager class. Here's a simple example:
```
import android.telephony.TelephonyManager;
...
TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String imeiNumber = tm.getDeviceId();
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Android OS Interview Questions

What is override method in android studio?

1 Answers  


How could we move the data in sub activity?

1 Answers  


Given the following statements using openfileoutput function to store data into a file in android?

1 Answers  


Can you change the name of an application after its deployment?

1 Answers  


Explain how to use built-in messaging within the application?

1 Answers  


What is restful api in android?

1 Answers  


What is a theme ?

1 Answers  


how to fix an android application crash?

1 Answers  


What's the difference between a smartphone and an android phone?

1 Answers  


Can I update my android version?

1 Answers  


What is mipmap/ directory?

1 Answers  


How to get the form data in sencha touch?

1 Answers  


Categories