This question Summary: Take a picture utilizing Camera Intent and display the photo with correct orientation (works on hopefully all devices) looks like a project someone wants to share with the community in a forum style.
Already the first revision stated:
I hope this is helpful to some of you. Moreover, if you have suggestions for improvements please let everybody know. And again, this is mainly a compiliation of the work of others. So many many thanks to them!
The answers on this "question", meanwhile contaning an updated answer by the TO, are also a mix of stating problems and attempted solutions.
I have no idea how to make this fit for Stack Overflow.