yozhik
yozhik

Reputation: 5074

get UDID of Android device via adobe air

How can I get UDID of Android device via adobe air? I want to get UDID of my device with Android OS installed on it via Adobe AIR. How can I do it? Thanx!

Upvotes: 0

Views: 4408

Answers (3)

Hadi tavakoli
Hadi tavakoli

Reputation: 1317

You can't do that directly on AdobeAir. But you may build an ANE to do just that. You may want to have a look at this other solution we have posted here, with the the required ANE for this purpose: https://stackoverflow.com/a/43338213/247658

Upvotes: 0

Rob
Rob

Reputation: 2779

It doesn't look like it's in the APIs. You can try generating a random code and storing it on the device. This has been asked before here: Get unique identifier (MAC address, UDID, etc...) in Adobe AIR for iOS and recently here: http://www.flexdeveloper.eu/forums/actionscript-3-0/detecting-unique-device-number-in-adobe-flex-like-udid-of-iphone-device/

Upvotes: 1

Vineet Shukla
Vineet Shukla

Reputation: 24031

you can use TelephonyManager.getDeviceId() to get udid of a device.

Add this permission:

<uses-permission android:name="android.permission.READ_PHONE_STATE" />

you can refer this doc:

http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId%28%29

also check:

Unique ID of Android device

Upvotes: 0

Related Questions