title: Unique Id for rows in sqlite across all devices in android
body: <p>My app stores offline data in sqlite and then sync it to online server on user choice. I need a unique id for each row in the sqlite so that when i sync / update i can manage status and other things for each row. </p>
  
  <p>The Unique id should be unique across all devices using my app. The option i tried <strong>System.currentTimeMillis()</strong> but it seems it can be duplicate across devices. The other options i searched were <strong>UUID</strong> or merging 2 values like <strong>System.currentTimeMillis()</strong> and <strong>Random.nextLong()</strong> to create unique value</p>
  
  <p>What is the best and reliable approach for doing this ?</p>