这是我用来在照相机开启并拍摄照片时用于实现ProgressDialog的代码。Android:进度对话框显示黑色屏幕
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);
点击我的android设备的保存按钮,而不是显示进度对话框,它会显示一个黑屏。请问可能是错的。
请澄清。整个屏幕变黑吗?或者它是出现黑色的对话框。 – Knossos
你有没有给出对话框的任何自定义样式/主题 – Ramesh
'@android:style/Theme.Translucent.NoTitleBar'在活动中尝试此主题 – sud