android-audiomanager
why is abandonAudioFocus not working in Android Music app
Im using this code to get AudioFocus and it works ok with AndroidMusic app ( the one preinstalled ) int result = audioManager.requestAudioFocus(meService, AudioManager.STREAM_MUSIC,AudioManager.AUDIO[详细]
2023-04-11 13:45 分类:问答How to set volume for text-to-speech "speak" method?
I\'m at a lost. I want to be able to adjust the speak volume. Whatever I do, I can\'t increase its volume. How do I make it as loud as that found in the Android settings (as below)?[详细]
2023-04-07 11:34 分类:问答Android AudioManager Event Listener?
AudioManager am = (AudioManager)getSystemService(Context.AUDIO_SE开发者_运维百科RVICE); switch (am.getRingerMode()) {[详细]
2023-04-06 02:45 分类:问答Ringer mode change listener Broadcast receiver?
AudioManager am = (AudioManager)getSystemService(Context.AUDIO_SERVICE); switch (am.getRingerMode()) {[详细]
2023-04-05 22:27 分类:问答Audio stream stays on earpiece after using AudioManager
After I use the Android AudioManager to set SCO ON and speakerphone ON, then I return it back to where it started, the media stream will then stay on earpiece instead of the phones speaker.Here is whe[详细]
2023-04-02 08:03 分类:问答Changing data source for audio playback using existing MediaPlayer?
I\'m trying to use the same media player but change the data source. Here is what I\'m trying to do: [详细]
2023-03-31 14:26 分类:问答How to tell if already has audio focus?
I have an audio playback Android App which politely does a requestAudioFocus() when it starts playing, and abandonAudioFocus() when it stops.Sometimes the user will want to playback a different file i[详细]
2023-03-31 10:23 分类:问答OnAudioFocusChangeListener does not get executed when native player is paused
I have this strange issu开发者_如何学编程e when if I play song with custom app player, it works fine when I receive calls OnAudioFocusChangeListener gets called which in turn deos all the appropriate[详细]
2023-03-30 21:37 分类:问答How to turn off my media service for an incoming call? My AudioManager is not working
I\'m trying to setup my audio playing app to stop playback if there is an interruption.I followed directions in Android SDK Developer notes about setting up an AudioFocusHelper like so:[详细]
2023-03-30 17:53 分类:问答Android MediaPlayer - how to play in the STREAM_ALARM?
I\'ve tried settings the audio stream of the media player in my application using the following code but when I do this I hear no sound in the emulator. If I don\'t set the stream for the player then[详细]
2023-03-27 20:14 分类:问答