public final class DeviceIdManager
extends java.lang.Object
Constructor and Description |
---|
DeviceIdManager() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
generateId(java.util.Calendar calendar,
char OSChar)
Device id is generating by concatenating following values:
Current date, written in format ddMMyy, where year coerced between 2000 and 2099
Character, representing user's OS (see [getOSChar])
[toString] call on representation of [UUID.randomUUID]
|
static java.lang.String |
getOrGenerateId() |
static java.lang.String |
syncWithSharedFile(java.lang.String fileName,
java.lang.String installationId,
java.util.prefs.Preferences prefs,
java.lang.String prefsKey) |
public static java.lang.String getOrGenerateId()
public static java.lang.String syncWithSharedFile(java.lang.String fileName, java.lang.String installationId, java.util.prefs.Preferences prefs, java.lang.String prefsKey)
public static java.lang.String generateId(java.util.Calendar calendar, char OSChar)