android 获取手机的CPU型号

2018-12-14 17:19:47
 Log.d("build","BOARD:" + Build.BOARD);
Log.d("build","BOOTLOADER:" + Build.BOOTLOADER);    
Log.d("build","BRAND:" + Build.BRAND);
Log.d("build","CPU_ABI:" + Build.CPU_ABI);
Log.d("build","CPU_ABI2:" + Build.CPU_ABI2);
Log.d("build","DEVICE:" + Build.DEVICE);
Log.d("build","DISPLAY:" + Build.DISPLAY);
Log.d("build","FINGERPRINT:" + Build.FINGERPRINT);
Log.d("build","HARDWARE:" + Build.HARDWARE);       
Log.d("build","HOST:" + Build.HOST);
Log.d("build","ID:" + Build.ID);
Log.d("build","MANUFACTURER:" + Build.MANUFACTURER);
Log.d("build","MODEL:" + Build.MODEL);
Log.d("build","PRODUCT:" + Build.PRODUCT);
Log.d("build","RADIO:" + Build.RADIO);             
Log.d("build","TAGS:" + Build.TAGS);
Log.d("build","TIME:" + Build.TIME);
Log.d("build","TYPE:" + Build.TYPE);
Log.d("build","UNKNOWN:" + Build.UNKNOWN);         
Log.d("build","USER:" + Build.USER);
Log.d("build","VERSION.CODENAME:" + Build.VERSION.CODENAME);
Log.d("build","VERSION.INCREMENTAL:" + Build.VERSION.INCREMENTAL);
Log.d("build","VERSION.RELEASE:" + Build.VERSION.RELEASE);
Log.d("build","VERSION.SDK:" + Build.VERSION.SDK);
Log.d("build","VERSION.SDK_INT:" + Build.VERSION.SDK_INT);
String[] abis = new String[]{};
        if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP)
        {
            abis = Build.SUPPORTED_ABIS;
        } else {
            abis = new String[]{Build.CPU_ABI,Build.CPU_ABI2};
        }
        StringBuilder abiStr = new StringBuilder();
        for(String abi:abis)
        {
            abiStr.append(abi);
            abiStr.append(',');
        }
--------------------- 
作者:LoveWyf_ 
来源:CSDN 
原文:https://blog.csdn.net/qq_25412055/article/details/53884582 
版权声明:本文为博主原创文章,转载请附上博文链接!


  • 2017-05-02 17:54:57

    高并发 php uniqid 不重复唯一标识符生成方案

    PHP uniqid()函数可用于生成不重复的唯一标识符,该函数基于微秒级当前时间戳。在高并发或者间隔时长极短(如循环代码)的情况下,会出现大量重复数据。即使使用了第二个参数,也会重复,最好的方案是结合md5函数来生成唯一ID。

  • 2017-05-12 16:33:24

    说说JSON和JSONP,也许你会豁然开朗

      JSON(JavaScript Object Notation)和JSONP(JSON with Padding)虽然只有一个字母的差别,但其实他们根本不是一回事儿:JSON是一种数据交换格式,而JSONP是一种依靠开发人员的聪明才智创造出的一种非官方跨域数据交互协议。我们拿最近比较火的谍战片来打个比方,JSON是地下党们用来书写和交换情报的“暗号”,而JSONP则是把用暗号书写的情报传递给自己同志时使用的接头方式。看到没?一个是描述信息的格式,一个是信息传递双方约定的方法。

  • 2017-05-25 23:18:23

    webpack图片的路径与打包

    刚开始用webpack的同学很容易掉进图片打包这个坑里,比如打包出来的图片地址不对或者有的图片并不能打包进我们的目标文件夹里(bundle)。下面我们就来分析下在webpack项目中图片的应用场景。