title: How can I generate constant UUId for Android?
body: <p>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.</p>
  <p>The code snippet is below:</p>
  <pre><code>String getDeviceInformation() {
      this.deviceId = UUID.randomUUID().toString(); // UUId
  
      return this.deviceId;
  }
  </code></pre>
  <p>Does anyone know what is wrong here, or how can I optimize it?</p>