这是我使用的代码,用于在相机触发和拍摄照片时实现一个ProgressDialog。
在我的安卓设备上点击保存按钮时,它没有显示进度对话框,而是出现了黑屏。请问可能出了什么问题?
public void onPhotoTaken() {
_taken = true;
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 4;
Bitmap bitmap = BitmapFactory.decodeFile(_path, options);
try {
ProgressDialog dialog = ProgressDialog.show(this, "Loading", "Please wait...", true);
ExifInterface exif = new ExifInterface(_path);
int exifOrientation = exif.getAttributeInt(
ExifInterface.TAG_ORIENTATION,
ExifInterface.ORIENTATION_NORMAL);
在我的安卓设备上点击保存按钮时,它没有显示进度对话框,而是出现了黑屏。请问可能出了什么问题?