Reputation: 5935
I want to get udid of android emulator..How can i get it.Has anyone implemented it before?
Upvotes: 3
Views: 7308
Reputation: 72675
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" />
Upvotes: 1