google-developer-training / android-advanced

Solution apps for the apps that students create as they work through the Advanced Android Development training course created by Google Developer Training.
Other
1.14k stars 1.09k forks source link

Advanced Android: [Lesson #][Step #][description] #14

Open anubv opened 4 years ago

anubv commented 4 years ago

Describe the problem preserving the playback does not work with the code given in the codelab.

In which lesson and step of the codelab can this issue be found? Lesson 13.1, Step 1.5

How to reproduce? follow the steps given in codelab.

Versions

  1. Android Studio 3.6.2
  2. API Level 21 and above

Additional information CurrentPosition needs to be preserved in the onPause() method. preserving it in the onSavedInstanceState defeats the purpose. this thread describes the solution : https://stackoverflow.com/questions/12617209/playing-video-from-the-pause-state-in-videoview/12617573#12617573

codelab: advanced-android