- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 下载功能加等待条
//下载的显示进度 private void showProgressDialog() { if (mDialog == null) { mDialog = new ProgressDialog(this); mDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);//设置
2017-11-02 17:48:09 245
原创 生成二维矩阵,编码时指定大小,怎么添加LOGO还在琢磨
public static Bitmap Create2DCode(String str) throws WriterException { //生成二维矩阵,编码时指定大小,不要生成了图片以后再进行缩放,这样会模糊导致识别失败 BitMatrix matrix = new MultiFormatWriter().encode(str, BarcodeFormat.QR_CODE,
2017-11-02 17:45:36 227
原创 压缩图片
/** * 压缩图片 * * @param image * @return */ public static Bitmap compressImage(Bitmap image) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); image
2017-11-02 17:44:17 169
原创 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 326
空空如也
Android 5S 直接调用相册选择的图片需要下载
2017-11-03
TA创建的收藏夹 TA关注的收藏夹
TA关注的人