Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unique device id

Tags:

android

Is there any unique id on Android Mobile?? If it is then how many digit it has? How can I access that through my program??

Thanks Deepak

like image 261
Deepak Avatar asked Mar 16 '26 00:03

Deepak


2 Answers

There are several problems that occur when using IMEI, IMSI... that are described here:

http://android-developers.blogspot.pt/2011/03/identifying-app-installations.html

The recommended approach is to use:

http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID

String unique_id = android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
like image 137
Aaron C Avatar answered Mar 18 '26 13:03

Aaron C


check IMEI.

http://www.anddev.org/tinytut_-_getting_the_imsi_-_imei_sim-device_unique_ids-t446.html

like image 20
Andy Lin Avatar answered Mar 18 '26 13:03

Andy Lin