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
-1
votes
1 answer

Is there any other way to get current volume level other than through audio manager?

I am creating an android app to set and get audio levels. Using audio manager we get only 15 audio levels. I need to map these audio levels to percentage because user will be giving audio level in percentage and getting in percentage. Having only 15…
M.Dev
  • 63
  • 1
  • 6
-1
votes
1 answer

How to record and store live recording voice in every 5 second time?

I am doing r&d on a voice recording app. I have created a normal voice recording application. In which if I click on record it starts recording and after clicks on stop it stores the file. This is a normal voice recorder app feature. But in my app,…
-1
votes
1 answer

how can i know what is the max values of volume in android

AudioManager mgr=null mgr = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); mgr.setStreamVolume(AudioManager.STREAM_MUSIC, 100, AudioManager.FLAG_SHOW_UI + AudioManager.FLAG_REMOVE_SOUND_AND_VIBRATE);
-1
votes
1 answer

How to increate mp3 speed (enable and increase the rate) in Android

How to increase or decrease the speed of a mp3 using the Audio player in Android? iOS has the below code to increase or decrease the speed. _noticeAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]…
Pavandroid
  • 1,586
  • 2
  • 15
  • 30
-1
votes
1 answer

AudioManger doesn't Work Application Crashes

I'm working on an application .. but Audiomanager is not working i can't see any error my application got crash on phone I'm using AudioManager in BroadCastReciver Class when sms recive and text of sms is same of the particular text i've set the…
-1
votes
1 answer

AudionRecorder on android

Please in need of your help. How do I make record, pause and suspend recording functionality on Android? startRecording(); time_.setOnChronometerTickListener(new OnChronometerTickListener() { @Override public void…
-2
votes
1 answer

How can you lock the volume control programmatically

I want to intercept volume control changes and ignore them. Ideally this functionality could be backgrounded so my app would not have to be open and would work on the lockscreen as well. It also needs to work on an API greater than 21.
Duncan
  • 31
  • 1
  • 9
-2
votes
1 answer

Cannot find symbol 'getSystemService' in AudioManager

I am using the following code to create an instance of AudioManager : AudioManager mgr = (AudioManager)getSystemService(Context.AUDIO_SERVICE); mgr.setStreamMute(AudioManager.STREAM_SYSTEM, true); while compiling i get an error saying: Cannot find…
Sid
  • 21
  • 1
  • 8
-2
votes
1 answer

How to record audio while taking pictures in android?

Planning to develop an android application in which it has to record audio while taking pictures. When viewing it in gallery it has to play the recorded audio as well pictures.How to sync audio while taking pictures?
-2
votes
1 answer

Best way to play audio streaming in several format

I'm currently working on a radio application and I'm having some difficulties to figure out the best way to use - AAC - MP3 - ...etc Should I create a class for each player and then a service with something like //PRIVATE ATTRIBUTES private…
-3
votes
1 answer

Android : how to check programmatically, if your smartphone has a mono or stereo output (1 or 2 speakers)

I am implementing a multimedia player and I need to understand when opening my application if the smartphone on which it is installed has a mono or stereo output (1 or 2 speakers). Thanks
-3
votes
1 answer

How to check repeatedly whether a music player is active?

I want to check whether a music is playing using my application. I have done with my application and it works only for once. But I want know how can we repeatedly check for this. This is my code. But this code just checks whether music is active or…
1 2 3
52
53