audio - How to switch the android music output device -


i'm doing test work on android music playback. have headset , bluetooth headset connect phone @ same time. there 4 output devices can play sound: speaker, handset, headset, , bt_headset. want know is: there way switch audio output 4 device using code? cant switch between speaker , handset if there no headset plugin using audiomanager.setmode(). but, if headset plugin sound can not out handset. then, if headset , bt_headset connect @ same time, sound out later connect one.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -