Android Camera Preview Problems

With Enliven the Colorblindness Simulation and Aid I am using the Camera.onPreviewFrame Override to get the byte array of the image on the preview and prints it on the screen. The Nexus One does this with no problem but now I am getting feedback from people using both the Droid X and Galaxy S phones saying the picture is either missing or messed up.

I found that the Nexus One's Preview dimensions by default match that of the screen dimensions. However the Droid X and Galaxy S both have other dimensions available to the preview that are not the size of the screen. You must use the Camera.Parameters parameters.getSupportedPreviewSizes(); method to write an algorithm to then adjust the image to fit the resolution of the phones display.

0 comments:

Post a Comment