I am doing an Android Video App in which I record few Videos and manage videos in the list. Videos are taken properly but they were shown in sideways (what i mean is I can see video in portrait mode if my device is actually in Landscape mode). Can any one let me know how to solve this issue. I am using below code to record
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
startActivityForResult(cameraIntent,120);
And I will store the videos in Gallery. Any Code related to Custom Video Recording are also helpful. You can see what is my problem in the below image. I have tried many ways like putting setDisplayOrientation()
and also setOrientationHint()
. I wonder that there is no solution at all for this problem? then how many developing the Video Apps. Please someone help me.
I referred this and this links also.