![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
文章平均质量分 69
恶魔蝎子
随便记录一下
展开
-
Android 7.0以上调用相机崩溃
android.os.FileUriExposedException: file:///storage/emulated/0/DCIM/IMG_1041503431.jpg exposed beyond app through ClipData.Itm.getUri() if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {原创 2017-11-02 17:21:02 · 317 阅读 · 0 评论 -
压缩图片
/** * 压缩图片 * * @param image * @return */ public static Bitmap compressImage(Bitmap image) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); image原创 2017-11-02 17:44:17 · 160 阅读 · 0 评论 -
生成二维矩阵,编码时指定大小,怎么添加LOGO还在琢磨
public static Bitmap Create2DCode(String str) throws WriterException { //生成二维矩阵,编码时指定大小,不要生成了图片以后再进行缩放,这样会模糊导致识别失败 BitMatrix matrix = new MultiFormatWriter().encode(str, BarcodeFormat.QR_CODE,原创 2017-11-02 17:45:36 · 217 阅读 · 0 评论 -
下载功能加等待条
//下载的显示进度 private void showProgressDialog() { if (mDialog == null) { mDialog = new ProgressDialog(this); mDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);//设置原创 2017-11-02 17:48:09 · 230 阅读 · 0 评论 -
Android webview 使用HTTPS无法显示BANNER等图片
Android webview 从Lollipop(5.0)开始webview默认不允许混合模式,https当中不能加载http资源,需要设置开启。 Mixed content using HTTP and HTTPS on WebViews are disabled by default starting Lollipop. Is possible that is not working转载 2017-12-06 09:20:52 · 492 阅读 · 0 评论 -
Android实现定时任务
TimerTask task = new TimerTask() { @Override public void run() { handler.sendEmptyMessage(1); } }; Date now = new Date(); SimpleDateFormat dateForma...原创 2018-05-17 16:34:30 · 223 阅读 · 0 评论