2017 年 08 月 16 日的存档

Android拍照并获取图片

一:拍照后在Activity的函数中处理bitmap,此时图片需要自己保存到指定路径 protected void getImageFromCamera() { String state = Environment.getExternalStorageState(); if (state.equals(Environment.MEDIA_MOUNTED)) { Intent getImageByCamera = new Intent("android.media.action.IMAGE_CAPTURE"); startActivityForResult(getImageByCamera, REQUEST_CODE_CAPTURE_CAMEIA); } else { Toast.makeText(getApplicationContext(), " ......