Java ME - is the Bluetooth address ID globally unique?

和自甴很熟 提交于 2019-12-12 09:57:55

问题


I'm coding a Java ME app and attempting to globally identify each phone using the app. The first attempt is to load the IMEI per this question. As a fallback ID I'm using the bluetooth address of the device. Is the bluetooth address of a cellphone a globally unique identifier? Is it a MAC address? Some other format?


回答1:


Yes it is unique and works just as MAC addresses. Bluetooth use the MAC-48 identifier format.




回答2:


It is unique, however do remember that on some handsets (Sony Ericssons?) Bluetooth needs to be switched on before the address can be obtained. This can cause a security prompt in unsigned midlets, asking the user for permission to switch Bluetooth on, which could cause confusion if your app doesn't use it for anything other than unique handset identification!



来源:https://stackoverflow.com/questions/2004065/java-me-is-the-bluetooth-address-id-globally-unique

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!