I want to take a picture with the camera and want to crop it. This works great on new devices (with the second code) with this code found on the community wiki:
intent = new intent ("com.android.camera.action.CROP" ); Intent.setClassName ("com.android.gallery", "com.android.camera.CropImage");
The latest, some Android versions, including com.android.gallery, no longer exist. You need to use it again:
intent = new intent ("com.android.camera.action.CROP"); Intent.setClassName ("com.google.android.gallery3d", "com.android.gallery3d.app.CropImage");
Of course I also want to support older devices. What does "Some Android version" mean? Can anyone give me an API level? Or is there any final insertion in the Android source that I can use to select the right strings for intentions? Some tools do not support crop, which means that it has not been manufactured in their Gallery app. The best solution is your app. Here is a good open source: Creating a Crop Mechanism in:
Comments
Post a Comment