3

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

ZelluX
  • 63,444
  • 18
  • 69
  • 104
User
  • 5,861
  • 15
  • 47
  • 80
  • 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
  • 161,055
  • 37
  • 262
  • 269
ZelluX
  • 63,444
  • 18
  • 69
  • 104