Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; public class Main { /** * Equipment is started for the first time the generated number * Are potential "9774d56d682e549c" * * @param context Context * @return Number */ public static String getAndroidId(Context context) { return android.provider.Settings.System.getString(context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); } }