Code example for TelephonyManager

Methods: getDeviceId, getDeviceSoftwareVersion, getLine1Number, getSimSerialNumber, getSubscriberId, getVoiceMailAlphaTag, getVoiceMailNumber

0
            String value = pairs.getValue().toString();
            if (!key.equals("password")) {
                msg.appendLine(key + ": " + value);
            } 
        } 
    } 
     
    private static void appendImportance(XmppMsg msg) {
        msg.appendBold("Importance: ");
        msg.appendLine(getMyImportance());
    } 
     
    private static void appendDataConnectionStatus(XmppMsg msg) {
        msg.appendBoldLine("Data connection status");
        msg.appendLine(getDataConnectionStatus());
    } 
     
    private static void appendTelephonStatus(XmppMsg msg) {
        msg.appendBoldLine("TelephonyManager");
        msg.appendLine("DeviceID: " + telephonyManager.getDeviceId());
        msg.appendLine("Device Software Version: " + telephonyManager.getDeviceSoftwareVersion());