public class MyApplication extends Application {
public static Context mcontext;
public static ArrayList<BaseFragment> baseFragments;
@Override
public void onCreate() {
super.onCreate();
mcontext=this;
JPushInterface.setDebugMode(true);
JPushInterface.init(this);
baseFragments=new ArrayList<>();
}
}
我这样写不管用啊,或者有木有办法设置一个集合所有的类都能公用的??