隐私合规
This commit is contained in:
@@ -42,37 +42,40 @@ import utils.NineImageLoader;
|
||||
* Created by 90432 on 2018/1/15.
|
||||
*/
|
||||
|
||||
public class MyApplication extends Application{
|
||||
//private static final String TAG = "JIGUANG-Example";
|
||||
public class MyApplication extends Application {
|
||||
//private static final String TAG = "JIGUANG-Example";
|
||||
private static final String TAG = MyApplication.class.getSimpleName();
|
||||
public static Context context;
|
||||
protected static MyApplication instance;
|
||||
protected static MyApplication instance;
|
||||
public JCVideoPlayerStandard VideoPlaying;
|
||||
/* private HttpNet httpNet;
|
||||
public static Handler getTheErrorHandler;
|
||||
public static boolean mainonce;
|
||||
|
||||
/* private HttpNet httpNet;
|
||||
public static Handler getTheErrorHandler;
|
||||
public static boolean mainonce;
|
||||
|
||||
*/
|
||||
public static Context getContext() {
|
||||
return context;
|
||||
public static Context getContext() {
|
||||
return context;
|
||||
|
||||
}
|
||||
@Override
|
||||
protected void attachBaseContext(Context base) {
|
||||
super.attachBaseContext(base);
|
||||
MultiDex.install(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void attachBaseContext(Context base) {
|
||||
super.attachBaseContext(base);
|
||||
MultiDex.install(this);
|
||||
}
|
||||
|
||||
public static MyApplication getApp() {
|
||||
return instance;
|
||||
}
|
||||
public void existActivitys() {
|
||||
for(Activity act :activityList){
|
||||
|
||||
public void existActivitys() {
|
||||
for (Activity act : activityList) {
|
||||
act.finish();
|
||||
}
|
||||
}
|
||||
|
||||
public void addActivitys(Activity activity ) {
|
||||
public void addActivitys(Activity activity) {
|
||||
activityList.add(activity);
|
||||
}
|
||||
|
||||
@@ -85,12 +88,15 @@ public class MyApplication extends Application{
|
||||
super.onCreate();
|
||||
instance = this;
|
||||
initOkGo();
|
||||
JPushInterface.init(this);
|
||||
JPushInterface.setDebugMode(true);
|
||||
//
|
||||
|
||||
// CrashHandler crashHandler = CrashHandler.getInstance();
|
||||
// crashHandler.init(this);
|
||||
Bugly.init(this,"d45325664f",false);
|
||||
if (getSharedPreferences("first", Context.MODE_PRIVATE).getInt("first", 0) == 1) {
|
||||
JPushInterface.init(this);
|
||||
JPushInterface.setDebugMode(false);
|
||||
Bugly.init(this, "d45325664f", false);
|
||||
}
|
||||
|
||||
// System.setProperty("http.proxyHost", "haotian.hoheng.cn");
|
||||
// System.setProperty("http.proxyPort", "8080");
|
||||
|
||||
@@ -107,7 +113,6 @@ public class MyApplication extends Application{
|
||||
public static final String KEY_EXTRAS = "extras";
|
||||
|
||||
|
||||
|
||||
public void exit() {
|
||||
for (Activity act : activityList) {
|
||||
act.finish();
|
||||
@@ -116,18 +121,6 @@ public class MyApplication extends Application{
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void initOkGo() {
|
||||
//---------这里给出的是示例代码,告诉你可以这么传,实际使用的时候,根据需要传,不需要就不传-------------//
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
|
||||
Reference in New Issue
Block a user