没明白你什么意思如果你在成员变量中 Intent intent = new Intent(this,xxx.class);那肯定报错是,因为成员变量调用this还是null只有进入构造方法了,this才不是null