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   java界的奥特曼  阅读(5295)  评论(0编辑  收藏  举报
努力加载评论中...

点击右上角即可分享
微信分享提示