한국어

스마트폰앱

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app



http://learnandroideasily.blogspot.kr/2013/05/getting-imei-number-and-other-details.html


Getting IMEI Number and other Details

The Android Development Tutorials blog contains Basic as well as Advanced android tutorials.Go to Android Development Tutorials to get list of all Android Tutorials.

IMEI Nmber Using TelePhony Manager

In Android, using TelephonyManager we can get many details of the phone and SIM like IMEI Number, SIM Serial ID, SIM state, Roaming information etc.




  



In order to get these details we must declare following permission in AndroidManifest file..
<uses-permission android:name="android.permission.READ_PHONE_STATE" />



Have an  object of TelephonyMnager
TelephonyManager  tm=(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);

Get IMEI Number of Phone

         String IMEINumber=tm.getDeviceId();

 Get Subscriber ID

          String subscriberID=tm.getDeviceId();

  Get SIM Serial Number

            String SIMSerialNumber=tm.getSimSerialNumber();

 Get Network Country ISO Code

             String networkCountryISO=tm.getNetworkCountryIso();

 Get SIM Country ISO Code

               String SIMCountryISO=tm.getSimCountryIso();

 Get the device software version

               String softwareVersion=tm.getDeviceSoftwareVersion()

 Get the Voice mail number

               String voiceMailNumber=tm.getVoiceMailNumber();


 Get the Phone Type CDMA/GSM/NONE

            int phoneType=tm.getPhoneType();

            switch (phoneType) 
            {
                    case (TelephonyManager.PHONE_TYPE_CDMA):

                               // your code
                                   break;
                    case (TelephonyManager.PHONE_TYPE_GSM) 

                               // your code                 
                                   break;
                    case (TelephonyManager.PHONE_TYPE_NONE):

                               // your code              
                                    break;
             }


 Find whether the Phone is in Roaming, returns true if in roaming

             boolean isRoaming=tm.isNetworkRoaming();
              if(isRoaming)
                      phoneDetails+="\nIs In Roaming : "+"YES";
              else
                     phoneDetails+="\nIs In Roaming : "+"NO";


Get the SIM state

            int SIMState=tm.getSimState();
            switch(SIMState)
            {
                    case TelephonyManager.SIM_STATE_ABSENT :
                        // your code
                        break;
                    case TelephonyManager.SIM_STATE_NETWORK_LOCKED :
                        // your code
                        break;
                    case TelephonyManager.SIM_STATE_PIN_REQUIRED :
                        // your code
                        break;
                    case TelephonyManager.SIM_STATE_PUK_REQUIRED :
                        // your code
                        break;
                    case TelephonyManager.SIM_STATE_READY :
                        // your code
                        break;
                    case TelephonyManager.SIM_STATE_UNKNOWN :
                        // your code
                        break;
            
            }

           




 

 

Advance Android Topics


                   Customizing Toast In Android 
                   Showing Toast for Longer Time
                   Customizing the Display Time of Toast 
                   Using TimePickerDialog and DatePickerDialog In android
                   Animating A Button In Android
                    Populating ListView With DataBase

                    Customizing Checkboxes In Android 
                    Increasin Size of Checkboxes
                    Android ProgressBar
                    Designing For Different Screen Sizes 
                    Handling Keyboard Events 



More Android Topics:



Android : Introduction


       Eclipse Setup for Android Development

                     Configuring Eclipse for Android Development

          Begging With Android

                     Creating Your First Android Project
                     Understanding Android Manifest File of your android app


         Working With Layouts

                      Understanding Layouts in Android
                          Working with Linear Layout (With Example)
                                Nested Linear Layout (With Example)
                          Table Layout
                          Frame Layout(With Example)
                         Absolute Layout
                         Grid Layout


       Activity

                     Activity In Android
                     Activity Life Cycle
                     Starting Activity For Result
                     Sending Data from One Activity to Other in Android
                     Returning Result from Activity

     Working With Views

                     Using Buttons and EditText in Android 
                     Using CheckBoxes in Android  
                     Using AutoCompleteTextView in Android
                     Grid View

       Toast

                     Customizing Toast In Android 
                     Customizing the Display Time of Toast 
                     Customizing Toast At Runtime 
                     Adding Image in Toast
                     Showing Toast for Longer Time

     Dialogs In Android

                     Working With Alert Dialog
                     Adding Radio Buttons In Dialog
                     Adding Check Boxes In Dialog
                     Creating Customized Dialogs in Android
                    Adding EditText in Dialog

                   Creating Dialog To Collect User Input

                 DatePicker and TimePickerDialog

                              Using TimePickerDialog and DatePickerDialog In android

    Working With SMS

                  How to Send SMS in Android
                  How To Receive SMS
                  Accessing Inbox In Android

    ListView:

               Populating ListView With DataBase

      Menus In Android

                    Creating Option Menu
                    Creating Context Menu In Android

      TelephonyManager

                    Using Telephony Manager In Android

     Working With Incoming Calls

                    How To Handle Incoming Calls in Android
                    How to Forward an Incoming Call In Android
                   CALL States In Android
  

    Miscellaneous

                   Notifications In Android
                   How To Vibrate The Android Phone 
                   Sending Email In Android
                  Opening a webpage In Browser
                   How to Access PhoneBook In Android
                   Prompt User Input with an AlertDialog

   Storage:  Storing Data In Android


               Shared Prefferences  In Android

                             SharedPreferences In Android

               Files: File Handling In Android

                              Reading and Writing files to Internal Stoarage
                              Reading and Writing files to SD Card 
                            

                DataBase : Working With Database

                             Working With Database in Android
                             Creating Table In Android
                             Inserting, Deleting and Updating Records In Table in Android
                             How to Create DataBase in Android
                             Accessing Inbox In Android

     Animation In Android:

                  Animating A Button In Android
조회 수 :
84228
등록일 :
2013.11.04
21:40:39 (*.251.139.147)
엮인글 :
http://www.webs.co.kr/index.php?document_srl=34456&act=trackback&key=d2d
게시글 주소 :
http://www.webs.co.kr/index.php?document_srl=34456
List of Articles
번호 제목 글쓴이 조회 수sort 추천 수 날짜
50 스마트폰어플 Acrobit file admin 35900   2011-12-14
 
49 SK Broadband 지정전화 자동 연결서비스 admin 35264   2012-04-14
 
48 LG 휴대폰 요금제 정리 admin 35211   2013-02-17
 
47 Force Samsung Galaxy S4 to Connect to WCDMA Only Network Mode admin 35175   2014-02-11
 
46 SK 휴대폰 요금제 정리 admin 34759   2013-02-17
 
45 KT 휴대폰 요금제 정리 admin 34682   2013-02-17
 
44 통신사 포인트, 몰라서 안 쓴다 해 바뀌면 소멸… 영화관·편의점 등 사용처 다양 admin 34534   2015-03-11
 
43 샌디스크 크루저 8G USB CD영역 생성하기 admin 34387   2013-01-02
 
42 알면 힘이되는 휴대폰 상식 admin 33672   2012-05-11
 
41 이동통신사 LTE 요금제비교 admin 33511   2012-05-07
 
40 중국 한국 발신번호 제공 휴대폰 무료 국제전화 China CLI admin 32359   2013-01-02
 
39 T 로밍데이타 One Pass 요금제 9900원/일 admin 32280   2013-06-01
 
38 중국 핸드폰은 어떻게 쓸까? admin 31822   2012-04-15
 
37 Olleh 해외 로밍 데이타 서비스 11000원 /일 admin 31453   2013-06-01
 
36 마우스 오른쪽 버튼 클릭 금지를 풀 수 있답니다. admin 31384   2012-04-15
 
35 아이폰4 VS 갤럭시S 사양비교 admin 31252   2012-05-21
 
34 스마트폰 어플 sipdroid.doc file admin 30975   2011-12-14
 
33 "10원이라도 더 싸게" 이동통신 반값 전쟁 MVNO admin 30298   2012-05-16
 
32 스마트폰 어플 Media5.doc file admin 30008   2011-12-14
 
31 4G Wibro 커버리지 Olleh KT Wibro admin 29144   2012-05-07
 
30 이동전화 최적요금제 조회 admin 29008   2013-02-17
 
29 ▣ 전화 수신거부 당하면 어떻게 될까? admin 28474   2015-03-09
 
28 아이폰 5 사양 iphone 5 사양 file admin 28076   2012-12-04
 
27 망중립성 관련 admin 26972   2013-02-16
 
26 통신3사의 무제한 요금제 뒤에 감추어진 꼼수 통화분수 분석 부가통화 꼼수 file admin 26017   2015-01-04
 
25 SKT 통화내역 조회 전화번호 와 발신 날짜 기록 확인 조회 하는 방법 admin 25633   2017-09-02
 
24 FLEXJSON admin 23338   2015-04-16
 
23 [인포그래픽] 삼성전자 휴대전화 통신기술의 진화 admin 23317   2015-03-16
 
22 SKT 착신전화 방법 admin 23256   2017-08-20
 
21 삼성전자 무선사업부 개발실에서는 무슨 일을 할까요? admin 23247   2015-03-16