简体   繁体   中英

Are UUID's in Android specific to application within the device?

looking in the the web for answers, I am sort of confused id UUID's are unique to a service within the device. I want to know if an application on a particular device can generate a UUID during installation which will be same in all the other devices where the app is installed?

so that a search can be performed using UUID to find how many devices are using this particular application using bluetooth. or is there any other way to do that using UUID.( like fetchUuidsWithSdp ())

I am new to Android programming. so be kind if I am being Naive..

UUIDs are generated as random numbers or other algorithm intended to guarantee that no UUID is ever generated twice.

If you want multiple instances of an application to use the same UUID, you'll have to generate it in advance and include it in your application.

There's no reason why you can't do this, and a web search for "UUID generator" will turn up several sites that will provide you with one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM