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

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

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

原文地址:https://www.cnblogs.com/plf112233/p/4095046.html