本文整理汇总了Java中com.mindorks.framework.mvp.utils.AppLogger类的典型用法代码示例。如果您正苦于以下问题:Java AppLogger类的具体用法?Java AppLogger怎么用?Java AppLogger使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AppLogger类属于com.mindorks.framework.mvp.utils包,在下文中一共展示了AppLogger类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.mindorks.framework.mvp.utils.AppLogger; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
mApplicationComponent = DaggerApplicationComponent.builder()
.applicationModule(new ApplicationModule(this)).build();
mApplicationComponent.inject(this);
AppLogger.init();
AndroidNetworking.initialize(getApplicationContext());
if (BuildConfig.DEBUG) {
AndroidNetworking.enableLogging(Level.BODY);
}
CalligraphyConfig.initDefault(mCalligraphyConfig);
}
示例2: onUpgrade
import com.mindorks.framework.mvp.utils.AppLogger; //导入依赖的package包/类
@Override
public void onUpgrade(Database db, int oldVersion, int newVersion) {
super.onUpgrade(db, oldVersion, newVersion);
AppLogger.d("DEBUG", "DB_OLD_VERSION : " + oldVersion + ", DB_NEW_VERSION : " + newVersion);
switch (oldVersion) {
case 1:
case 2:
//db.execSQL("ALTER TABLE " + UserDao.TABLENAME + " ADD COLUMN "
// + UserDao.Properties.Name.columnName + " TEXT DEFAULT 'DEFAULT_VAL'");
}
}
示例3: onStartCommand
import com.mindorks.framework.mvp.utils.AppLogger; //导入依赖的package包/类
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
AppLogger.d(TAG, "SyncService started");
return START_STICKY;
}
示例4: onDestroy
import com.mindorks.framework.mvp.utils.AppLogger; //导入依赖的package包/类
@Override
public void onDestroy() {
AppLogger.d(TAG, "SyncService stopped");
super.onDestroy();
}
示例5: onBind
import com.mindorks.framework.mvp.utils.AppLogger; //导入依赖的package包/类
public void onBind(int position) {
super.onBind(position);
final BlogResponse.Blog blog = mBlogResponseList.get(position);
if (blog.getCoverImgUrl() != null) {
Glide.with(itemView.getContext())
.load(blog.getCoverImgUrl())
.asBitmap()
.centerCrop()
.into(coverImageView);
}
if (blog.getTitle() != null) {
titleTextView.setText(blog.getTitle());
}
if (blog.getAuthor() != null) {
authorTextView.setText(blog.getAuthor());
}
if (blog.getDate() != null) {
dateTextView.setText(blog.getDate());
}
if (blog.getDescription() != null) {
contentTextView.setText(blog.getDescription());
}
itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (blog.getBlogUrl() != null) {
try {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_BROWSABLE);
intent.setData(Uri.parse(blog.getBlogUrl()));
itemView.getContext().startActivity(intent);
} catch (Exception e) {
AppLogger.d("url error");
}
}
}
});
}