1234567891011121314151617181920212223 |
- package com.ynstkz.shitu.android.application;
- import android.app.Application;
- import android.content.Context;
- /**
- * 作者:fuchangle on 2018/1/27 21:56
- */
- public class STApplication extends Application{
- private static Context context;
- @Override
- public void onCreate() {
- super.onCreate();
- context = getApplicationContext();
- }
- public static Context getContext(){
- return context;
- }
- }
|