No com.android.camera.CropImage on HTC Magic?

by Klaus Kartou » Sat, 29 Aug 2009 06:17:34 GMT


Sponsored Links
 Hi,

I have a pretty urgent issue. I am using the CropImage intent on my G1 Dev
phone to crop images.
However when starting this intent on a HTC Magic I get an error indicating
the activity cannot be found:

"Unable to find explicit activity class
{com.android.camera/com.android.camera.CropImage}"

Why is this activity not present on HTC Magic?
Any input is much appreciated.

Best regards,

--~--~---------~--~----~------------~-------~--~----~



No com.android.camera.CropImage on HTC Magic?

by Klaus Kartou » Sat, 29 Aug 2009 06:43:22 GMT


 This code works on G1

                 Intent intent = new
Intent("com.android.camera.action.CROP");
         intent.setClassName("com.android.camera",
"com.android.camera.CropImage");
         intent.setData(uri);
         intent.putExtra("outputX", 128);
         intent.putExtra("outputY", 128);
         intent.putExtra("aspectX", 128);
         intent.putExtra("aspectY", 128);
         intent.putExtra("scale", true);
         intent.putExtra("noFaceDetection", true);
         intent.putExtra("output", Uri.parse("file:/" + FILE_PATH + userId +
"/user.jpg"));
         startActivityForResult(intent, CROP_PICTURE_ACTION);








--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


No com.android.camera.CropImage on HTC Magic?

by Klaus Kartou » Sat, 29 Aug 2009 21:18:23 GMT


 Bump.

Please, have anyone used the CropImage intent on a HTC Magic?






--~--~---------~--~----~------------~-------~--~----~



No com.android.camera.CropImage on HTC Magic?

by admin.androidsl...@googlemail.com » Mon, 31 Aug 2009 16:58:33 GMT


 Same issue here - both crop and wallpaper.

Please advise the correct techniques to call these across all phones.






--~--~---------~--~----~------------~-------~--~----~



No com.android.camera.CropImage on HTC Magic?

by Mark Murphy » Mon, 31 Aug 2009 17:03:03 GMT


 


In terms of cropping:

Option #1: Upload it to a Web service that handles cropping, and let it
do the work

Option #2: Find a third-party JAR that handles cropping, and let it do
the work

Option #3: Implement cropping algorithms yourself

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Looking for Android opportunities?  http://wiki.andmob.org/hado 

--~--~---------~--~----~------------~-------~--~----~



No com.android.camera.CropImage on HTC Magic?

by admin.androidsl...@googlemail.com » Tue, 01 Sep 2009 08:24:53 GMT


 Thanks for responses - by wallpaper, I meant set image as wallpaper.








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Event to know about drag. Not dragging of object

Hello Android,

I want to get drag event(s) when user holds finger on screen and drags
it in any direction. The event need to repeatedly provide new touch
position until finger is released in the form of callbacks. This is
not related to dragging objects.

I could see this drag feature working on home screen of the phone to
move the home screen left and right. But couldn't figure out how it
works. Please provide information on which class and methods to be
referred for this

Regards,
Shaddu

--~--~---------~--~----~------------~-------~--~----~

2. Google market policy spells doom for future app publishers?

At SlideME, we made the same decision on refunds. The reasoning is that
anyone can call their credit card company and say that the app didn't work
and then do a chargeback. This costs the developer $10 and there is no way
you can prove that the app worked. If you have some type of refund policy,
you can avoid these types of charges, which comes out far better for the
developer in the end.

Shane







--~--~---------~--~----~------------~-------~--~----~

3. Trackball Event

4. Problem with focus

5. RTSP Streaming on g1 phone

6. ListView with the CheckBoxPreference look

7. ACTION_CALL Permission Problem