本文整理了Java中com.blankj.utilcode.util.Utils.init()
方法的一些代码示例,展示了Utils.init()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.init()
方法的具体详情如下:
包路径:com.blankj.utilcode.util.Utils
类名称:Utils
方法名:init
[英]初始化工具类
[中]初始化工具类
代码示例来源:origin: zyyoona7/EasyPopup
@Override
public void onCreate() {
super.onCreate();
// init it in the function of onCreate in ur Application
Utils.init(this);
}
}
代码示例来源:origin: sdwfqin/AndroidSamples
@Override
public void onCreate() {
super.onCreate();
Utils.init(this);
}
}
代码示例来源:origin: firelotus/Meteorite
@Override
public void onCreate() {
super.onCreate();
mContext = this;
mHandler = new Handler();
//AppStatusTracker.init(this);
Utils.init(this);
exceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
Thread.setDefaultUncaughtExceptionHandler(handler);
}
}
代码示例来源:origin: sdwfqin/AndroidSamples
@Override
public void onCreate() {
instance = this;
super.onCreate();
Utils.init(this);
initLog();
}
代码示例来源:origin: fangxiaogang/WanAndroidxg
@Override
public void onCreate() {
super.onCreate();
myApplication = this;
initApplicationComponent();
// CrashReport.initCrashReport(getApplicationContext(), "53b6bf0d48", false);
Utils.init(this);
}
代码示例来源:origin: Deemonser/AndroidSerialPort
@Override
public void onCreate() {
super.onCreate();
Utils.init(this);
JodaTimeAndroid.init(this);
}
}
代码示例来源:origin: hoangkien0705/Android-UtilCode
public static void init() {
Utils.init(RuntimeEnvironment.application);
}
代码示例来源:origin: wangfeng19930909/BaseMVP-master
@Override
public void onCreate() {
super.onCreate();
//初始化logger
LogUtils.logInit(true);
Utils.init(this);
}
代码示例来源:origin: SunAlwaysOnline/Sukeda
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (Build.VERSION.SDK_INT >= 21) {
View decorView = getWindow().getDecorView();
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
getWindow().setStatusBarColor(Color.TRANSPARENT);
}
setContentView(R.layout.activity_home);
Utils.init(getApplication());
initViews();
initTab();
initFunctionState();
//获取服务器时间
EntryUtil.get_current_time();
}
代码示例来源:origin: ZhuoKeTeam/QPM
public void init(Application application) {
Utils.init(application);
mContext = application.getApplicationContext();
QPMSortManager.getInstance().init();
QPMModeManager.getInstance().init();
QPMSwitchManager.getInstance().init();
QPMRAnalysisManager.getInstance().start(mContext, Process.myPid(), mContext.getPackageName());
}
代码示例来源:origin: yangchong211/YCAudioPlayer
/**
* 程序启动的时候执行
*/
@Override
public void onCreate() {
Log.d("Application", "onCreate");
super.onCreate();
instance = this;
Utils.init(this);
ToastUtils.init(this);
BaseLifecycleCallback.getInstance().init(this);
BaseAppHelper.get().init(this);
initAutoSizeConfig();
initThreadPool();
InitializeService.start(this);
}
代码示例来源:origin: hoangkien0705/Android-UtilCode
@Override
public void onCreate() {
super.onCreate();
// 内存泄露检查工具
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
LeakCanary.install(this);
Utils.init(this);
initLog();
initCrash();
initAssets();
}
代码示例来源:origin: xkzh/yduoduo
@Override
public void onCreate() {
super.onCreate();
sInstance = this;
context = getApplicationContext();
handler = new Handler();
mainThreadId = android.os.Process.myTid();
changeFontTypaFace();
Utils.init(this);
AppUtils.init(this);
initAd();
umengInit();
initTBS();
initPrefs();
if (!NetWorkUtils.isWifiProxy(this)) {
getAppData();//获取app配置数据
}
}
内容来源于网络,如有侵权,请联系作者删除!