Search code examples
androidbuttonback

Android Radio app design


I am building a radio streaming app and was wondering what would be a good design for the back and home buttons.

Should the back button stop playing the music and quit the app? Should the home button allows the music to play in the background? Any suggestions?


Solution

  • The best design in my mind is not to override the default behavior of the back and home buttons.

    My player puts a sticky notification into the notification area when play starts with a little persistent play arrow. When you click on the notification, it brings you to the radio controls so you can stop/pause the audio. This way, the user can leave the app using either the home or back key and you don't have to do fancy life cycle stuff to manage the state of the radio.