本文整理汇总了Java中com.socks.library.KLog.init方法的典型用法代码示例。如果您正苦于以下问题:Java KLog.init方法的具体用法?Java KLog.init怎么用?Java KLog.init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.socks.library.KLog
的用法示例。
在下文中一共展示了KLog.init方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
init();
//初始化KLog
KLog.init(BuildConfig.LOG_DEBUG);
// fresco图片库的初始化
ImagePipelineConfig.Builder configBuilder = ImagePipelineConfig.newBuilder(this);
ImagePipelineConfig imagePipelineConfig = configBuilder.build();
Fresco.initialize(this, imagePipelineConfig);
/**
* 如果存在SD卡则将缓存写入SD卡,否则写入手机内存
*/
if (getApplicationContext().getExternalCacheDir() != null && ExistSDCard()) {
cacheDir = getApplicationContext().getExternalCacheDir().toString();
} else {
cacheDir = getApplicationContext().getCacheDir().toString();
}
}
示例2: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (mApplication == null) {
mApplication = this;
}
//设置Klog
KLog.init(true, "AaronYi");
}
示例3: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
//初始化数据库
DbCore.init(this);
DbCore.enableQueryBuilderLog(); //开启调试 log
//log管理
KLog.init(BuildConfig.DEBUG);
}
示例4: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
AppContenxt = getApplicationContext();
application = this;
version="v1.0.0";
KLog.init(DEBUG);
initializeInjector();
RealmConfiguration config = new RealmConfiguration.Builder(this).build();
Realm.deleteRealm(config);
Realm.setDefaultConfiguration(config);
}
示例5: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
yContext = this;
// PreferenceUtil preferenceUtil = new PreferenceUtil(yContext);
// boolean isNightMode = preferenceUtil.getBoolean(Contant.DAY_NIGHT_MODE);
// if (isNightMode){
// AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
// }else {
// //设置该app的主题根据时间不同显示
// AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
// }
KLog.init(BuildConfig.LOG_DEBUG);
}
示例6: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
mApplication = this;
this.mAppModule = new AppModule(this,mAppManager);//提供application
mAppComponent = DaggerAppComponent
.builder()
.appModule(mAppModule)
.build();
initDayNightMode();
initDaoSession();
KLog.init(true);
}
示例7: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
//初始化 log
KLog.init(BuildConfig.LOG_DEBUG);
}
示例8: init
import com.socks.library.KLog; //导入方法依赖的package包/类
public static void init(boolean isShowlog) {
KLog.init(isShowlog);
}
示例9: onCreate
import com.socks.library.KLog; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
App.app = this;
KLog.init(true);
GpsUtil.checkGPSDevice();
screenInfo = DeviceUtil.getScreenInfo();
TrackRecordService.bindService(this, conn);
setPolicy();
networkReceiver = new NetworkReceiver();
networkReceiver.regist(this);
handler = new MyHandler(this){
@Override
public void myHandleMessage(Message msg) {
switch (msg.what) {
case MSG_SERVICE_STATUS_UPDATE:
//msg.arg1 == 0开启服务
boolean isStart = msg.arg1 == 0 ? true : false;
if(isStart){
startForegroundIn();
}else{
stopForegroundIn();
}
break;
default:
break;
}
}
};
}
示例10: init
import com.socks.library.KLog; //导入方法依赖的package包/类
public static void init(boolean isShowLog, @Nullable String tag) {
TAG = tag;
KLog.init(isShowLog, tag);
}