12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- package com.edufound.android.xyyf.util;
- import android.app.Application;
- import android.content.Context;
- public class ContextUtil {
- public static final String CLOSE_ACTIVITY_SPLASH = "com.edufound.mobile.close.splash";
- public static final String CLOSE_ACTIVITY_MAIN = "com.edufound.mobile.close.main";
- public static final String CLOSE_ACTIVITY_PAY = "com.edufound.mobile.close.pay";
- public static final String RESTART_ACTIVITY_MAIN = "com.edufound.mobile.restart.main";
- public static final String CHANGE_VIDEO_TYPE_VIDEO = "com.edufound.mobile.change.video";
- public static final String CHANGE_VIDEO_TYPE_IJKPLAYER = "com.edufound.mobile.change.ijkplayer";
- public static final String NOTIFICATION_WEB_PLAYERTIME = "com.edufound.mobile.notification.playertime";
- public static final String URL_POST_USER_TIME = "http://m-xyyf-api.ai160.com/onlineTime";
- static Context mContext;
- static Application application;
- public static Application getApplication() {
- return application;
- }
- public static void setApplication(Application application) {
- ContextUtil.application = application;
- }
- static boolean isDebug;
- static boolean mNetWorkState = true;
- private static String TMAIL_USER_ID = "-1";
- private static String TMAIL_DEVICE_ID = "-1";
- public static boolean getNetWorkState() {
- return mNetWorkState;
- }
- public static void setmNetWorkState(boolean mNetWorkState) {
- ContextUtil.mNetWorkState = mNetWorkState;
- }
- public static void setContext(Context context) {
- mContext = context;
- }
- public static Context getContext() {
- if (mContext == null) {
- return null;
- }
- return mContext;
- }
- public static boolean isIsDebug() {
- return isDebug;
- }
- public static void setIsDebug(boolean isDebug) {
- ContextUtil.isDebug = isDebug;
- }
- public static String getTmailUserId() {
- return TMAIL_USER_ID;
- }
- public static void setTmailUserId(String tmailUserId) {
- TMAIL_USER_ID = tmailUserId;
- }
- public static String getTmailDeviceId() {
- return TMAIL_DEVICE_ID;
- }
- public static void setTmailDeviceId(String tmailDeviceId) {
- TMAIL_DEVICE_ID = tmailDeviceId;
- }
- }
|