Related
Hello all... looking for development ideas / possible solutions for music skip function while phone it turned off in my pocket.
Please read to understand what I'm thinking ;-)
I'm looking for anyone with suggestions to a small problem of mine...
I recently upgraded? to the Nexus S from the Nexus One. My problem is that I use the phone a lot for Music and I was using a custom 2.3.4 ROM that implemented track ball music skip functions on the Nexus One and I really miss them on the Nexus S a lot !
I have the CyanogenMod volume control music skip implemented but I find that when the phone is in my pocket and I try and find the volume controls, I end up pressing the power button accidentally on the opposite side at the same time thus turning on the screen and canceling the music skip functions. I end up fighting with my Nexus S to skip the the next music track or I just end up changing the music volume instead.
--------------
I would like to implement a Tap to Skip function... so when the phone is off and in my pocket I can just tap it two or three times to skip the track.
My plan was to implement the skip function in the PhoneWindowManager and use OnGestureListener for taps...but I guess this is not going to work when the screen is off ??? so the other option is using the Accelerometer to detect the taps but I don't have much of a clue how to do that.
Does anyone have any ideas?
Thank you
Oxygen Rom can skip to next track when holding vol up button and display turned off.
rentaric said:
Oxygen Rom can skip to next track when holding vol up button and display turned off.
Click to expand...
Click to collapse
I am fairly certain you haven't read the post you're replying to.
Get some headphones with track skip buttons/functionality.
Sent from my Nexus S 4G using Tapatalk
Igotsanevo4g said:
Get some headphones with track skip buttons/functionality.
Sent from my Nexus S 4G using Tapatalk
Click to expand...
Click to collapse
Thats an idea but I think a tapp to skip is a lot more universal and convient. Plus I don't think I've ever seen good headphones with this button... and I'm not sure the functionality even exist in Android?
Does anyone even know if it's possible to get GestureDetector.OnDoubleTapListener to detect tapps when the screen is off... I assume no as the touch-sensor will also be powered down.
So I'm looking for ideas to use the accelerometer to detect tapping... I will write some code tonight and see if there is any way within my skill set to do this.
rbrucemtl said:
Thats an idea but I think a tapp to skip is a lot more universal and convient. Plus I don't think I've ever seen good headphones with this button... and I'm not sure the functionality even exist in Android?
Click to expand...
Click to collapse
It does exist, although not all head phones work with it and its kinda finicky. But, hey, its easier than writing code
Sent from my Nexus S 4G using Tapatalk
Part of your problem seems to be mixing up the volume buttons and power button. I find this problem will probably lessen as you get more and more used to the phone. This is a problem I never have due to the difference in feel of the screen and the back of the phone I always know where the volume and power keys are.
I've found the CM volume key controls to be much too slow as they only allow for long press track changing. May I suggest you give PlayerPro a go? PlayerPro is the only music app I've found that allows for lockscreen music controls allowing you to reverse the key taps so that a short press of the volume keys allow for track changing. Albeit, this means that the screen must be turned on for the track skip via volume buttons to work, I personally love this interaction(intended or not). If I simply want to change my volume, I leave my screen off and tap the volume keys. If I'm trying to track change, I simply tap the power button, and then use the volume keys to switch tracks. I then press the power button once more to turn the screen off again.
May seem a bit complicated at first, but I can't imagine listening to music without this function now, it's just too useful. Don't know if that will work for you, but maybe give it a try. For someone like me who shuffles an entire library, often skipping tracks, skipping tracks via long press of volume buttons is WAY too slow. The short press skip track function of PlayerPro is perfect for me though. Maybe it'll work out for you too.
rbrucemtl said:
Does anyone even know if it's possible to get GestureDetector.OnDoubleTapListener to detect tapps when the screen is off... I assume no as the touch-sensor will also be powered down.
So I'm looking for ideas to use the accelerometer to detect tapping... I will write some code tonight and see if there is any way within my skill set to do this.
Click to expand...
Click to collapse
Did you ever tried this : Menu/cyanogen settings/lock screen/delay and timeout/screen timeout delay = 30m screen turned off delay = 30m
you screen should be off but lockscreen doesn't
it may help.
I used to skip track by double tapping the mic button on headphones.. but that was using my vibrant on touch wiz. Don't know if it works on nexus rom
Sent from my Google Nexus S using Tapatalk
There used to be an app on the market, shake to skip, not sure if it is still there?
rbrucemtl said:
Plus I don't think I've ever seen good headphones with this button... and I'm not sure the functionality even exist in Android?
Click to expand...
Click to collapse
The stock HTC headset works reasonably well. Not the loudest, though. Also not very comfortable.
So I guess, it's not really a 'good' headset.
This is a great idea to implement, i can't find any decent android headphones so this would be the next best thing
bringonblink said:
This is a great idea to implement, i can't find any decent android headphones so this would be the next best thing
Click to expand...
Click to collapse
Iphone earphones work the same, there's almost certainly some decent iPhone ones on the market.
bringonblink said:
This is a great idea to implement, i can't find any decent android headphones so this would be the next best thing
Click to expand...
Click to collapse
i got akg headphones best sound I've ever heared plus micro with musix skiping! nice and decent!
Sent from my Nexus S using XDA Premium App
Ever since the 4.2.1 update I've noticed an extremely obnoxious issue when listening to music. Texts and other notifications interrupt the music when using headphones or even the speaker. What's more annoying is that traditionally (this holds true on all android phones and iPhones I've ever owned) one simply puts the phone in either vibrate or silent mode and no more notifications interrupting your music. In Jelly Bean, it seems they forgot to implement this. Regardless of what sound profile I am in, silent, vibrate or normal my text tone comes through my headphones and interrupts the music.
Does anyone know a good way to fix this issue? Maybe a settings option I missed? Disabling text notifications ever time I listen to music would be a little ridiculous. I text while I listen to music all the time and it's highly annoying.
Easy, switch to airplane mode.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
danchoi704 said:
Easy, switch to airplane mode.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
OP says need to text...
Airplane mode shuts off all radios...so no more texting...
danchoi704 said:
Easy, switch to airplane mode.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
/facepalm
Troll?
Without notification u will not know incoming text.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
danchoi704 said:
Without notification u will not know incoming text.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
you don't need the music to stop to know a text has come in, as the OP said he wants a constructive fix for his issue not senseless comments which don't help the issue.
I would like to second the OP's Request, I have had this issue since ICS 4.0.4 where any notification will pause the music for a couple of seconds, this has been the HARDEST thing to get used to from my past life as devoted iPhone user. it is very frustrating, and I've noticed that I don't believe its OS related, but actually the individual application which deals with how the notifications interrupt.
Any help would be appreciated.
KieMarshall said:
you don't need the music to stop to know a text has come in, as the OP said he wants a constructive fix for his issue not senseless comments which don't help the issue.
I would like to second the OP's Request, I have had this issue since ICS 4.0.4 where any notification will pause the music for a couple of seconds, this has been the HARDEST thing to get used to from my past life as devoted iPhone user. it is very frustrating, and I've noticed that I don't believe its OS related, but actually the individual application which deals with how the notifications interrupt.
Any help would be appreciated.
Click to expand...
Click to collapse
Yes it's definitely not OS related, Its the way Sony handles it I guess.
thedisturbedone said:
Yes it's definitely not OS related, Its the way Sony handles it I guess.
Click to expand...
Click to collapse
I believe that Spotify does pause the music, along with the Walkman app, but I seam to remember a more niche player just lowering the volume for notifications.
unfortunately I don't believe this is something we as a community can fix, other than to recommend your application maker to update their app.
thedisturbedone said:
Yes it's definitely not OS related, Its the way Sony handles it I guess.
Click to expand...
Click to collapse
Which Xperia are you using? If it really becomes too big an issue, there is always the option of rooting and using a different ROM.
SeventeenV said:
Which Xperia are you using? If it really becomes too big an issue, there is always the option of rooting and using a different ROM.
Click to expand...
Click to collapse
I'm using the T. But I have yet to use Poweramp and test it because it has a separate setting for notification focus. Yes I think a CM rom might fix it. But as of now I don't want CM coz stock is way better.
Hi all,
this one is pretty amusing at times, but mostly frustrating. So I have a this HTC One which was shipped with Android 4.1. Everything was great. Then I updated to 4.2 using the normal "check for updates" procedures.
Now, whenever I hang up or ignore a call, my MP3 starts playing. Systematically. Sounds like a bluetooth issue (most of my calls are dealt with through my bluetooth headset). I uninstalled the bluetooth app (Plantronics Voyager Legend UC), reinstalled, deleted and re-paired the device. No luck.
I can;t find anywhere a "playback" setting of any kind. Google-is-my-friend tells me I'm not the only one with that issue but so far, no solution.
If anyone has a clue, aside reverting to 4.1, I'd be grateful as this is quite embarrassing when you're in a meeting and you ignore the call... (good thing I got rid of my heavy metal MP3 files...).
Thanks,
Boags said:
Hi all,
this one is pretty amusing at times, but mostly frustrating. So I have a this HTC One which was shipped with Android 4.1. Everything was great. Then I updated to 4.2 using the normal "check for updates" procedures.
Now, whenever I hang up or ignore a call, my MP3 starts playing. Systematically. Sounds like a bluetooth issue (most of my calls are dealt with through my bluetooth headset). I uninstalled the bluetooth app (Plantronics Voyager Legend UC), reinstalled, deleted and re-paired the device. No luck.
I can;t find anywhere a "playback" setting of any kind. Google-is-my-friend tells me I'm not the only one with that issue but so far, no solution.
If anyone has a clue, aside reverting to 4.1, I'd be grateful as this is quite embarrassing when you're in a meeting and you ignore the call... (good thing I got rid of my heavy metal MP3 files...).
Thanks,
Click to expand...
Click to collapse
I did get a chuckle on this one. The only suggestion I have would be to download a 3rd party music player, check it as the default player, and see if that helps.
Woops sorry buddy I didn't mean not to reply, just been busy. So yeah this is amusing at best. So I uninstalled all apps related to the headset, rebooted once more, and voila ! No more MP3.
As to why it ever happened in the first place, I'm as puzzled as you on that one.
Cheers though,
Well I spoke too early... randomly, after I hang up, there comes the music...
I considered slapping the phone on the wall but that's not very viable.
I went through all the settings for the phone, the music player, the bluetooth headset, I can't figure this one out.
Any ideas you want to throw at me, please do. Thanks,
I think I've been able to narrow it down. I think it only happens (but I have to confirm this) when the "car" application is on. However in the settings I can't see "resume music after a phone call" or something similar.
I think it's the "Car" application, however it's called, because the way the "play forward stop pause" buttons look similar to what's on the screen when the music starts playing... it's a long shot I know.
Do you allow your headset to be a control for the music player? If so, using the headset to hang up may well start the music playing.
Sent from my GT-I9505 using Tapatalk 2
SeraphSephiroth said:
Do you allow your headset to be a control for the music player? If so, using the headset to hang up may well start the music playing.
Sent from my GT-I9505 using Tapatalk 2
Click to expand...
Click to collapse
Hi yeah well the headset is set as an audio output for music yes but there are no other controls, and in the settings nothing indicates anything about phone calls and hanging up etc... Weird hey
Boags said:
Hi yeah well the headset is set as an audio output for music yes but there are no other controls, and in the settings nothing indicates anything about phone calls and hanging up etc... Weird hey
Click to expand...
Click to collapse
Show me the headset
Sent from my GT-I9505 using Tapatalk 2
SeraphSephiroth said:
Show me the headset
Sent from my GT-I9505 using Tapatalk 2
Click to expand...
Click to collapse
http://www.plantronics.com/au/product/voyager-legend-uc that's the one.
HTC is Android 4.2.2 with Sense 5.0 thanks mate
Your call answer might be play/pause
Sent from my GT-I9505 using Tapatalk 2
quite possibly but where do you change that ? I couldn't find where...
Mine comes on while I'm listening to music in my car or when talking around my phone. I love this feature but it gets annoying when it comes on automatically.
Can we set it to a point where it knows when to come up?
Jess813 said:
Mine comes on while I'm listening to music in my car or when talking around my phone. I love this feature but it gets annoying when it comes on automatically.
Can we set it to a point where it knows when to come up?
Click to expand...
Click to collapse
Try re-training the launch phrase and do it in a room that's DEAD QUIET with the phone at arm's length. I was having that problem with the TV and radio triggering it but re-training fixed it.
Anyone have this problem when the phone is connected via Bluetooth to my car and I'm listening to Google play music, when I skip a track using the radio it wakes the screen.
goinflyn said:
Anyone have this problem when the phone is connected via Bluetooth to my car and I'm listening to Google play music, when I skip a track using the radio it wakes the screen.
Click to expand...
Click to collapse
I get this as well when I use Bluetooth headphones. So annoying. Another annoyance of Lollipop.
Did you find a cure?
@home said:
I get this as well when I use Bluetooth headphones. So annoying. Another annoyance of Lollipop.
Did you find a cure?
Click to expand...
Click to collapse
Also happens to me, asked around and couldn't find anything.
Recon0212 said:
Also happens to me, asked around and couldn't find anything.
Click to expand...
Click to collapse
Frustrating to say the least. Does Google actually test their software anymore?
Disable ambient display. The screen will stay off when skipping tracks.
goinflyn said:
Disable ambient display. The screen will stay off when skipping tracks.
Click to expand...
Click to collapse
I'll give that a try. Thanks