Android example of launching the camera from another app and sending that app the resulting picture back.
The credit goes to this tutsplus.com article. I added some debugging print stuff.
A bitmap image scaling function to scale the image to a target image byte size.