No on HTC Magic?

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

Sponsored Links

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

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

Best regards,


No on HTC Magic?

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

 This code works on G1

                 Intent intent = new
         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 +
         startActivityForResult(intent, CROP_PICTURE_ACTION);


Sponsored Links

No on HTC Magic?

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


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


No on HTC Magic?

by » 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 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)  | 

Looking for Android opportunities? 


No on HTC Magic?

by » 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

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?


Here's the code I am using:


ByteBuffer bb1 = ByteBuffer.allocateDirect(16*4);
mantissa = bb1.asIntBuffer();

ByteBuffer bb2 = ByteBuffer.allocateDirect(16*4);
exponent = bb2.asIntBuffer();

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

    glx.glQueryMatrixxOES(mantissa, exponent);

    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);
} else {
    Log.e("Node", "We are not getting GL10Ext"); // We never get here.


2. get music player state


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