Newer
Older
KillProcess / app / src / main / java / me / bell / killprocess / App.java
bello on 29 Mar 2018 493 bytes 加入多线程执行
package me.bell.killprocess;

import android.app.Application;
import android.content.Context;

/**
 * @Info
 * @Auth Bello
 * @Time 18/3/28 下午11:45
 * @Ver
 */

public class App extends Application {
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();

    }

    /**
     * 获取全局上下文
     * @return
     */
    public static Context getContext(){
        return context;
    }
}