Activity / media life cycle resumes playing on a locked screen

I am working on a streaming multimedia application and notice some strange behavior. Media stops playing when my device locks, but then starts playing again before I even unlock the device.

Any suggestions that might cause this?

+5
source share
2 answers

This is due to how the Android life cycle works when you press the unlock button but are still on the lock screen.

onResume() , - . onResume() , , .

:

http://android-developers.blogspot.com/2011/11/making-android-games-that-play-nice.html

+12

Ciclelife - . @override OnResume OnPause.

+2

All Articles