I used android 7.1.1(API 25) Build-tools before and the version has been upgraded to 8.1.0(API 27) a few days ago...
But now using android 9.0(API 28) and the device is also.
Image Crop function is not working and I can't even load image through HTTP I need your advice... please help me(;_;)
I'm trying Lib but I don't use gradle
and I'm using java 1.6
public void imageForCrop(String imagePath){
Uri imageUri = Uri.parse(imagePath);
Intent intent = new Intent("com.android.camera.action.CROP");
intent.setDataAndType(imageUri, "image/*");
String path = imageUri.getPath();
path = path.substring(path.lastIndexOf("/"),path.lastIndexOf("."))+"_new.jpg";
imageUri =Uri.fromFile(new File(Environment.getExternalStorageDirectory().getAbsolutePath(), path));
intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
intent.putExtra("scale", true);
intent.putExtra("return-data", true);
callerObject.startActivityForResult(intent, IMAGE_FOR_CROP);
}