To automatically switch to external speakers when your phone is docked, follow the below procedure:
- From the Homescreen, visit Apps > Settings > My Device.
- Go to Accessories > Audio output mode
- Check "Use external speakers when device is docked".
This document, titled « Samsung Galaxy S4 - Automatically switch to external speakers when your phone is docked », is available under the Creative Commons
license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM