1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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";
- // public static final String URL_POST_USER_TIME = "http://m-xyyf-api.efunbox.cn/onlineTime";//测试环境
- public static final String GET_USER_PHONENUMBER_URL = "http://m-xyyf-api.ai160.com/member/getMobile";
- 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;
- 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 getGetUserPhonenumberUrl() {
- return GET_USER_PHONENUMBER_URL;
- }
- }
|