开发者

get UDID of Android device via adobe air

How can I get UDID of Android device via adobe air? I w开发者_运维百科ant to get UDID of my device with Android OS installed on it via Adobe AIR. How can I do it? Thanx!


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/


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜