How to create UUID from string in android
The accepted answer was provided in a comment by @Michael:
Have you tried combining your short UUID with the Bluetooth base UUID? I.e. "00002415-0000-1000-8000-00805F9B34FB"? (assuming that you meant 2415 hexadecimal)?
I'm converting that comment to an answer because I missed it first time I read through this thread.
you can use
String str = "1234";UUID uuid = UUID.nameUUIDFromBytes(str.getBytes());System.out.print(uuid.toString());