W
W
Weageoo2012-02-19 19:02:44
Iron
Weageoo, 2012-02-19 19:02:44

Getting global device ID?

The device can be:
- a smartphone with Android;
- computer with Windows, Linux.
Which parameter (option set, option set hash) is best to use as a global identifier? How does it look like in C#/Java?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Gosha Arinich, 2012-02-19
@goshakkk_reborn

It is possible to generate a UUID . In fact, the probability of the same identifier on multiple devices is close to zero.
Apple, for example, uses UUIDs to generate identifiers for their products:
image

L
LeoCcoder, 2012-02-19
@LeoCcoder

when you first start your application, generate a large random number (128bit for example), you need to remember it. The probability that on some other device (in the presence of straight arms) the same number will be generated is almost zero. This number is used as an identifier. Versatile, simple, reliable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question