最近2018中文字幕在日韩欧美国产成人片_国产日韩精品一区二区在线_在线观看成年美女黄网色视频_国产精品一区三区五区_国产精彩刺激乱对白_看黄色黄大色黄片免费_人人超碰自拍cao_国产高清av在线_亚洲精品电影av_日韩美女尤物视频网站

RELATEED CONSULTING
相關咨詢
選擇下列產品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網營銷解決方案
AndroidBuild類的詳解及簡單實例

Android Build類的詳解及簡單實例

成都創(chuàng)新互聯(lián)公司是專業(yè)的邵陽網站建設公司,邵陽接單;提供網站設計制作、成都網站制作,網頁設計,網站設計,建網站,PHP網站建設等專業(yè)做網站服務;采用PHP框架,可快速的進行邵陽網站開發(fā)網頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網站,專業(yè)的做網站團隊,希望更多企業(yè)前來合作!

一、類結構:

java.lang.Object
? android.os.Build

二、類概述:從系統(tǒng)屬性中提取設備硬件和版本信息。

三、內部類:

1、Build.VERSION 各種版本字符串

2、Build.VERSION_CODES 目前已知的版本代碼的枚舉類

四、常量:UNKNOWN 當一個版本屬性不知道時所設定的值。其字符串值為 unknown .

五、構造方法: Build ()

六、靜態(tài)屬性

1、BOARD 主板:The name of the underlying board, like goldfish.

2、BOOTLOADER 系統(tǒng)啟動程序版本號:The system bootloader version number.

3、BRAND 系統(tǒng)定制商:The consumer-visible brand with which the product/hardware will be associated, if any.

4、CPU_ABI cpu指令集:The name of the instruction set (CPU type + ABI convention) of native code.

5、CPU_ABI2 cpu指令集2:The name of the second instruction set (CPU type + ABI convention) of native code.

6、DEVICE 設備參數(shù):The name of the industrial design.

7、DISPLAY 顯示屏參數(shù):A build ID string meant for displaying to the user

8、FINGERPRINT 唯一識別碼:A string that uniquely identifies this build. Do not attempt to parse this value.

9、HARDWARE 硬件名稱:The name of the hardware (from the kernel command line or /proc).

10、HOST

11、ID 修訂版本列表:Either a changelist number, or a label like M4-rc20.

12、MANUFACTURER 硬件制造商:The manufacturer of the product/hardware.

13、MODEL 版本即最終用戶可見的名稱:The end-user-visible name for the end product.

14、PRODUCT 整個產品的名稱:The name of the overall product.

15、RADIO 無線電固件版本:The radio firmware version number. 在API14后已過時。使用getRadioVersion()代替。

16、SERIAL 硬件序列號:A hardware serial number, if available. Alphanumeric only, case-insensitive.

17、TAGS 描述build的標簽,如未簽名,debug等等。:Comma-separated tags describing the build, like unsigned,debug.

18、TIME

19、TYPE build的類型:The type of build, like user or eng.

20、USER

七、公共方法:

public static String getRadioVersion() 獲取無線電固件版本

八、測試示例:

public static String getDeviceInfo() { 
    StringBuffer sb = new StringBuffer(); 
    sb.append("主板: "+ Build.BOARD+"\n"); 
    sb.append("系統(tǒng)啟動程序版本號: " + Build.BOOTLOADER+"\n"); 
    sb.append("系統(tǒng)定制商:" + Build.BRAND+"\n"); 
    sb.append("cpu指令集: " + Build.CPU_ABI+"\n"); 
    sb.append("cpu指令集2 "+ Build.CPU_ABI2+"\n"); 
    sb.append("設置參數(shù): "+ Build.DEVICE+"\n"); 
    sb.append("顯示屏參數(shù):" + Build.DISPLAY+"\n"); 
    sb.append("無線電固件版本:" + Build.getRadioVersion()+"\n"); 
    sb.append("硬件識別碼:" + Build.FINGERPRINT+"\n"); 
    sb.append("硬件名稱:" + Build.HARDWARE+"\n"); 
    sb.append("HOST: " + Build.HOST+"\n"); 
    sb.append("修訂版本列表:" + Build.ID+"\n"); 
    sb.append("硬件制造商:" + Build.MANUFACTURER+"\n"); 
    sb.append("版本:" + Build.MODEL+"\n"); 
    sb.append("硬件序列號:" + Build.SERIAL+"\n"); 
    sb.append("手機制造商:" + Build.PRODUCT+"\n"); 
    sb.append("描述Build的標簽:" + Build.TAGS+"\n"); 
    sb.append("TIME: " + Build.TIME+"\n"); 
    sb.append("builder類型:" + Build.TYPE+"\n"); 
    sb.append("USER: " + Build.USER+"\n"); 
    return sb.toString(); 
  } 

如有疑問請留言或者到本站社區(qū)交流討論,感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!


網頁標題:AndroidBuild類的詳解及簡單實例
分享地址:http://fisionsoft.com.cn/article/jiohch.html