[android-developers] Re: how to crop an image in android 2.x

2010-03-13 Thread Sydney
I got cropping to work on captured images a Motorola Droid using the built-in CropImage activity, but I first save the image to the SD card before calling the CropImage activity. However, like SOB said this does not work on all devices, such as the Nexus One. I haven't tried this, but you might

[android-developers] Re: how to crop an image in android 2.x

2010-03-11 Thread Vaibhav Goel
No. I am searching for it. On Mar 1, 1:56 am, Damian d.w.flann...@googlemail.com wrote: I have encountered this problem also. Did you find a solution? On Feb 16, 11:50 am,VaibhavGoel vaibhavgoe...@gmail.com wrote: By removing class-name and private restrictions, it works for the images

[android-developers] Re: how to crop an image in android 2.x

2010-03-01 Thread Damian
I have encountered this problem also. Did you find a solution? On Feb 16, 11:50 am, Vaibhav Goel vaibhavgoe...@gmail.com wrote: By removing class-name and private restrictions, it works for the images picked from gallery but when i pass Uri ofimageafter capturing it from camera, it gives

[android-developers] Re: how to crop an image in android 2.x

2010-02-16 Thread Vaibhav Goel
By removing class-name and private restrictions, it works for the images picked from gallery but when i pass Uri of image after capturing it from camera, it gives Activity not found exception as shown below. Code used: Intent i = new

[android-developers] Re: how to crop an image in android 2.x

2010-02-15 Thread Tuhin subhra
Bitmap bitmapOrg = BitmapFactory.decodeFile(Location_Image.filename); int width = bitmapOrg.getWidth(); int height = bitmapOrg.getHeight(); int newWidth = 200; int newHeight = 200; // calculate the scale - in

[android-developers] Re: how to crop an image in android 2.x

2010-02-15 Thread Vaibhav Goel
Thanks, Tuhin, for your intrest. But I want to crop the image, not re- scale the image, where user can select the area to be croped form the full size image. On Feb 15, 2:40 pm, Tuhin subhra dey.tuhinsub...@gmail.com wrote: Bitmap bitmapOrg = BitmapFactory.decodeFile(Location_Image.filename);  

[android-developers] Re: how to crop an image in android 2.x

2010-02-15 Thread Streets Of Boston
First, don't set the class-name. Your customer's phone may not have this particular activity (com.android.camera.CropImage) installed. But this should not give you the 'permission denial' error. Maybe the CROP action can only crop public images. You set yours to PRIVATE. On Feb 12, 9:18 am,