3

I want to get udid of android emulator..How can i get it.Has anyone implemented it before?

ZelluX
  • 69,107
  • 19
  • 71
  • 104
Tushar
  • 5,907
  • 15
  • 49
  • 81
  • Please see this link. [http://stackoverflow.com/questions/4468248/unique-id-of-android-device](http://stackoverflow.com/questions/4468248/unique-id-of-android-device) – Chromium Dec 24 '10 at 09:01

1 Answers1

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" />
Josh Lee
  • 171,072
  • 38
  • 269
  • 275
ZelluX
  • 69,107
  • 19
  • 71
  • 104