336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
안드로이드 디바이스 아이디를 얻는 코드입니다.
final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); final String tmDevice, tmSerial, androidId; tmDevice = "" + tm.getDeviceId(); tmSerial = "" + tm.getSimSerialNumber(); androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); String deviceId = deviceUuid.toString();
선언애햐하는 퍼미션
'프로그래밍 > 안드로이드' 카테고리의 다른 글
[오픈 프로젝트 소개]안드로이드에서 대형맵(대형 이미지) 처리 (0) | 2013.12.30 |
---|---|
facebook 3.0 이상의 타임라인에 글 작성하기 (0) | 2013.10.03 |
px,in,mm,pt,sp 의 다른점 (0) | 2013.10.03 |
안드로이드에서 전역 변수~ 어느 액티비티에서나 쓸 수 있는 변수 생성법 (0) | 2013.10.03 |
안드로이드에서 이메일 보내는 방법 (0) | 2013.10.03 |