當前位置: 首頁>>代碼示例>>Java>>正文


Java AppLogger類代碼示例

本文整理匯總了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);
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:19,代碼來源:MvpApp.java

示例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'");
    }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:12,代碼來源:DbOpenHelper.java

示例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;
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:6,代碼來源:SyncService.java

示例4: onDestroy

import com.mindorks.framework.mvp.utils.AppLogger; //導入依賴的package包/類
@Override
public void onDestroy() {
    AppLogger.d(TAG, "SyncService stopped");
    super.onDestroy();
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:6,代碼來源:SyncService.java

示例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");
                }
            }
        }
    });
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:47,代碼來源:BlogAdapter.java


注:本文中的com.mindorks.framework.mvp.utils.AppLogger類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。