本文整理汇总了Java中com.blankj.utilcode.utils.LogUtils类的典型用法代码示例。如果您正苦于以下问题:Java LogUtils类的具体用法?Java LogUtils怎么用?Java LogUtils使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LogUtils类属于com.blankj.utilcode.utils包,在下文中一共展示了LogUtils类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hasQQClientAvailable
import com.blankj.utilcode.utils.LogUtils; //导入依赖的package包/类
/**
* 判断 用户是否安装QQ客户端
*/
public static boolean hasQQClientAvailable(Context context) {
final PackageManager packageManager = context.getPackageManager();
List<PackageInfo> pinfo = packageManager.getInstalledPackages(0);
if (pinfo != null) {
for (int i = 0; i < pinfo.size(); i++) {
String pn = pinfo.get(i).packageName;
LogUtils.e("pn = " + pn);
if (pn.equalsIgnoreCase("com.tencent.qqlite") || pn.equalsIgnoreCase("com.tencent.mobileqq")) {
return true;
}
}
}
return false;
}
示例2: onCreate
import com.blankj.utilcode.utils.LogUtils; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Utils.init(getApplicationContext());
LogUtils.init(true,false,'v',"TAG");
mHandler=new Handler();
initApplicationComponent();
RxRetrofitApp.init(this, BuildConfig.DEBUG);
}
示例3: refreshView
import com.blankj.utilcode.utils.LogUtils; //导入依赖的package包/类
@Override
public void refreshView(NewsListBean data) {
LogUtils.e("aaaacurrentIndex"+currentIndex);
newsList = data.getNewsList();
mAdapter.addData(newsList);
index+=1;
currentIndex = mAdapter.getData().size()-2*index;
mAdapter.loadMoreComplete();
}
示例4: recommendFragmentDataError
import com.blankj.utilcode.utils.LogUtils; //导入依赖的package包/类
@Override
public void recommendFragmentDataError(String msg) {
LogUtils.w(TAG, msg);
setState(LoadingPager.LoadResult.error);
}