googleAdsense_widever


Flex Mobile : get unique id on mobile device Mobile Dev







You use the MAC address of the device.

 

To obtain the address at runtime, use the NetworkInfo class, which gets a list of interfaces

and looks for a hardwareAddress. It is the MAC address for your device:

 

if (NetworkInfo.isSupported) {

trace("network information is supported");

}

var network:NetworkInfo = NetworkInfo.networkInfo;

for each (var object:NetworkInterface in network.findInterfaces()) {

if (object.hardwareAddress) {

trace(object.hardwareAddress);

}

}

 

The address looks something like this:

00:23:76:BB:46:AA

위 방법을 추천.




핑백

덧글

댓글 입력 영역


공지

어서오십시오.
트위터 : @FCliver
기저심리학 : 네이버카페
카카오톡 : FCliver
페이스북 : Fredric Cliver

통계 위젯 (화이트)

1433
149
277264

접속자 위치