iapplication专题

【IApplication】基于MVP+Dagger2+Retrofit+Rxjava框架之IApplication

封装要点 获取本类实例提供外界访问getInstance(); private static IApplication sInstance;//本类//onCreate()里sInstance = this;//方法public static IApplication getInstance(){return sInstance;}