The name of the instruction set (CPU type + ABI convention) of native code. - Android Hardware

Android examples for Hardware:CPU Information

Description

The name of the instruction set (CPU type + ABI convention) of native code.

Demo Code


//package com.java2s;

import android.text.TextUtils;

public class Main {
    /**//from  w  ww.  ja va 2  s  . com
     * The name of the instruction set (CPU type + ABI convention) of native code.
     * @return
     */
    public static final String obtainCpu() {
        String cpu = android.os.Build.CPU_ABI;
        if (TextUtils.isEmpty(cpu)) {
            cpu = "";
        }
        return cpu;
    }
}

Related Tutorials