I just wonder what would be the best to get device id I have 2 options either I use below code that would need run time permission android.permission.READ_PHONE_STATE -
private String android_id = Secure.getString(getContext().getContentResolver(),
Secure.ANDROID_ID);
Or
Secondly I have option of UUID that will not need any run time permission but need to be mapped with users data(like email or phone) to identify.
String uniqueID = UUID.randomUUID().toString();
Any suggestions which one to use and why would be appreciated.
Thanks