Android的UUID与PhoneGap的设备UUID的区别 [英] difference between android UUID and phonegap device UUID

查看:187
本文介绍了Android的UUID与PhoneGap的设备UUID的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我,机器人唯一的ID即UUID和PhoneGap的设备ID UUID之间的区别?
他们是相同或不同的值?
如果这些值不同,那么有没有什么独特的属性值,在这两个相同的。

could anyone tell me the difference between android unique id i.e UUID and phonegap device id UUID? Are they same or different values? If these values different,then is there any unique property value that is same in both.?

推荐答案

更新

的值从上述两个参数是different.Don't彼此匹配获得

The values obtain from above two parameters are different.Don't match with each other.

Android的UUID:

TelephonyManager  manager=(TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String uuid=manager.getDeviceId();

Android的PhoneGap的UUID

- 返回一个随机的64位整数(!作为一个字符串,再次)

--Returns a random 64-bit integer (as a string, again!)

- 在设备的第一次启动时,会生成整数

--The integer is generated on the device's first boot

document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady() {

   try {
      var uuid = device.uuid; * * //always use device object after deviceready.**

   } catch (e) {

      alert(e);

   }
}

这是我的Andr​​oid获得的值(2.3),电话是:

Values obtained from my android(2.3) phone are:

Android的UUID: 354457052232596(16号)

android UUID: 354457052232596 (16 numbers)

Android的PhoneGap的UUID :70a0353498a27a34(16进制数)

android phonegap UUID: 70a0353498a27a34 (16 hexadecimal number)

要详细了解设备UUID检查:

to more about Device UUID Check :

http://docs.phonegap.com/en/1.0。 0 / phonegap_device_device.md.html

这篇关于Android的UUID与PhoneGap的设备UUID的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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