| | |
| | | import android.app.Application; |
| | | |
| | | import com.dayu.pipirrapp.net.ApiManager; |
| | | import com.jeremyliao.liveeventbus.LiveEventBus; |
| | | import com.tencent.bugly.crashreport.CrashReport; |
| | | |
| | | //import cn.jpush.android.api.JPushInterface; |
| | |
| | | */ |
| | | public class MyApplication extends Application { |
| | | public static MyApplication myApplication; |
| | | //数据库的tag值 |
| | | public String myTag = "-1"; |
| | | public String token; |
| | | public String userId; |
| | | |
| | | |
| | | @Override |
| | | public void onCreate() { |
| | |
| | | CrashReport.postCatchedException(ex); |
| | | } |
| | | }); |
| | | //设置 |
| | | LiveEventBus.config() |
| | | // .lifecycleObserverAlwaysActive(false) // 控制生命周期监听的默认行为 |
| | | .autoClear(true); // 设置是否自动清理未使用的订阅 |
| | | } |
| | | } |