android-audiomanager
How do you get/set media volume (not ringtone volume) in Android?
Is there a way to get/set media volume? I have tried the following: AudioManager audio = (AudioManager) get开发者_开发知识库SystemService(Context.AUDIO_SERVICE);[详细]
2023-02-02 23:20 分类:问答Control volume keys
In my application I have overridden the onKeyDown() and onKeyUp() functions in order to capture volume keys events. I use such events in order to control my application volume. I use the music stream[详细]
2023-01-31 10:20 分类:问答How to Sync Sounds using SoundPool
I have been trying to get a few sounds to play at the same time; currently i\'m using a shared instance of SoundPool.I would like 1, 2 or 3 sounds to be played at the exact same time with no lag.[详细]
2023-01-28 11:50 分类:问答stream volume in SoundPool vs volume in AudioManager
I am so confused... SoundPool.play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate)[详细]
2023-01-24 21:11 分类:问答AudioManager Declaration Crashes Android App
Greetings, I\'m having a bit of trouble with an Android app that I\'m working on (mostly for practice and learning purposes) that uses the AudioManager object.When defining the AudioManager as follow[详细]
2023-01-20 00:51 分类:问答Android Record Audio issue
I found the code to record audio, but I always get: The method setOutputFile(FileDescriptor) in the type M开发者_JAVA技巧ediaRecorder is not applicable for the arguments (Uri)[详细]
2023-01-12 14:34 分类:问答Android audio manager method causing a force close
New to this and a bit confused as to why calling the following method creates a force close: AudioManager myaudiomanag开发者_Python百科er;[详细]
2023-01-03 02:13 分类:问答Android: Ringer mode changed to silent doesn't stop the phone vibrating
I\'m trying to change the ringer mode of the phone to RINGER_MODE_SILENT when a call is incoming by using the following lines of code.[详细]
2022-12-27 06:24 分类:问答Android - can I mute currently playing audio applications?
Hi I\'m new to this.My self-teaching project is a small application which plays an audio news stream.To be effective, the application really needs to interrupt any currently playing media players (eg:[详细]
2022-12-15 02:52 分类:问答