public class UniqueIdGenerator
extends java.lang.Object
Constructor and Description |
---|
UniqueIdGenerator() |
Modifier and Type | Method and Description |
---|---|
static long |
getFourByteUniqueId(Context context)
Retrieves the lower four bytes of the device Android ID, or a random UUID if the Android ID is broken
|
static int |
getTwoByteUniqueId(Context context)
Retrieves the lower two bytes of the device Android ID, or a random UUID if the Android ID is broken
|
public static int getTwoByteUniqueId(Context context)
context
- current contextpublic static long getFourByteUniqueId(Context context)
context
- current contextCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.