Get cpu info programmatically on android application

拥有回忆 提交于 2019-12-04 12:58:00
Stochastically

The line:

05-23 20:58:37.803: E/AndroidRuntime(30025): at `eu.lucazanini.swipeviews.MainActivity.onCreate(MainActivity.java:49)`

suggests that the java.lang.NullPointerException is occurring in your onCreate method. Looking at the code you posted, my guess is that findViewById(R.id.CPUinfo) is returning null. I suggest that you add Log.d(...) to print out whether CPUinfo is null or not.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!