Search code examples
androidactionscript-3flashairair-android

get Device id in Adobe Air


For get device id in android sdk i wrote simple This code ::

import android.provider.Settings.Secure;

private String android_id = Secure.getString(getContext().getContentResolver(),
                                                        Secure.ANDROID_ID); 

but i need it in Adobe air app. how can i do that?


Solution

  • you can now use Native Extensions on other platforms other than TV with AIR 3.0.

    Info: Extending Adobe AIR

    API: flash.external.ExtensionContext