My app takes a photo in portrait. In the gallery I see it OK but when saved to my server i see it in landscape.
That is because your server is ignoring the EXIF header.
(This happens only on Samsun S2)
It happens on many more devices than this. It's one of the many things that I patch up for developers in my CWAC-Camera library.
I have checked my image file and got
ORIENTATION_ROTATE_90
what does this mean?
It is a message from the camera, to image-viewing apps, saying "plz rotate this 90 degrees when you show it! kthxbye"
I have tried to set it to ORIENTATION_NORAML or ORIENTATION_UNDEFINED but I'm not sure how to see the change?
All that will do is cause your image to be wrong everywhere, if you did nothing else. You need to rotate the image file in addition to dealing with the EXIF tag.