android.telephony.TelephonyManager.getDeviceSoftwareVersion()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中android.telephony.TelephonyManager.getDeviceSoftwareVersion()方法的一些代码示例,展示了TelephonyManager.getDeviceSoftwareVersion()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TelephonyManager.getDeviceSoftwareVersion()方法的具体详情如下:
包路径:android.telephony.TelephonyManager
类名称:TelephonyManager
方法名:getDeviceSoftwareVersion

TelephonyManager.getDeviceSoftwareVersion介绍

暂无

代码示例

代码示例来源:origin: square/assertj-android

public TelephonyManagerAssert hasDeviceSoftwareVersion(String version) {
 isNotNull();
 String actualVersion = actual.getDeviceSoftwareVersion();
 assertThat(actualVersion) //
   .overridingErrorMessage("Expected device software version <%s> but was <%s>.", version,
     actualVersion) //
   .isEqualTo(version);
 return this;
}

代码示例来源:origin: stackoverflow.com

private void checkForDebugMode() {
  ISDEBUGMODE = false; //(Secure.getString(getApplicationContext().getContentResolver(), Secure.ANDROID_ID) == null);

  TelephonyManager man = (TelephonyManager) getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
  if(man != null){
    String devId = man.getDeviceSoftwareVersion();
    ISDEBUGMODE = (devId == null);
  }
}

代码示例来源:origin: stackoverflow.com

TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
Log.d("X", tm.getDeviceId() + ", " + tm.getDeviceSoftwareVersion());

代码示例来源:origin: com.squareup.assertj/assertj-android

public TelephonyManagerAssert hasDeviceSoftwareVersion(String version) {
 isNotNull();
 String actualVersion = actual.getDeviceSoftwareVersion();
 assertThat(actualVersion) //
   .overridingErrorMessage("Expected device software version <%s> but was <%s>.", version,
     actualVersion) //
   .isEqualTo(version);
 return this;
}

代码示例来源:origin: luhaoaimama1/zone-sdk

sb.append("\nDeviceSoftwareVersion:").append(tm.getDeviceSoftwareVersion());
sb.append("\ngetLine1Number       :").append(tm.getLine1Number());
sb.append("\nNetworkCountryIso    :").append(tm.getNetworkCountryIso());

代码示例来源:origin: Leeii/LeeFream

sb.append("\nDeviceSoftwareVersion:").append(tm.getDeviceSoftwareVersion());
sb.append("\ngetLine1Number       :").append(tm.getLine1Number());
sb.append("\nNetworkCountryIso    :").append(tm.getNetworkCountryIso());

代码示例来源:origin: huangweicai/OkLibDemo

sb.append("\nDeviceID(IMEI)       :").append(tm.getDeviceId());
sb.append("\nDeviceSoftwareVersion:").append(
    tm.getDeviceSoftwareVersion());
sb.append("\ngetLine1Number       :").append(tm.getLine1Number());
sb.append("\nNetworkCountryIso    :").append(tm.getNetworkCountryIso());

代码示例来源:origin: retomeier/Wrox-ProfessionalAndroid-4E

String softwareVersion = telephonyManager.getDeviceSoftwareVersion();

代码示例来源:origin: denzilferreira/aware-client

rowData.put(Telephony_Data.DATA_ENABLED, telephonyManager.getDataState());
rowData.put(Telephony_Data.IMEI_MEID_ESN, Encrypter.hash(getApplicationContext(), telephonyManager.getDeviceId()));
rowData.put(Telephony_Data.SOFTWARE_VERSION, telephonyManager.getDeviceSoftwareVersion());
rowData.put(Telephony_Data.LINE_NUMBER, Encrypter.hashPhone(getApplicationContext(), telephonyManager.getLine1Number()));
rowData.put(Telephony_Data.NETWORK_COUNTRY_ISO_MCC, telephonyManager.getNetworkCountryIso());

代码示例来源:origin: stackoverflow.com

.getDeviceSoftwareVersion())
+ "\n\tNumber ="

代码示例来源:origin: stackoverflow.com

//Get the instance of TelephonyManager  
 TelephonyManager  tm=(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);  
 //Calling the methods of TelephonyManager the returns the information  
 String IMEINumber=tm.getDeviceId();  
 String subscriberID=tm.getDeviceId();  
 String SIMSerialNumber=tm.getSimSerialNumber();  
 String networkCountryISO=tm.getNetworkCountryIso();  
 String SIMCountryISO=tm.getSimCountryIso();  
 String softwareVersion=tm.getDeviceSoftwareVersion();  
 String voiceMailNumber=tm.getVoiceMailNumber();  
 //Get the phone type  
 String strphoneType="";  
 int phoneType=tm.getPhoneType();  
 switch (phoneType)   
 {  
     case (TelephonyManager.PHONE_TYPE_CDMA):  
           strphoneType="CDMA";  
             break;  
     case (TelephonyManager.PHONE_TYPE_GSM):   
           strphoneType="GSM";                
             break;  
     case (TelephonyManager.PHONE_TYPE_NONE):  
           strphoneType="NONE";                
             break;  
  }

代码示例来源:origin: gdpancheng/LoonAndroid3

/**
 * 在获取系统信息前初始化
 * 
 * @author gdpancheng@gmail.com 2013-10-22 下午1:14:12
 * @return void
 */
public static void init() {
  mTm = (TelephonyManager) Ioc.getIoc().getApplication().getSystemService(Context.TELEPHONY_SERVICE);
  mIMEI = mTm.getDeviceId();
  mMobileVersion = mTm.getDeviceSoftwareVersion();
  mCellinfos = mTm.getNeighboringCellInfo();
  mNetwrokIso = mTm.getNetworkCountryIso();
  mSIM = mTm.getSimSerialNumber();
  mDeviceID = getDeviceId();
  try {
    ConnectivityManager cm = (ConnectivityManager) Ioc.getIoc().getApplication().getSystemService(Context.CONNECTIVITY_SERVICE);
    NetworkInfo info = cm.getActiveNetworkInfo();
    if (info != null) {
      mNetType = info.getTypeName();
    }
  } catch (Exception ex) {
  }
}

代码示例来源:origin: hoangkien0705/Android-UtilCode

String str = "";
str += "DeviceId(IMEI) = " + tm.getDeviceId() + "\n";
str += "DeviceSoftwareVersion = " + tm.getDeviceSoftwareVersion() + "\n";
str += "Line1Number = " + tm.getLine1Number() + "\n";
str += "NetworkCountryIso = " + tm.getNetworkCountryIso() + "\n";

代码示例来源:origin: lianghuiyong/AndroidBase

String str = "";
str += "DeviceId(IMEI) = " + tm.getDeviceId() + "\n";
str += "DeviceSoftwareVersion = " + tm.getDeviceSoftwareVersion() + "\n";
str += "Line1Number = " + tm.getLine1Number() + "\n";
str += "NetworkCountryIso = " + tm.getNetworkCountryIso() + "\n";

代码示例来源:origin: yaozs/YzsLib

String str = "";
str += "DeviceId(IMEI) = " + tm.getDeviceId() + "\n";
str += "DeviceSoftwareVersion = " + tm.getDeviceSoftwareVersion() + "\n";
str += "Line1Number = " + tm.getLine1Number() + "\n";
str += "NetworkCountryIso = " + tm.getNetworkCountryIso() + "\n";

代码示例来源:origin: xiaolongonly/Ticket-Analysis

String str = "";
str += "DeviceId(IMEI) = " + tm.getDeviceId() + "\n";
str += "DeviceSoftwareVersion = " + tm.getDeviceSoftwareVersion() + "\n";
str += "Line1Number = " + tm.getLine1Number() + "\n";
str += "NetworkCountryIso = " + tm.getNetworkCountryIso() + "\n";

代码示例来源:origin: 0xm1nam0/RxCore

String str = "";
str += "DeviceId(IMEI) = " + tm.getDeviceId() + "\n";
str += "DeviceSoftwareVersion = " + tm.getDeviceSoftwareVersion() + "\n";
str += "Line1Number = " + tm.getLine1Number() + "\n";
str += "NetworkCountryIso = " + tm.getNetworkCountryIso() + "\n";

代码示例来源:origin: termux/termux-api

out.name("device_software_version").value(manager.getDeviceSoftwareVersion());

相关文章