I was using UUId and calling it whenever accessing particular file in the folder named with the value of deviceId. It is changing every time the function is called. What I was thinking it is regenerating the UUId with some random number functionality.
The code snippet is below:
String getDeviceInformation() { this.deviceId = UUID.randomUUID().toString(); // UUId return this.deviceId; } Does anyone know what is wrong here, or how can I optimize it?
SharedPreferences.