Java tutorial
//package com.java2s; import android.content.Context; import android.provider.Settings.Secure; public class Main { /** * get a unique identifier for this android device * @param ctx */ public static String getUniqueDeviceId(Context ctx) { return Secure.getString(ctx.getContentResolver(), Secure.ANDROID_ID); } }