AudioManager, requestAudioFocus and video playback...

by sdphil » Fri, 14 Jan 2011 03:12:09 GMT


Sponsored Links
 Hi,

On Android 2.2.1, I am seeing a behavior I don't understand.  I am
making a call to requestAudioFocus()

mAudioManager.requestAudioFocus(mAudioFocusChangeListener,
AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN);

So that when another media player takes over the audio, I can pause my
own audio playback.  If i use the music player, this works great.
However, when I try to play a video, I don't get the call in my focus
change listener.  Any ideas on why?

tia.

-- 



Re: AudioManager, requestAudioFocus and video playback...

by sdphil » Sat, 15 Jan 2011 23:39:59 GMT


 ping




-- 


Sponsored Links


Re: AudioManager, requestAudioFocus and video playback...

by sdphil » Thu, 20 Jan 2011 03:02:45 GMT


 ping.  anybody?  anybody?





-- 



Other Threads

1. Setting the ANR time on an AVD

My test machine is on the slow side and so the AVD sometimes runs
considerably slower than a real phone. Slow enough, in fact, that some
UI operations throw an ANR when my app has a lot of background
activity going on (ANRs that I never see when testing on real
hardware). I'd like to adjust the ANR time to account for the slow
AVD. Is there a way to do that?

-- 

2. Android device Deleting the application database while rebooting.

Hi,
I am having a own device which is running on android 2.1.I have
installed one application in that .That application will create a new
DB if there is no DB for the application.It is creating correctly .I
have accessed the device memory as well.I have seen the database in
the device memory.But when I reboot the device the Database got
erased .The app is not persisting the database after rebooting the
device.Wat will the prob.?

-- 

3. Anyone have an experience dealing with Ubinuri?

4. How to combine Nucleus RTOS & the Android 2.1

5. cara cepat copy paste dari pc ke android kita dan sebaliknya

6. service intent-filter

7. Touch and expand a TextView