Hi, Thanks for the info.
I am also facing this similar problem and am new to Java. In the code base i found that we have the HeadsetObserver.java file but there is no similar Speaker observer java class. Kindly advice if we need to create a similar java class for Speaker or where we can invoke the setSpeakerphoneOn method. Another doubt is that in the AudioFlinger.cpp, we have setRouting(AudioSystem::MODE_NORMAL, AudioSystem::ROUTE_SPEAKER, AudioSystem::ROUTE_ALL); So wouldn't it route to speaker by default. Kindly let me know your comments. -Pras On Sep 10, 11:46 pm, "Roman ( T-Mobile USA)" <roman.baumgaert...@t- mobile.com> wrote: > You want to try the following > > AudioManager mAudioManager = (AudioManager) > mContext.getSystemService(Context.AUDIO_SERVICE); > mAudioManager.setMode(AudioManager.MODE_NORMAL); > ..... > mAudioManager.setSpeakerphoneOn(true); > > -- > Roman Baumgaertner > Sr. SW Engineer-OSDC > ·T· · ·Mobile· stick together > The views, opinions and statements in this email are those of the > author solely in their individual capacity, and do not necessarily > represent those of T-Mobile USA, Inc. > > On Sep 10, 5:38 am, sunee <suneetha.kalahas...@wipro.com> wrote: > > > > > I am working on android for omap zoom2. > > omapkernel - 2.6.27 > > android - RLS25.6 > > > Theaudioplayback seems to happen (progress bar updation happens) but > > noAudiois heard. > > There is no headphone connected and also the sound level is at > > maximum. > > > Is speakerroutingenabled by default or do i have to enable it > > explicitly? > > Kindly help me. > > > Thanks, > > Sunee- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---