google-developer-training/android-advanced

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

Opened this issue · 0 comments

anubv commented

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