I am beginner in Android Development. I have two layouts (portrait and Landscape) for a single activity. In my layout, I have a VideoView and a custom Media player. whenever I rotate the phone screen the video begins from start for this issue and saving the data on screen rotation I have added this in my manifest file
android:configChanges="keyboardHidden|orientation|screenSize"
After adding this in my manifest, my video is playing normally but my activity is picking only Portrait layout whenever I rotate the screen.