1
import
android.provider.Settings.Secure;
2
3
private
String android_id = Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID);