Advertisement
rraito

Belajar telephony manager

Apr 2nd, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. Belajar telephony manager
  2. cuma ngambil informasi doang
  3. TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
  4. Log.d ( "Returns a constant indicating the call state (cellular) on the device.", String.valueOf(telephonyManager.getCallState()));
  5.  
  6. // Log.d ( "", String.valueOf(telephonyManager.getCellLocation()));
  7. Log.d ( "Returns a constant indicating the type of activity on a data connection (cellular).", String.valueOf(telephonyManager.getDataActivity()));
  8. Log.d ( "Returns a constant indicating the current data connection state (cellular).", String.valueOf(telephonyManager.getDataState()));
  9. Log.d ( "Returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones.", String.valueOf(telephonyManager.getDeviceId()));
  10. Log.d ( "Returns the software version number for the device, for example, the IMEI/SV for GSM phones.", String.valueOf(telephonyManager.getDeviceSoftwareVersion()));
  11. Log.d ( "Returns the phone number string for line 1, for example, the MSISDN for a GSM phone.", String.valueOf(telephonyManager.getLine1Number()));
  12. // Log.d ( "", String.valueOf(telephonyManager.getNeighboringCellInfo()));
  13. Log.d ( "Returns the ISO country code equivalent of the current registered operator's MCC (Mobile Country Code).", String.valueOf(telephonyManager.getNetworkCountryIso()));
  14. Log.d ( "Returns the numeric name (MCC+MNC) of current registered operator.", String.valueOf(telephonyManager.getNetworkOperator()));
  15. Log.d ( "Returns the alphabetic name of current registered operator.", String.valueOf(telephonyManager.getNetworkOperatorName()));
  16. Log.d ( "Returns a constant indicating the radio technology (network type) currently in use on the device for data transmission.", String.valueOf(telephonyManager.getNetworkType()));
  17. Log.d ( "Returns a constant indicating the device phone type.", String.valueOf(telephonyManager.getPhoneType()));
  18. Log.d ( "Returns the ISO country code equivalent for the SIM provider's country code.", String.valueOf(telephonyManager.getSimCountryIso()));
  19. Log.d ( "Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM.", String.valueOf(telephonyManager.getSimOperator()));
  20. Log.d ( "Returns the Service Provider Name (SPN).", String.valueOf(telephonyManager.getSimOperatorName()));
  21. Log.d ( "Returns the serial number of the SIM, if applicable.", String.valueOf(telephonyManager.getSimSerialNumber()));
  22. Log.d ( "Returns a constant indicating the state of the device SIM card.", String.valueOf(telephonyManager.getSimState()));
  23. Log.d ( "Returns the unique subscriber ID, for example, the IMSI for a GSM phone.", String.valueOf(telephonyManager.getSubscriberId()));
  24. Log.d ( "Retrieves the alphabetic identifier associated with the voice mail number.", String.valueOf(telephonyManager.getVoiceMailAlphaTag()));
  25. Log.d ( "Returns the voice mail number.", String.valueOf(telephonyManager.getVoiceMailNumber()));
  26. Log.d ( "hasIccCard()", String.valueOf(telephonyManager.hasIccCard()));
  27. Log.d ( "Returns true if the device is considered roaming on the current network, for GSM purposes.", String.valueOf(telephonyManager.isNetworkRoaming()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement