[Q] how to know when a sound has stopped - Android Software Development

how can you tell when a sound has stopped playing?

When you don't hear it anymore
Sent from my SGH-T959 using XDA App

If youre using the MediaPlayer class to play sounds... you can do
myMediaPlayer.setOnCompletionListener( *some onCompletionListener object that you make* ) ;

Related

Possible to disable notification audio when playing music?

When playing music, the audio will get interrupted by notification audio. Is there a way to disable this?
Sent from my SGH-T959 using XDA App

[Q] Skipping songs using headset?

Just wondering if there is a app/rom or tasker setting that can allow me to skip songs using the button on my earphones. I remember in Bionix I could pause/play but couldn't skip, and now that I'm on macnut R2 I don't even have that. Its the one thing I miss having upgraded from the iphone.
I'm also interested in this
Are you using the stock music app? Maybe try a different one like winamp?
Sent from my SGH-T959 using XDA App
Yea try a diffrent music player and check under setting. Also long press will skip the song on some players
Sent from my SGH-T959 using Tapatalk

Notifications stopping player

Hello, I know that is normal in all Android but there is a way to do notifications stop pausing my music's?
Because I use Facebook and this is boring me =/
Thanks guys
Sent from my GT-I9505 using xda premium
Velcis Ribeiro said:
Hello, I know that is normal in all Android but there is a way to do notifications stop pausing my music's?
Because I use Facebook and this is boring me =/
Thanks guys
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
I also found this annoying, especially while watching video etc. The only solution I ever found was to mute the sounds, which stopped the alerts interrupting the music or video playback, and as a bonus, you still hear the ringer through the headphones
If you have/use tasker, you can create a policy that detects when your watching films or listening to music and automatically sets the alerts to mute, then sets it back when your done.
But how to mute? I selected mute sounds in configuration and player stopped too.
Sent from my GT-I9505 using xda premium
I just mute it using the mute/vbrate toggle in the quick setting menu and still am able to play music via google play or videos

listening to music and using mic at the same time?

just wondering if there was a MOD or a way to keep music playing iny headphones while im at work without pausing the music whenever i use voice to send a text? most of the time i just let google type out what i say whenever im busy typing or habe my hands full but i also hate that it interrups my tunes..
Sent from my SPH-L720 using xda app-developers app

[Q] Is there any way to play music while on a call? Rooted Stock

Hi,
Is there any way to play music while on a call?
I'm back on stock Bell ROM and rooted but thinking about going back to xtrastolite as it's way better.
Thanks,
Sent from my SM-G900W8 using XDA Premium 4 mobile app
And why do you need to listen to music while on a call?
For instance if I wanted to play a song on voicemail or a recorded call to another person.
Sent from my SM-G900W8 using XDA Premium 4 mobile app
AltaEgo said:
For instance if I wanted to play a song on voicemail or a recorded call to another person.
Click to expand...
Click to collapse
So do I understand you correctly, you would like to be on a call on your phone and then play a audio file (Song, VM, whatever) outloud so they can hear it as though you were holding 2 devices?
If that's right I think that would be a multi level challenge. Problem you will face I believe is the rom itself is pretty deeply coded to mute music for calls, for gps, etc... so MIGHT be a possibility would be to install a 3rd party music player and code the output of that player to say the REAR speaker and ignore any pause or mute requests, but idk for sure... I bet this would be a lot of close one door open 2 more kinda thing for a while.

Categories

Resources