Questions tagged [android-audiomanager]

AudioManager provides access to volume and ringer mode control.

AudioManager provides access to volume and ringer mode control.

AudioManager Class Reference

792 questions
0
votes
1 answer

Android How to answer a call through handset earpiece when the headset is already connected?

A headset device has be connected to my phone.Now a phone call is coming, I want to answer the call just use the telephone not by the headset. How to do this ? Any help will be appreciate!
Read Mark
  • 683
  • 3
  • 11
  • 19
0
votes
2 answers

How to disable screen lock sound in android app?

I have one android application so my application is running foreground and I click power button Beep sound comes my phone goes into sleep When i again click power button my phone wake up I unlock my phone again Beep sound comes screen goes to my…
Jeegar Patel
  • 26,264
  • 51
  • 149
  • 222
0
votes
1 answer

I created a song player that has a basic functions like play, pause etc.but i want in one function describe below

I created a online radio player TuneUP that has a basic functions like play, pause etc. When I click play list, the current song Index will play. Now, while the song is playing and I press the back button go to my home activity using intent, the…
0
votes
1 answer

AudioManager class. "RINGER_MODE_NORMAL cannot be resolved or is not a field"

I'm trying to change status of my phone. Way I try to do this is like this: AudioManager am; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_schedule); …
Jakub
  • 201
  • 3
  • 11
0
votes
1 answer

Audio Manager setStreamMute vs setStreamVolume to 0

Android documentation for setStreamMute: Mute or unmute an audio stream. ... The mute requests for a given stream are cumulative: the AudioManager can receive several mute requests from one or more clients and the stream will be unmuted only…
Ryan S
  • 4,549
  • 2
  • 21
  • 33
0
votes
1 answer

Need a simple demo for only check whether background Music running or not?

I need a simple demo, In which I want to check whether the music is running in the background or not? And also does not effected on the music which is running in Background I read from here study Link and made a demo code Demo code is here but this…
Akarsh M
  • 1,629
  • 2
  • 24
  • 47
0
votes
0 answers

When i am using Audiorecord function,some music app is still playing.why?

i am facing a problem. when i am using Audiorecord function,some music App is still playing and some gets pause immediately. i've used the mAudioManager.requestAudioFocus() and also use mAudioManager.abandonAudioFocus(). but it seems doesn't always…
Cristig
  • 3
  • 4
0
votes
0 answers

Android app ignore headphone dock (temporarily) to use voice search

I am writing an android app that allows a phone to be plugged into a speaker dock, such as SonrLabs, Bose etc, but when they press a button, still be able to voice search from the phone microphone without unplugging the phone from the dock every…
0
votes
1 answer

Return to previous RINGER_MODE after ended call

I have an app that can take you from silent/vibrate and to normal ringer mode, but when i try to put you back in the mode i took you out of, i always end up in the silent mode. Can anyone see why? First i store the current ringstate as an integer…
Reaver
  • 323
  • 3
  • 21
0
votes
0 answers

play sound file with a delay and adjust time in android

I am trying to program a sound app where on button click I would like to play 3-4 sound files one after the other. How can this be done? Also I would like to increase the time of play of the files. Is this where the loop variable in play function…
0
votes
1 answer

Route audio through left and right speakers

I am looking to design and android app that would programmatically be able to route audio through the left and right speakers individually. That is when the song is played it would first route through the right speaker and it would then route it…
sim
  • 249
  • 7
  • 17
0
votes
1 answer

Pause media using audio manager

I am using tab activity where there are multiple playlists of songs..So whenever I am playing song from one playlists and moves to another one,both the songs starts playing simultaneously.Now what I want is to stop music from my previous activity…
dasa
  • 179
  • 4
  • 16
0
votes
2 answers

Focus on background Music when in a call

I am developing an app. I need to play the music when i am in a call. But i am facing with the problem that whenever i try to play the music in a call it is not that much loud as it is when there is no call. Is there any way to control the…
Developer
  • 385
  • 1
  • 3
  • 18
0
votes
2 answers

How to Control DTMF volume programmatically android

I want to make a Seek Bar that controls DTMF volume(e.g 0 to 100). I have searched a lot but could not find any thing. I am doing this but its not working.. int seekbarValue=seekBar.getProgress(); AudioManager audioManager=(AudioManager)…
Atul Bhardwaj
  • 6,647
  • 5
  • 45
  • 63
0
votes
0 answers

Control volume mode from BroadcastReceiver

I have a probleme while developping an application. I'm calling the "onReceive" method of my "BroadcastReceiver" from "onCreate" method of the service, and it works fine, but the problem is that i would like to change the volume MODE from MEDIA to…