Android device UDID or unique identifier?

I want to create a unique Android device identifier for my Android application to create favorites according to the udid user device.

+5
source share
2 answers

All devices have a unique identifier.

 import android.provider.Settings.Secure;
 private String android_id = Secure.getString(getContext().getContentResolver(),
                                                            Secure.ANDROID_ID); 
+15
source
private String uDiD = Secure.getString(getContext().getContentResolver(),
                                                        Secure.ANDROID_ID); 
0
source

All Articles