본문 바로가기

Programming/Android Java145

Thread 2(간단한 URL 검색 스레드) 보호되어 있는 글 입니다. 2014. 8. 27.
안드로이드 단말기 정보 얻기 (IMEI, IMSI, MSISDN 등등) URL : http://rags.tistory.com/129 [ AndroidManifest.xml ] [ TelephonyManager ]getDeviceId() : IMEI - 디바이스 아이디getSubscriberId() : IMSI - 통신사 가입 아이디getLine1Number() : MSISDN - 전화 번호getSimCountryIso() : SIM 국가 코드getSimOperator() : 고객 센터 + MNC (모바일 국가 코드 + 모바일 네트워크 코드)getSimOperatorName() : 서비스 이름getSimSerialNumber() : SIM 일련 번호getSimState() : SIM 상태 (통신 가능 한가, PIN 잠겨 있는지 등)getVoiceMailNumber() : 음성.. 2014. 8. 24.
onNewIntent() 알아보기 URL : http://diyall.tistory.com/786 Activity 를 실행할 때 Intent 를 만들어 StartActivity 를 호출하여 실행하게 됩니다. 그러면 onCreate() 부터 onResume() 을 통해 쭉~ 호출되어 Activity 가 실행되는데..실행한 Activity 가 foreground 상태에서 Intent 에 Extra 값을 추가하고 StartActivity 를 호출하면 onCraete() 대신에onNewIntent(Intent intent) 가 호출이 되고 그 다음 onResume() 이 호출이 됨 ..... 2014. 8. 24.
Broadcast Receiver 에 대해 알아보자. URL : http://aroundck.tistory.com/213 ..... void onReceive (Context context, Intent intent): Broadcast가 수신되면 onReceive 메서드가 자동 호출됩니다. BR은 메인 스레드에서 실행. 따라서 10초 이내로 return 해야 합니다. 아니면 system이 강제로 이 receiver를 죽이거나, ANR 이 발생합니다. ..... void sendBroadcast (Intent intent [, String receiverPermission])void sendOrderedBroadcast (Intent intent, String receiverPermission): permission 필요 없을 경우 null 전달: send.. 2014. 8. 24.
Processing Ordered Broadcasts URL : http://nmshome.tistory.com/15원본URL : http://android-developers.blogspot.kr/2011/01/processing-ordered-broadcasts.html ..... 이 포스트 에서는 순서가 정해진 브로드캐스트 (Ordered Broadcast) 에 관해서 이야기 하고자 합니다. 혹시나 일반적인 브로드캐스트가 무엇이고 어떤식으로 동작하는지에 관해 궁금하신 분은 안드로이드 개발자 사이트 를 미리 참고하시면 좋을 것 같네요. ..... 순서가 없는 일반적인 브로드캐스트 인텐트는 '이론상' 등록된 모든 리시버에게 동시에 전달됩니다. 다시 말해, 어플리케이션 개발자의 입장에서 생각해 본다면, 일반적인 브로드캐스트를 수신하는 어떤 리시버는 동일한 .. 2014. 8. 24.
android wear관련 모듬 보호되어 있는 글 입니다. 2014. 8. 17.