Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Device UDID or unique ID?

Tags:

android

I want to generate android device unique id for my android application to create favourite according to user device udid.

like image 735
Helal Khan Avatar asked Jul 02 '12 11:07

Helal Khan


1 Answers

All devices have a unique id.

 import android.provider.Settings.Secure;
 private String android_id = Secure.getString(getContext().getContentResolver(),
                                                            Secure.ANDROID_ID); 
like image 144
Daniel Avatar answered Sep 18 '22 13:09

Daniel