| | |
| | | import android.os.Environment; |
| | | import android.provider.DocumentsContract; |
| | | import android.provider.MediaStore; |
| | | import android.provider.Settings; |
| | | import android.text.TextUtils; |
| | | import android.view.LayoutInflater; |
| | | import android.view.MotionEvent; |
| | |
| | | HdlThreadLogic.toast(mContext, R.string.camera_album_file_save_fial); |
| | | } else { |
| | | if (!TextUtils.isEmpty(outputImagepath.getAbsolutePath())) { |
| | | //(android13,14需要再设置-隐私-)特殊权限设置 |
| | | orc_bitmap = BitmapFactory.decodeFile(outputImagepath.getAbsolutePath());//获取图片 |
| | | saveBitmap(comp(ImgUpdateDirection(outputImagepath.getAbsolutePath()))); //压缩图片 |
| | | } else { |
| | | HdlThreadLogic.toast(mContext, R.string.camera_album_file_get_fial); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | public interface CameraAlbumListener { |
| | | void successCallBack(File a); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |