android-crop
android-crop copied to clipboard
I/Choreographer: Skipped 36 frames! The application may be doing too much work on its main thread.
We pick an image using the camera, once the camera returns an image, we call the Crop.of
method.
After making a selection & hitting 'Done', onActivityResult
is called and we print a log saying cropped. Our app doesn't do any work on the UI thread except printing the log but Android complains about skipped frames.
E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
I/Choreographer: Skipped 36 frames! The application may be doing too much work on its main thread.
D/MainActivity: Cropped
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == Crop.REQUEST_CROP) {
Log.d(TAG, "Cropped");
} else if (requestCode == PICK_IMAGE_REQUEST && resultCode == Activity.RESULT_OK) {
Crop.of(Uri.fromFile(cameraFile), Uri.fromFile(croppedFile)).withMaxSize(720, 720).withAspect(16, 10).start(this);
}
}
Tested on: Oneplus One running Android 5.1.1 Lenovo A6000 running Android 5.0.2
I have same problem, how to solve ???