我使用Creative SDK作爲我的自拍應用程序的照片編輯器。根據SDK文檔,我編寫了以下代碼將照片發送給Editor活動。Adobe Creative SDK Android - HTC設備上預覽圖像的尺寸太小
Uri uri = Uri.fromFile(fileImg);
//set preview size
DisplayMetrics dm = DeviceUtils.getDisplayMetrics();
int max_size = Math.max(dm.widthPixels, dm.heightPixels);
max_size = (int) ((float) max_size/1.2f);
//prepare
Intent newIntent = new AviaryIntent.Builder(fromAct).setData(uri)
.withOutput(uri)
.withOutputFormat(Bitmap.CompressFormat.JPEG)
.withOutputSize(MegaPixels.Mp5).withNoExitConfirmation(true)
.saveWithNoChanges(false)
.withOutputQuality(100)
.withPreviewSize(max_size)
.build();
// ..and start feather
fromAct.startActivityForResult(newIntent, ACTION_REQUEST_FEATHER);
在Aviary Editor活動中,HTC設備(HTC One M8)上的預覽圖像太小。它可以在其他設備上正常工作(全尺寸)。
我該如何解決?