android - VideoView restarts playback on lock screen -


i have activity containing vitamio videoview, works pretty except annoying issue causes player restart playback when lock screen.

as far can see kills activity upon locking , restarts it. have idea on how can fix issue?

thanks in advance, x

what ended doing adding android:configchanges="orientation|screensize" manifest. , added videoview.pause(); onpause() function in videoview activity make sure didn't continue playing.

even though worked believe must force orientation videoview activity, unless want weird when orientation changes.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -