Java tutorial
//package com.java2s; import android.os.Build; import android.os.Build.VERSION_CODES; public class Main { public static String getBuildSerialId() { String deviceId = null; if (Build.VERSION.SDK_INT > VERSION_CODES.GINGERBREAD) { deviceId = Build.SERIAL; } return deviceId; } }