-
ListView遍历每个Item出现NullPointerException的异常
摘要:在使用ListView过程中我们有时候需要遍历取得每个Item项中的一些数据(比如每个Item里面有TextView,需要获取它的文本等等),但是我们在遍历过程中经常会遇到NullPointerException的异常,其实这不过是listview中getCount()和getChildCount(...
阅读全文
-
检查或遍历android手机应程
摘要:检查android手机中是否存在某应程public boolean checkApp(String packageName) { if (packageName == null || "".equals(packageName)) return false; try { ApplicationInf...
阅读全文
|