08 2017 档案

摘要:首先说蓝牙分类:蓝牙貌似分为4.0,和2.0版本,4.0版本更省电(BLE) 判断方式如下: 是否支持蓝牙: getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH) 是否支持BLE蓝牙 : getPackageMa 阅读全文
posted @ 2017-08-24 15:11 烟花易冷心易碎 阅读(697) 评论(0) 推荐(0) 编辑
摘要:原文:http://blog.csdn.net/feilusia/article/details/54645998 如何限制不支持某种硬件功能的设备无法安装应用 例如限制BLE蓝牙如下设置: 1)当feature的设置为true时,只能在支持BLE的安卓设备上安装运行该APP; <uses-feat 阅读全文
posted @ 2017-08-24 13:52 烟花易冷心易碎 阅读(464) 评论(0) 推荐(0) 编辑
摘要:package com.bearbaby.erp.staff.util; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.... 阅读全文
posted @ 2017-08-14 13:47 烟花易冷心易碎 阅读(212) 评论(0) 推荐(0) 编辑
摘要:package com.gan.myrecycleview; import android.content.Context; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.wi... 阅读全文
posted @ 2017-08-14 11:26 烟花易冷心易碎 阅读(499) 评论(0) 推荐(0) 编辑
摘要:使用方法: 阅读全文
posted @ 2017-08-14 10:32 烟花易冷心易碎 阅读(334) 评论(0) 推荐(0) 编辑
摘要:今天 看到一个demo点击两次退出APP实现比以前写的简单,不用写什么handle,和flag,很不错一下就这么点代码 private long mExitTime = 0; /** * 监听返回键 点击2次退出 */@Overridepublic boolean onKeyDown(int key 阅读全文
posted @ 2017-08-14 10:23 烟花易冷心易碎 阅读(266) 评论(0) 推荐(0) 编辑
摘要:if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {//严格模式 StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmP 阅读全文
posted @ 2017-08-08 16:41 烟花易冷心易碎 阅读(207) 评论(0) 推荐(0) 编辑
摘要:Caused by: java.lang.RuntimeException: RequestQueue-> DiskBasedCache cache dir error 这是因为SD卡动态权限导致的 ,请先申请权限通过后在初始化Rxvolley 阅读全文
posted @ 2017-08-08 16:39 烟花易冷心易碎 阅读(444) 评论(0) 推荐(0) 编辑
摘要:UpdateAppService notify.contentView.setTextColor( R.id.notify_updata_values_tv,getResources().getColor(R.color.colorMainRed)); notify.flags=Notificati 阅读全文
posted @ 2017-08-04 10:16 烟花易冷心易碎 阅读(360) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示