Android Device ID - Persist after uninstall / reinstall
<p>I'm using the following method to create unique identifiers on Android:
<a href="https://gist.github.com/shareme/2759664" rel="nofollow">https://gist.github.com/shareme/2759664</a></p>

<p>This works fine, but when deleting the app, a new identifier is created which is undesirable.</p>

<p>How can I persist this unique identifier across uninstall / reinstall but still have one UUID per device a user has.</p>

<p>I've researched multiple things already, but didn't find a clean solution yet.</p>

<p>Bonus question: Is this UUID-method really globally unique? Is it absolutely collision-safe?</p>