Here is how to solve the rotated images issue when you capture an image on android using android.media.action.IMAGE_CAPTURE intent with the code snippets.
This tutorial should help you understand how to implementing a custom TabHost that contains a ListView in Android.