I'm using Creative SDK as photo editor of my selfie app. According to SDK Document, I wrote following code to send an photo to Editor activity.
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);
In Aviary Editor activity, the preview image is too small on HTC device(HTC One M8). It works properly on another device(with full size).
How could I solve it?