[Q] Tasker script to solve headphones/incoming call/notification issue - AT&T Samsung Galaxy Note I717

Anyone able to create a profile to solve the issue we have with our note. The issue is the following,
If headphones are plugged in and we get an incoming call, the ringtone will play on both speaker and headphones.
If headphones are plugged in and we get a notification, the sound will only play through speaker.
I tried to do a basic script that has headphones plugged in and incoming call for context, then set ringer volume to 0 and play music ringtone.mp3. Add exit task to for the opposite, raise ringer volume, stop music.
The problem is, it worked, if I didn't have music playing already when I get an incoming call, which is the whole reason why I would have headphones plugged in to begin with. The task successfully sets the ringer volume to 0 so at least it didn't play on the speaker, but then nothing would play on the headphones, and the music I was playing would pause (like it's supposed to), but the ringtone I specified didn't play. Ending the call resumes the music I was playing.
Anyone willing to shed some insight on this?

This issue is next on my list. I believe it is an issue with how the phone distinguishes what the sound is. ..phone vs media...hard to explain
Sent from my SAMSUNG-SGH-I717 using XDA App

This would be a great fix
Would love to have this profile, let me know if there is anything I can do to help!
Is this kinda what you want, I think it is kinda what i want.
http://forum.xda-developers.com/showthread.php?t=1559541

jfout said:
Would love to have this profile, let me know if there is anything I can do to help!
Is this kinda what you want, I think it is kinda what i want.
http://forum.xda-developers.com/showthread.php?t=1559541
Click to expand...
Click to collapse
that does look like what i want, but i'll have to get home before I can test it.
btw, where are the notification sounds stored? the ones that came with the phone.

System.media.audio
kaishi00 said:
that does look like what i want, but i'll have to get home before I can test it.
btw, where are the notification sounds stored? the ones that came with the phone.
Click to expand...
Click to collapse
Sent from my SAMSUNG-SGH-I717 using XDA App

just tested, did not work, or maybe i did something wrong.

anyone willing to give the script a try and see if it works, or I just did something wrong.

I'll try tonight

Related

Headphone problem

Hey there folks. I'm looking for some type of script or adb command to over-ride the headphones for every sound when they're plugged in. When using cyanogenmod I found a CM setting, under the sound sub menu, that allows me to over-ride the headphones on particular sounds. This makes me believe there has to be a way to do it for every sound including music and phone calls. Any insight or direction would he appreciated. Thanks
Sent from my Elegant-Steal using XDA App
Bump?
Sent from my nonsensikal froyo using XDA App
Settings->CM Settings->Sound Settings. I think this is what you might be looking for and it's on all Froyo Vanilla ROMs that are CM based. Check the section titled "Note." It says all of those settings are applied only when headphones are being used. They seem to be what you're looking for. Hope this helps.
Sent from my Tazz Vanilla
I appreciate your response but unfortunately that's what I already do lol with those settings I can enable alarms, notifications, and ringtone. My hope is that since cyanogenmod has those options, there has to be a way to apply that to the few things I still can't hear unless my headphones are in. This would include any/all music apps, hearing who Calls me without having to use speaker phone, and game/app sounds/music. I know my speaker can still play music because one day I was listening to music(with headphones of course!) And got a call. So I unplug my headphones and pick up the call n press speakerphone. Well, after the call when I hit end, I heard a split second of the song I was listening too beforehand on the speaker. That gives me hope that I can eventually overcome this. PS.- none of the headset overide apps in the market work.
Sent from my nonsensikal froyo using XDA App
settlethestorm said:
I appreciate your response but unfortunately that's what I already do lol with those settings I can enable alarms, notifications, and ringtone. My hope is that since cyanogenmod has those options, there has to be a way to apply that to the few things I still can't hear unless my headphones are in. This would include any/all music apps, hearing who Calls me without having to use speaker phone, and game/app sounds/music. I know my speaker can still play music because one day I was listening to music(with headphones of course!) And got a call. So I unplug my headphones and pick up the call n press speakerphone. Well, after the call when I hit end, I heard a split second of the song I was listening too beforehand on the speaker. That gives me hope that I can eventually overcome this. PS.- none of the headset overide apps in the market work.
Sent from my nonsensikal froyo using XDA App
Click to expand...
Click to collapse
That's interesting. I'll look into it and see what I can find. Sorry it wasn't what you were looking for. I'll report back here when I find something useful.
Sent from my Tazz Vanilla
Hey, don't be sorry bro! I appreciate the fact that your offering any help. Thank you
Sent from my nonsensikal froyo using XDA App
Welcome. Will report back here when I find something. This may be something I use in the future.
Sent from my Tazz Vanilla
This almost seems like it would be in something like spare parts. I'll see what I can do.
Sent from my Tazz Vanilla

[Q] Headset control button

Hi there,
Has any else had the problem with last number or missed call being dialed when you use the control button with the one x+
Only when listening to music with headphones
Still change even with The update..
Yes, wanted to ask the same
Using PowerAmp: one click start/stops, double click dials last call, long click open Google Now... Could not figure out how to change track until now :crying:
Yezariael said:
Yes, wanted to ask the same
Using PowerAmp: one click start/stops, double click dials last call, long click open Google Now... Could not figure out how to change track until now :crying:
Click to expand...
Click to collapse
I'm using power amp pro but still no change, if I click next track on headphones I dial the last number in my call history,
I'm using Tiny call confirm App, this blocks the call and won't dial the number until you press yes on phone.
When I asked HTC they said it was a faulty phone but this is my second phone and still same problem,
Try using your headphones after you have received or missed a call and let' me know if your having the same problem.
Mike46 said:
Try using your headphones after you have received or missed a call and let' me know if your having the same problem.
Click to expand...
Click to collapse
That's exactly what I described in my post...
Mike46 said:
Hi there,
Has any else had the problem with last number or missed call being dialed when you use the control button with the one x+
Only when listening to music with headphones
Click to expand...
Click to collapse
So it seems the phone does not recognize a stereo headset is connected to it? It thinks it is a bluetooth device instead so when listening to music and you double tap your headset it places a call just as it would on a bluetooth device when connected? Sounds like a dumb phone, lol! Hope this isn't the case, i use jaybird bluetooth headset 5 days a week in the gym listening to music from my phone and always change tracks with double tap, answer calls, etc. Would i be effected by this when listening to music?
Never heard of this problem in a cell phone before?
deeznuts said:
So it seems the phone does not recognize a stereo headset is connected to it? It thinks it is a bluetooth device instead so when listening to music and you double tap your headset it places a call just as it would on a bluetooth device when connected? Sounds like a dumb phone, lol! Hope this isn't the case, i use jaybird bluetooth headset 5 days a week in the gym listening to music from my phone and always change tracks with double tap, answer calls, etc. Would i be effected by this when listening to music?
Never heard of this problem in a cell phone before?
Click to expand...
Click to collapse
Nope, it displays the headset icon, so it's correct... I have a Monster Mobile Jamz Headset with only 1 control button with this problem.
My BT headset Sony MW1 works correct, but it has single buttons for every control like forward/rewind/play/pause/volume....
Yezariael said:
Nope, it displays the headset icon, so it's correct... I have a Monster Mobile Jamz Headset with only 1 control button with this problem.
My BT headset Sony MW1 works correct, but it has single buttons for every control like forward/rewind/play/pause/volume....
Click to expand...
Click to collapse
Oh ok so for a device like mine it should work ok? Guess i'll find out soon enough, picking up the device tomorrow morning from ATT. What is Power Amp? Is this a 3rd party download to listen to music? What does this feature for you guys over the stock music player? Thanks
deeznuts said:
Oh ok so for a device like mine it should work ok? Guess i'll find out soon enough, picking up the device tomorrow morning from ATT. What is Power Amp? Is this a 3rd party download to listen to music? What does this feature for you guys over the stock music player? Thanks
Click to expand...
Click to collapse
Hi all
I have tried with beats hd and the htc headphone, but still the same..
Mike46 said:
Hi there,
Has any else had the problem with last number or missed call being dialed when you use the control button with the one x+
Only when listening to music with headphones
Click to expand...
Click to collapse
Ya I'm having the problem too I tried two of my friends hox and it worked fine on one and the other called out my fix for this as I use Google voice is have me ask each time I make a call to confirm and has worked fine like that I can't figure out what setting is on though to make one work fine and the other not
Damn this sucks. So i guess in the gym i have to pull this lunk out of my pocket whenever i want to change a track VS. the shortcut keys on my headset for which they were built for. Thanks HTC, you're always the best!!!
Do your wired headset volume rocker adjust the volume on the phone? I'm using a good pair of Bose wired headsets to listen to music and watch videos on my device and it has the controller on the headset for volume and change tracks/answer calls/ etc. When watching a Netflix video though in the Netflix App the Volume Rocker on my Bose headset does nothing, i have to manually press the volume rocker on the actual device, Wow another Fail HTC and these headphones are fully compatible with Android and Apple devices.
I hope once we can get our phones Rooted a developer can make a tool/tweak to make our headsets work they work on every other device under the sun the way they should and stupid HTC prevents for whatever reason. Really a waste to have zero control with a headset for this device.

Annoying volume reduction

Alrighty. I searched around and found this question asked a few times around the net, but never answered. Same question is also asked over in the Sprint note2 q&a with no replies...
The question is this..
How the heck do you disable the automatic reduction in volume when plugging something in the 3.5mm jack?
I switch between by car's cd player and a line-in cable to use streaming audio through my phone a lot and am incredibly annoyed with having to turn my phone's volume back up when i plug in the cable. I also dont like being chided like a 10 year old with the "don't listen to loud music" message each time i turn the volume back up... i don't need a nanny. i just want to listen to my music without having to keep fiddling with volume settings.
Anyone know where this "feature" is and how to disable it?
Sent from my rooted SCH-I605 using xda premium
Good question. I was wondering the same thing, as well as how to turn off the "soft ring" or whatever it's called where the ringer starts low when you're receiving a call and after a second or two goes to regular volume.
I've looked in the sound settings and in accessibility but can't find any options for those things.
i seem to be having the opposite problem ...
the volume is loud as hell even on the low setting.
maybe its just me ?
E30Nova said:
Good question. I was wondering the same thing, as well as how to turn off the "soft ring" or whatever it's called where the ringer starts low when you're receiving a call and after a second or two goes to regular volume.
I've looked in the sound settings and in accessibility but can't find any options for those things.
Click to expand...
Click to collapse
Some custom ROMs have it removed...if you are stock or the ROM you are running doesn't have it removed you can install this app in the market to stop it from happening:
https://play.google.com/store/apps/...S5zaHVtb2FwcC5kaXNhYmxlaW5jcmVhc2luZ3JpbmciXQ..
It's free. It runs in the background but I've never seen it consume any battery. All you have to do is open the app and it stops the increasing ring from then on. Make sure and follow the instructions if you don't want the persistent notification. I turned it off and the app has never been killed.
Honestly, that increasing ring was irritating, but i never thought about fixing it... i installed that app and we'll see how its works.
Now if we can just get rid of that stupid volume reduction i'll be set!
<- rooted stock
Sent from my SCH-I605 using xda premium
Well... I just flashed to beans rom 7.... And the silly volume reduction is still there...
Anyone have any other ideas on wherr this "feature" is hidden so i can excise it like a malignant tumor?
Sent from my SCH-I605 using xda premium

How to get alarms/notifications in speaker if headphones plugged in.

Hello Fellas!
Recently i started to listen to music/audiobooks before i go to sleep,
the problem is that in android 4.2/4.1 even with clock apps that tries to force audio through speaker (at least on my phone) only plays the audio through the headphones which has fallen of during night.
So i though i should make an post instructing how i got the alarm to play through the speaker even with the headphones connected.
the answer is Soundabout combined with Tasker (you could probably use other automation tools as well)
1. download soundabout free from market.
2. set Media Audio to speaker.
3. force close soundabout.
4. Download Tasker (which is a paid app but is well worth the money) (or other automation tool)
4a. go to settings and untick beginner mode.
5. Download and place "userbackup.xml" in the "tasker" folder in the root of your sdcard
userbackup.xmll
6. Open tasker, press the menu button --> data --> restore.
This hack will open soundabout at 6am if the headphones are plugged in, if you are rooted it will also force kill soundabout when you unplug.
NOTE: if you have any profiles allready you should make a backup and add my profile at the bottom of your "userbackup.xml."
Hope this helps!
Best Regards
Thanks
No problem, the only problem is that you have to force close the app every single day though,
i emailed the developer of soundabout about this and he said he would try to make a tasker plugin to make this easier!
Hey guys.
Any update on this?
Thanks
Alan
I dont get it... Soundabout runs a service, so it should be able to force audio through speakers without the need to fc it and start it via Tasker
But the fact is that it does not work on my phone. I have a headset plugged at all times and I just miss all calls
It is said that music apps can prevent soundabout from routing audio through speakers.. i am still testing, will post if I come to a conclusion on what music app does not bring this issue
I ****ing hate those ****tards at google who thought they should change that... since the beginning of time, call and sms alerts always went to speaker regardless the headset is plugged
maeman said:
I dont get it... Soundabout runs a service, so it should be able to force audio through speakers without the need to fc it and start it via Tasker
But the fact is that it does not work on my phone. I have a headset plugged at all times and I just miss all calls
It is said that music apps can prevent soundabout from routing audio through speakers.. i am still testing, will post if I come to a conclusion on what music app does not bring this issue
I ****ing hate those ****tards at google who thought they should change that... since the beginning of time, call and sms alerts always went to speaker regardless the headset is plugged
Click to expand...
Click to collapse
I guess you dont have to fc, but i atleast had to force everything to the speaker. So the easiest way to get the sound back to my earplugs was to force close it.
The updated version does it automaticly so im good for now
Will pay $ for tasker script.
Hi to all of You.
I would like to have profile that force incoming call ringing and notifications to speaker when wired headphones with mic is plugged but not media sounds like YouTube or games, media sounds should be played only by wired headphones with mic.
I am willing to pay some reasonable amount of $ for person, who will write such tasker script for me.
([email protected])
Audio through external speaker with headphones plugged in - Tasker
Any better solution found for this yet? I would like to get tasker to still play audio through the external speaker when the headphone jack is plugged in. I would prefer not to use another app for this, just a tasker profile.
I just received a pressy like headphone button but it mutes the external audio since the phone thinks headphones are plugged in. The apps available for the Klick buttom don't seem too trust worthy or functional. I still want to use it to keep the dust out of the jack but not miss all the audio calls and notifications. A simple tasker profile to accomplish this would be great.
Any ideas?
pzayx said:
I guess you dont have to fc, but i atleast had to force everything to the speaker. So the easiest way to get the sound back to my earplugs was to force close it.
The updated version does it automaticly so im good for now
Click to expand...
Click to collapse
also with Xprivacy you can change and give permission to prevent soundabout from changing speaker after, or there are many other permissions it's asking for.
Couldn't dig deeper, but may give an idea to someone.
I had a similar issue, except in my case I use a wired handset with my phone and I wanted notifactions to sound through the phone speaker rather than through the handset. My solution was to use the Automate app with the configuration attached. Plugging the handset mutes the notification, then on SMS received it plays a sound, with the output stream set as "ring" so it sounds through the phone speaker.
As far as I'm aware, it's not possible to play audio through two streams simultaneously- don't cross the streams...
I'm using a Sony Z3 with LineageOS, but I guess this should work with any android compatible with the current version of Automate.

[Q] Stopping notifications interrupting music without putting phone on mute mode

I think this may be a Samsung generic problem, but does anyone know if there is a way to stop notifications interrupting music playback without having to mute the phone? Really annoying having to do this every time.
xavier2k3 said:
I think this may be a Samsung generic problem, but does anyone know if there is a way to stop notifications interrupting music playback without having to mute the phone? Really annoying having to do this every time.
Click to expand...
Click to collapse
I have exactly the same problem - it was not an issue when I was on the HTC One (M7). The S6 is a lovely phone, but I really want control over this.
The fix I have at the moment is the "Don't Pause" app, which detects when you are listening to music and puts the phone on vibrate, but what I really want is a subtle audio notification which does not pause the music or interrupt my podcast.
https://play.google.com/store/apps/details?id=com.pierceholdings.dontpause&hl=en
jeffhughes said:
I have exactly the same problem - it was not an issue when I was on the HTC One (M7). The S6 is a lovely phone, but I really want control over this.
The fix I have at the moment is the "Don't Pause" app, which detects when you are listening to music and puts the phone on vibrate, but what I really want is a subtle audio notification which does not pause the music or interrupt my podcast.
https://play.google.com/store/apps/details?id=com.pierceholdings.dontpause&hl=en
Click to expand...
Click to collapse
Thanks for the tip. Yeh, I'm coming from an M8 and it used to just play the notification over the top of the music which was fine as you usually couldn't even hear it anyway. I'll check out that app.
Thanks!
Seems to me like a software feature. Using the stock music player, notifications would pause the playback of music and then resume after. I didn't like this behavior either. I started using Poweramp. It has a "Short Audio Focus Change" option that I turn off. Now my notifications play over top of music.
DliciousFish said:
Seems to me like a software feature. Using the stock music player, notifications would pause the playback of music and then resume after. I didn't like this behavior either. I started using Poweramp. It has a "Short Audio Focus Change" option that I turn off. Now my notifications play over top of music.
Click to expand...
Click to collapse
I also come from HTC and this issue is driving me nuts. Even when notifications are muted my device is pausing when I use Google Messenger to SEND a text message. I've no idea why sending a message would cause my music player (Spotify) to pause briefly.
The same when I use my watch's "ok Google" feature - the music on my phone stops playing... that makes no sense to me. Why would the "ok google" feature of the watch pause the music on my phone while listening?
This also happens on Google Play Music. Really annoying.
transfo47 said:
This also happens on Google Play Music. Really annoying.
Click to expand...
Click to collapse
If you use Lightflow, you may be able to do this by setting up your app notifications in Lightflow and then selecting "Audio Focus Ignored" in the Labs tab in Lightflow and it may fix it.
I know it worked on my Nexus 5 but I'm unsure whether it will work on the S6. It's worth a try if you're already using Lightflow for LED control.
More people are joining...and the plot thickens:silly:
dlotters said:
I also come from HTC and this issue is driving me nuts. Even when notifications are muted my device is pausing when I use Google Messenger to SEND a text message. I've no idea why sending a message would cause my music player (Spotify) to pause briefly.
The same when I use my watch's "ok Google" feature - the music on my phone stops playing... that makes no sense to me. Why would the "ok google" feature of the watch pause the music on my phone while listening?
Click to expand...
Click to collapse
Disable the outgoing sound in the settings of Google messenger to get rid of that issue.. But as for the rest, I've learned to live with it.
elpindian said:
Disable the outgoing sound in the settings of Google messenger to get rid of that issue.. But as for the rest, I've learned to live with it.
Click to expand...
Click to collapse
Thanks for the tip!
Sent from my Galaxy S6 Edge
This is the most annoying thing ever about the Samsung S6. I just got it recently having switched from a One Plus One. Now I remember why I left Samsung before. This has been a recurring issue since the S1. On top of that, the audio notifications seem to be delayed and come after the vibration i.e. phone vibrates then and then the sound comes when a notification occurs.
Has anyone also experienced when headphones are plugged in with music playing and a notification occurs, the headphones cut off and music plays from the speakers?? This is especially frustrating when I'm on the bus or a quiet place.
Samsung really needs to fix this annoying issue.
hello everyone, i also was going through this annoying problem but for me i found the best solution on my galaxy s6, when im listening to my music . I went to settings clicked "sounds and notifications" then clicked "do not disturb" and turned it on . then scroll down on exeptions and u can turn off alarm , calls, messages . The cool thing is the notifications go throw u can see your notification light blinking and with no interruptions and once you stop listening to your music turn off "do not disturb" and everything back to normal. To me its the easy way on my galaxy s6 with out downloading extra apps and it works great ...
Hope it helped you guys out and can enjoy your music without any interruptions
Just to say "me too!". Sooooo annoying when listening to music or audio books. Can we some how let Samsung know about this?
xavier2k3 said:
I think this may be a Samsung generic problem, but does anyone know if there is a way to stop notifications interrupting music playback without having to mute the phone? Really annoying having to do this every time.
Click to expand...
Click to collapse
I use Tasker to put my phone into "do not disturb" mode when my headphones are plugged in. I had it set up to go silent when I had my music app open before and found the headphone thing to be more effective. I haven't tried to just make it quieter, but it's probably possible.
Something to mess around with. Plus, Tasker does a ton of other cool stuff. Totally worth the $3 for the level of automation they offer.
DliciousFish said:
Seems to me like a software feature. Using the stock music player, notifications would pause the playback of music and then resume after. I didn't like this behavior either. I started using Poweramp. It has a "Short Audio Focus Change" option that I turn off. Now my notifications play over top of music.
Click to expand...
Click to collapse
Thank you that's been annoying the hell out of me but have changed settings now thank you! ?
This issue is still not resolved I take it? I cannot for the life of me figure out how to turn that crap off on my A3. I'm using Google Music.
When I listen to music the only thing that should interrupt is high priority communication. Basicly just phone calls and emergency/gouvernmental alerts. Evertything else is low-priority communications and won't ever take precedence over my music but I don't want to turn the notifications off completely.
The guy who figures having random whatsapp messages disturb your music experience obviously doesn't use his phone for listening to music while participating in several Whatsapp groups.
Hii everyone
I was facing same issue in Mi Max MIUI 8 running android MM.
I started using music folder player 2.1.4
preferences->behavior->handle audio focus->choose ignore audio focus.
Music didnt pause by incoming msgs (text,whatsapp, mails, etc).
Thanks.
Please share ur experience.
DliciousFish said:
Seems to me like a software feature. Using the stock music player, notifications would pause the playback of music and then resume after. I didn't like this behavior either. I started using Poweramp. It has a "Short Audio Focus Change" option that I turn off. Now my notifications play over top of music.
Click to expand...
Click to collapse
Wow you solved this for me after years of looking for a solution! Thanks!
For anyone interested, in Poweramp, go to Settings > Audio > Audio Focus and uncheck "Short Audio Focus Change"
Uconnect/ Bluetooth devices
I FOUND A FIX.
For me, using the Uconnect setup incoming sms message announcement did NOT work. It works ONLY for when you are listening to the radio. I like to use my music apps on my phone like Apple Music and like other people, Samsung Milk Music or others and when listening to this I would still get the extremely frustrating "New SMS message from (insert name) press uconnect phone button to..." blah blah and whenever I hit cancel to escape that long interrupt it would take 10 seconds to get back to my music and sometimes it would pause my music and while driving you cant simply go back in and play it. I figited with EVERYTHING. I tried the uconnect manual, I tried to disable notifications for both my message+ app I use and Apple Music and neither worked but the answer was much more simple than I thought. Here it is: go to your settings that has all the options like wifi, airplane mode etc... tap your bluetooth option and it should pull up not only the uconnect you have paired but all the otger bluetooth things you have paired. Next to it is a gear icon. Tap on that and it will appear all the thing uconnect has access to like media audio (music, videos) call audio, contact access and MESSAGE ACCESS. TURN THAT OFF. THIS WILL STOP INTERRUPTIONS DURING YOUR MUSIC APPS AND SUCH.
I have not used this with other bluetooth devices but it worked for my car and I hope it works for you too.

Categories

Resources