There is no better way to do this for older API levels.
If you use> = 14, you can use Media Effect to change the orientation. Instructions for using it can be found in this link. To do this, you need a valid OpenGL context, so it’s a bit more complicated than a simple camera application.
, , EFFECT_ROTATE.