I want to get udid of android emulator..How can i get it.Has anyone implemented it before?
Asked
Active
Viewed 7,142 times
1 Answers
1
Usually you can use TelephonyManager.getDeviceId() to get udid of a device, but if you are using Android emulator, it will return null. Docs here
Update:
You need to require READ_PHONE_STATE permission in your AndroidManifest.xml, i.e., by adding following line in the file:
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
-
You need to require READ_PHONE_STATE permission first, I've updated the answer. – ZelluX Dec 24 '10 at 13:03