如何试用 Intent 打开另一个activity
DescriptionResourcePathLocationType
Cannot make a static reference to the non-static method setClass(Context, Class<?>) from the type IntentMainActivity.java/yany/src/com/example/yanyline 37Java Problem
这是错误报告
[解决办法]
intent.setClass(MainActivity.this,other.class); intent是小写的
[解决办法]
intent.setClass(MainActivity.this,other.class); intent是小写的
楼主太粗心了一点,IDE都告诉你那行有问题了啊,再仔细找找,肯定可以发现的呀
[解决办法]
i句简单的话,start(new intent(XXX.this,XXX.Class));