语言

Menu
Sites
Language
How to get UUID in Tizen ?

How can we get the UUID in Tizen? 

Thank you

响应

4 回复
Gary V

Hi,

You mean: generate a unique GUID?

Tizen::Base::UuId* pUUID = Tizen::Base::UuId::GenerateN();

// sizeof(pUUID->uuid)
byte* bytes = pUUID->uuid;

delete pUUID, pUUID = NULL;

G.

Byron Gavras

Yes but uuid is supposed to be the same unique id for each device.

This method produces a uuid which change every time you run the method.

Right?

Alex Ashirov

Hi,

UUID is universally unique identifier. So, each value generated by the method should be unique regardless on which device it is generated.

Marco Buettner

You can use also DUID (Device Unique Identifier), this will build from the IMEI