If your app has the permission "MODIFY_AUDIO_SETTINGS" you can route output to the earpiece using the setRouting API in AudioManager.
On Mar 9, 8:15 am, cht <caoht...@gmail.com> wrote: > for the OEM, on the product line,we need to test the earpiece whether > it works well. > so I want to write a application which will play sounds through the > earpiece. > i want to know how can i play a sound through the earpiece? > or if there is a better way to test the earpiece? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---