2016년 10월 27일 목요일

android unique한 키값 가져오기


SERIAL 번호 알아 내기

serial 번호를 알아 내기 위해 아래와 같이 처리시
(String) Build.class.getField("SERIAL").get(null);

return 값이 unknown 발생되는 경우가 있음.

---------------------------------------------

android id 알아 내기

import android.provider.Settings.Secure;

private String android_id = Secure.getString(getContext().getContentResolver(),
                                                        Secure.ANDROID_ID);

댓글 없음:

댓글 쓰기