i am a beginner developing a simple Android App where i try to take pictures using the Camera and Camera Preview.
when trying to take the picture i got out of memory errors from 5 and 8 MegaPixel pictures. i therefore tried to use a smaller Camera Preview size.
This works great on my Moto X and my friends Galaxy Note 3 but causes pink and green stripes (ie you cant see the camera preview) on the Galaxy S4 and HTC One.
I have been trying to find a solution (and the only one so far was to not change the camera preview size) but cant find anything.
i come from an iOS background where taking a picture is literally a coding effort of 5 minutes and cant believe it is this complicated on Android.
Anyone have any good third party libraries maybe to have a camera preview and take pictures to work on all phones?
i can post some code too but its 99% the basic code from the android docs.
here is my camera preview class if it helps -http://pastebin.mozilla.org/5698148
Thanks Chris