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

Generate FFT and decode on Arduino

I really fail at FFT and now I'm in need to communicate from the headphone jack of my Android to the Arduino there's currently a library for Arduino (talks about it in the blog post Real-time spectrum analyzer powered by Arduino) and one for Android…
Naaz
  • 273
  • 2
  • 6
  • 21
0
votes
1 answer

Check if the android application has audio focus and continue playing next song

I'm new to android app development and it's my first app. I'm building a music player, I have following method public void playSong(int songIndex){ // Play song mContext = getApplicationContext(); AudioManager am =…
0
votes
1 answer

Radio Streaming Creacast from url

My application contain a radio streaming functionality that load mp3 format data from a url. I play the live radio based on the following code: public class StreamingMp3Player extends Activity implements OnClickListener, OnTouchListener,…
Christina
  • 119
  • 1
  • 2
  • 9
0
votes
1 answer

Not able to read audio streams with ffmpeg

I am trying to solve a big problem but stuck with very small issue. I am trying to read audio streams inside a video file with the help of ffmpeg but the loop that should traverse the whole file of streams only runs couple of times. Can not figure…
Talha Malik
  • 1,509
  • 3
  • 22
  • 44
0
votes
1 answer

Android: Use TelephonyManager or AudioManager for checking phone state before executing code

My question is, what is the best way to get the phone state (is it in call mode), to decide the further way. I would like to check for phone state before deciding whether execute sound notification or not. If I understood right the TelephonyManager…
aphelion
  • 561
  • 1
  • 5
  • 12
0
votes
2 answers

How to identify streaming audio URL?

I use WebView to view some web contents. Some of the pages redirects me to streaming audio. When I access the streaming audio URL with the device browser, it prompts me to open an external player or just plays it. When I open it with my WebView, I…
Asaf Pinhassi
  • 15,177
  • 12
  • 106
  • 130
0
votes
1 answer

Hide the volume toast when muting in android

I use setStreamMute(int, boolean) method from the AudioManager class on Android 4.0.3. Every time I call this method a toast with the current volume appears in the UI. Is there a way to hide that volume toast when muting/unmuting?
ideskov
  • 23
  • 2
0
votes
1 answer

Setting the speaker on doesn't always work

I'm making an app that the user can call his favorite contacts through my app. When the call starts the speaker turns on. In order to make a call im using this Intent. Intent callIntent = new Intent(Intent.ACTION_CALL); …
0
votes
2 answers

Android Media Volume locked after I kill

I have a huge bug in my app. After I finish the app the volume is muted and it's locked. Even when I quit and restart the app the volume is still locked at mute. The only way to restore the volume is to restart the phone. Please help! The app is a…
Jason Cheladyn
  • 565
  • 1
  • 12
  • 24
0
votes
0 answers

onAudioFocusChange not getting called

I am creating a application where a song is played by streaming. My app will continue to play when move to background which is OK. But when some other application like a music player of device or may be when I am playing video from youtube at that…
Vaibs
  • 1,128
  • 3
  • 16
  • 36
0
votes
2 answers

How do I implement AUDIO_SERVICE in widget

I am implementing audio manager widget application. I would like to use the following code. this.getSystemService(Context.AUDIO_SERVICE) but I can not use because I extend AppWidgetProvider class(not Activity class). How should I change my coding?…
KMH
  • 61
  • 1
  • 1
  • 4
0
votes
1 answer

Audio android does forces closes app

I have created an audio player with a list view of songs, when the user clicks on an item of the list view the music player starts and a button to pause it, all this worked fine! My next stop i implemented a seek bar to update progress of the song…
0
votes
1 answer

Audio starts on list item click how to stop?

Audio is played when the user selects an item from the list, i have three buttons one is to stop the playing audio and the other two are one to play the next item on the list and one to play the previous How would i achieve this? i have made the…
Jay240692
  • 166
  • 1
  • 5
  • 17
0
votes
1 answer

Google-TV not able to control volume

I have a google-tv application that should play some sort of media (hls) i am trying to control the volume but thought it is not working i am using the following code in the oncreate: setVolumeControlStream(AudioManager.STREAM_MUSIC); and then…
S.Najjar
  • 65
  • 1
  • 9
0
votes
1 answer

How to detect the BT headset or wired headset in android

In my application i want to detect the BT headset or wired headset in android. I refer http://developer.android.com/guide/topics/connectivity/bluetooth.html code from this link. They mention that only 3.0 and above version of android can support…