2010년 12월 2일 목요일

Android에서 deviceId 구하기

public static String getDeviceId(Context context) {
TelephonyManager telManager = (TelephonyManager)context.getSystemService(
Context.TELEPHONY_SERVICE);

return telManager.getDeviceId();
}

필요 Permission
android.permission.READ_PHONE_STATE

댓글 없음:

댓글 쓰기