RemoteControlClient - do I need audio focus?

I'm new to RemoteControlClient, and I'm still looking at him. However, I saw that it can be used to get media buttons like Play / Pause on the lock screen.

In any case, my question is, does Audio Focus need RemoteControlClientto work on the lock screen? I don't have any form of Audio Focus for my application (and maybe the way my media player was implemented for my application is probably not the best way to do this), and the screen lock controls do not appear.

I also find the RandomMusicPlayer example a bit confusing if this helps with the answer at all.

+5
source share
1 answer

, , . RandomMusicPlayer, . , , RandomMusicPlayer - . , . , http://developer.android.com/training/managing-audio/audio-focus.html.

+3

All Articles