When Android calls the system to crop data without returning data, the file modification time is used to determine whether the user has cut or not. The android modification time
Some mobile phone prompts that the content cannot be greater than 40 kb if you set the image to be returned when you call the cropping system for a company project ), therefore, you need to set the Save path first, and then set to get the image directly in the path in the callback without returning the image.
However, the requirement of the project is that if the customer clicks the return key (not cropping) on the cropping page, the image saved in the path cannot be displayed after the return result, therefore, the solution is to set a value of the public static long type to 0. In the callback, determine whether the value is equal to the modification time of the path file. If the value is not equal, the user will crop the file, if they are equal, no cropping is required. If they are equal, the long variable = the file modification time must be set.
I can't think of any other good method. I always feel that this system is a bit difficult to crop.