黑莓手机中的 UUID 支持

发布于 2024-09-12 02:50:17 字数 602 浏览 1 评论 0原文

我正在研究 Blackberry 中的 UUID 生成。

我需要能够从上一代 Blackberry 生成 128 位 UUID。

我刚刚查看了 API,它看起来像 javax.bluetooth.UUID 类是正确的选择。 我是否可以假设该 API 适用于所有黑莓手机?是否有另一种更标准/更好的方法从 Blackberry 生成 128 位 UUID?

编辑:我还发现了另一个类 net.rim.device.api.同步。 UID生成器。我需要知道的是这是否适用于所有新的黑莓,因为我不打算开发该应用程序,但需要开发它的第 3 方向我发送 128 位 UUID。

I am looking at UUID generation in Blackberrys.

I need to be able to generate 128 bit UUIDs from last generation Blackberrys.

I have just looked through the API and it looks like the javax.bluetooth.UUID class is the way to go.
Can I assume that this API will be available for all Blackberrys? Is there another, more standard/better, way of generating 128 bit UUIDs from a Blackberry?

Edit: I also found this other class net.rim.device.api.synchronization. UIDGenerator. All I need to know is if this is available for all new Blackberries, since I'm not going to develop the app but require a 3rd party developing it to send me a 128 bit UUID.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

镜花水月 2024-09-19 02:50:17

蓝牙 UUID 类实际上并不生成 UUID,它只是用于蓝牙目的的 UUID 的数据表示。我认为 BlackBerry 上没有用于实际生成 UUID 的本机 API - 您可能需要第三方库。

The Bluetooth UUID class doesn't actually generated UUIDs, it's just a data representation of a UUID for Bluetooth purposes. I don't think there's a native API on the BlackBerry for actually generating UUIDs - you may need a third party library for that.

獨角戲 2024-09-19 02:50:17

UUID(取决于定义)通常只是网络设备(例如蓝牙或 WiFi 设备)的当前时间和硬件 (MAC) 地址(因为这些地址被认为是唯一的)的哈希和。如果您不需要构建符合特定 UUID 算法的 UUID,而只需要唯一的 ID,那么您可以轻松地推出自己的 UUID。否则实现标准化算法也不应该太难。

在这里查看一些 UUID 算法:http://en.wikipedia.org/wiki/Universally_Unique_Identifier (还有用于生成 UUID 的 Java 库的链接)

UUIDs (depending on the definition) are usually just a hash sum of the current time and the hardware (MAC) address (as those are considered being unique) of a/the network device, e.g. bluetooth or WiFi devices. If you don't need to build UUIDs conforming with specific UUID algorithms but just need unique IDs, you could just roll your own easily. Otherwise it shouldn't be too hard to implement a standardized algorithm either.

Look here for some UUID algorithms: http://en.wikipedia.org/wiki/Universally_Unique_Identifier (there are also links to Java libraries for generating UUIDs)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文