2013年7月3日
摘要: 在java中执行shell有好几种方式:第一种(exec)方式一public static synchronized void runshell2(){File superuser = new File("/system/bin/superuser");if (superuser.exists()){// return device to o... 阅读全文
posted @ 2013-07-03 15:38 J.evan 阅读(17897) 评论(0) 推荐(0) 编辑
摘要: 首先解释下这句话This Handler class should be static or leaks might occur,大致意思就是说:Handler类应该定义成静态类,否则可能导致内存泄露。 具体如何解决,在国外有人提出,如下: Issue: Ensures that Handler classes do not hold on to a reference to an outer class In Android, Handler classes should be static or leaks might occur. Messages enqueued on the ap. 阅读全文
posted @ 2013-07-03 09:42 J.evan 阅读(11902) 评论(5) 推荐(0) 编辑