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 |
What is override method in android studio?
How could we move the data in sub activity?
Given the following statements using openfileoutput function to store data into a file in android?
Can you change the name of an application after its deployment?
Explain how to use built-in messaging within the application?
What is restful api in android?
What is a theme ?
how to fix an android application crash?
What's the difference between a smartphone and an android phone?
Can I update my android version?
What is mipmap/ directory?
How to get the form data in sencha touch?