Hi all,
    We received a requirement from Chinese mobile carrier (CMCC) that we 
should support speaker/headset dynamic switch feature in movie player 
(Gallery2). But we found that:
    1) setWiredHeadsetOn() API is deprecated in AudioManager.
    2) setSpeakerphoneOn() API will only be applied for FOR_COMMUNICATION 
usage, and there's no API for FOR_MEDIA usage.
    Could you help explain the reason and purpose? Currently the only way I 
could think out is using setParameters() API and parse the private 
parameters in audio HAL, which seems a little ugly. Do you have plan to add 
more APIs in the future? Or do you have any suggestion to implement this 
feature? Thanks a lot.

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to