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. glQueryMatrixxOES missing from Qualcomm driver?

I have stumbled onto the problem of the function glQueryMatrixxOES
being absent from GL10Ext when the Qualcomm hardware opengl es driver
is loaded. It is absent from the list of extensions when I query the
driver.

When Android gives me a software renderer, the extension is available
and everything is as described in the documentation.

This is a pretty serious omission.

Is there a prescribed workaround?

Thanks,
Chris

Here's the code I am using:

<code>

ByteBuffer bb1 = ByteBuffer.allocateDirect(16*4);
bb1.order(ByteOrder.nativeOrder());
mantissa = bb1.asIntBuffer();
mantissa.rewind();

ByteBuffer bb2 = ByteBuffer.allocateDirect(16*4);
bb2.order(ByteOrder.nativeOrder());
exponent = bb2.asIntBuffer();
exponent.rewind();

GL10Ext glx;
if (gl instanceof GL10Ext)
{
    glx = (GL10Ext)gl;

    glx.glQueryMatrixxOES(mantissa, exponent);
    mantissa.rewind();
    exponent.rewind();

    for( n=0; n<16; n++ ) {
        double p = Math.pow( 2.f, exponent.get(n));
        int p2 = (int)(mantissa.get(n) * p);
        tx.matrix.put( n, p2);
    }
    tx.matrix.rewind();
} else {
    Log.e("Node", "We are not getting GL10Ext"); // We never get here.
}

</code>
--~--~---------~--~----~------------~-------~--~----~

2. get music player state

hi,

I wonder if it's possible to get music player state, like which is the
current music playing, title, author and so on ?
Better, is it possible for an activity (or a service) to be notified
on music state changements (start playing, pause, etc.)

Someone can help me ?
--~--~---------~--~----~------------~-------~--~----~

3. Using a TouchDelegate

4. ADC2 Challenge - Is this allowed?

5. Emulator "overclocking"?

6. extension -> mime type mapping

7. Database for an online application