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. Making TextViews Spannable causes ListView performance to tank

Hi all,

I've got a list few which I've optimized in every possible way. Performance
matches the exchange email client so I'm happy in that respect. It's very
fluid regardless of the number of records. The problem is the moment I
introduce some conditional formatting of TextViews (think bold for unread,
normal for read) the list starts to get choppy when the user flings the
list. Is there a better way to tackle this formatting?

My layout is optimized (single relative layout) and I'm using a viewwrapper.

Example: (in my actual code there are 4 Textviews)

Spannable s = (Spannable) w.stepname.getText();


            if( state.equalsIgnoreCase( Tasks.STATE_READ ))
            {
                s.setSpan( new StyleSpan( Typeface.NORMAL ), 0, s.length(),
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE );

                w.getStepName().setTextColor( 0xFFBDBEBD );
            }
            else
            {
                s.setSpan( new StyleSpan( Typeface.BOLD ), 0, s.length(),
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE );

                w.getStepName().setTextColor( 0xFFFFFFFF );
            }

-- 

2. Internet proxy setting on android emulator

Hi All,
  I'm trying to intercept all the http/https requests from android 2.1
sdk emulator (specifically interested in request from our app ) using
fiddler. I have fiddler running on the same machine where emulator is
running.

I followed the sql query instruction (adb shell ....)
 I restarted emulator with below command

emulator -avd <emulator name> -http-proxy http://127.0.0.1:8080

but I still don't see anything in fiddler, even when I go to google
from browser in emulator.

If someone is able to view all the http connection from their android
emulator ( even if not through fiddler but some other tool) please
reply with instructions.

Thanks in advance,
Anu

-- 

3. Emulator and cellular access

4. Hidup Android, Google beri dukungan buat id-Android

5. Unknown error with AAPT tool while Build Projec

6. How to open virtual keyboard automatically

7. ListView questions