In my app, I scan low energy Bluetooth for specific service uuid 2415. To convert the string 2415 into uuid I am using UUID serviceUUID = UUID.fromString(
2415
UUID serviceUUID = UUID.fromString(
Using the class UUID
An example like this:
UUID.randomUUID().toString()