Android 学习之异常总结--java.lang.IllegalStateException:Could not execute method of the activity

在android学习过程中通常会遇到java.lang.IllegalStateException:Could not execute method of the activity这个错误:非法状态的异常

往android的主程序去写东西的时候必须要拿到上下文的,调用普通对象的方法是没有上下文的。

posted on 2014-11-13 15:18  java界的奥特曼  阅读(5285)  评论(0编辑  收藏  举报