2016-06-30 3 views

답변

1

이전에는 절대로 구현하지 않았지만 질문에 관심이 많았고 파기도했습니다. roman10에서 그래서

는 :

private String getInfo() { 
StringBuffer sb = new StringBuffer(); 
sb.append("abi: ").append(Build.CPU_ABI).append("n"); 
if (new File("/proc/cpuinfo").exists()) { 
    try { 
     BufferedReader br = new BufferedReader(new FileReader(new File("/proc/cpuinfo"))); 
     String aLine; 
     while ((aLine = br.readLine()) != null) { 
      sb.append(aLine + "n"); 
     } 
     if (br != null) { 
      br.close(); 
     } 
    } catch (IOException e) { 
     e.printStackTrace(); 
    } 
} 
return sb.toString(); 
} 

또한 당신을 도울 수있는이 post있다.

관련 문제