I am using Listview I'm playing video (on VideoView) on portrait mode (not on full screen) and when I change to landscape mode the video stop. When I change it to landscape that video will appear on full screen and will keep playing. Any Suggestion?
Asked
Active
Viewed 931 times
-2

Ankita Shah
- 1,866
- 16
- 31

Gautam Kushwaha
- 281
- 3
- 15
-
Possible duplicate of [How to keep playing video while changing to landscape mode android](http://stackoverflow.com/questions/11031295/how-to-keep-playing-video-while-changing-to-landscape-mode-android) – Frederic Klein Dec 12 '16 at 07:43
1 Answers
1
You can add this in your manifest for that activity, and ensure the activity does not redraw the views.
<activity
android:name=".YourActivityName"
android:configChanges="orientation|screenSize">
</activity>
Please note that if you have handled the orientation changes for this activity separately, then adding this would skip that.

Nakul Sudhakar
- 1,574
- 1
- 24
- 24
-
I am using Listview and After rotating landscape ,i want to that all view hide but video show in landscape mode. – Gautam Kushwaha Dec 13 '16 at 10:26