I used videoview for playing a video in android default player. When I change its orientation, it starts playing from beginning.
How could I make it to continue from th
When you change the orientation the OS destroys your activity, and recreates it.
You can save the actual progress of the video in onSaveInstanceState()
and get the saved data in onRestoreInstanceState()
from the Bundle
, after that you can start the playing with either the progress data, or from the beginning if there was no data saved.
Add:
<activity
android:name="...your_activity..."
android:configChanges="screenSize|orientation|keyboardHidden"
/>
to the AndroidManifest file, to the Activity that handles video play back.