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