在Adobe Air中获取设备ID [英] get Device id in Adobe Air

查看:272
本文介绍了在Adobe Air中获取设备ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  import android .provider.Settings.Secure; 

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

但我需要它在 Adob​​e air app。我现在可以在使用AIR 3.0的电视以外的其他平台上使用本机扩展(Native Extensions),但是我怎么做呢?

信息:扩展Adobe AIR



API: flash.external.ExtensionContext


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?

解决方案

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

Info: Extending Adobe AIR

API: flash.external.ExtensionContext

这篇关于在Adobe Air中获取设备ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆