FORUMS
Remove All Ads from XDA

[GUIDE][Intermediate] CHANGE MUSIC BY WAVING: Previous & Next song!

580 posts
Thanks Meter: 73
 
By fenchai, Senior Member on 9th March 2016, 03:40 AM
Post Reply Email Thread
REQUIREMENTS?
  • TASKER
  • PHONE WITH PROXIMITY SENSOR
  • NO ROOT REQUIRED
  • COMMON SENSE

WHAT Does this do?

This will basically change your music tracks (previous and next) by waving your hand

HOW does it do it?

You hand activates the Proximity sensor (be sure to locate yours before trying this lol) Then it goes into the details by detecting if your hand is still hanging in there, if your hand is not there, it will change to the next track, if your hand is still holding up, it will Rewind the song, do it again and it will change to the previous song.

WHEN do you want to use this?
  • On Car, You are driving, want to change tracks while driving? well just wave your hand instead of even looking at your phone. (ok you look a bit but you get the idea) No more accidents, looks cool when you do it in front of your newbie friends, yeah go ahead and tell them to do it with their iPhones XD Just remember to paste your phone into a place you can reach or use one of those universal phone holders.
  • On some desktop for whatever reason you dont have a computer or cant play songs on your pc? Activate this with Bluetooth see magic with a wave of your hands
  • You want to see the magic and how futuristic it is when you wave and the machine speaks back to you

OK, Lets get Started
  1. Create a Profile, (name it to Prox=1) Select State, Select Proximity Sensor
  2. Task>Variable Set>Name: %Prox to covered
  3. Create Another Profile, (name it to Prox=0)Select State, Select Proximity Sensor But This Time Check on Invert
  4. Task>Variable>Set>Name: %Prox to uncovered
  5. Create Another Profile(name it to Prev and Next), Select State, Select Proximity Sensor
  6. wait (515MS) <---This is an Important Factor on this project, this determines how long your hand should stay in the proximity sensor, the shorter the wait, the faster it will trigger, change as required.
  7. if %Prox ~ uncovered & %SCREEN ~ off
  8. Say: "Next" (Customize the way you like it or just leave it as if)
  9. Media Control Next on App Poweamp (The App "Poweramp" can be changed to the Music App you are using)
  10. Else If %Prox ~ covered & %SCREEN ~ off
  11. Say "Back" (Again, You can customize the voice etc. or.. just dont)
  12. Media Control Previous App Poweramp ( Again, you choose the Music App or else it wont work)
  13. End If

Now you will need to create a Task, Name it to Track Changer Yes.
The Task should contain
Profile Status>name Prox=1 Set On
Profile Status>name Prox=0 Set On
Profile Status>name Prev and Next Set On
Set Tasker Pref>Proximity Sensor Value Yes

What the Above does is to just Activate your Profiles, so that it just works.

If you want to Deactivate those Profiles do another Task, Name the Task to Track Changer No.
The Task should contain
Profile Status>name Prox=1 Set Off
Profile Status>name Prox=0 Set Off
Profile Status>name Prev and Next Set Off
Set Tasker Pref>Proximity Sensor Value when Power Connected

This will deactivate the task and you are back to 0
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

If I knew how to make Pictures Appear in the Post (I don't) This would have been easier for you but since life is tough and you need to experience this there you go.
If you need more details look at this Album http://imgur.com/a/eXcch

BTW: To Make this work you need to activate all 3 Profiles, Prox=0, Prox=1 and Prev Next. The Task "Track Changer Yes" will Activate it for you, useful if you activate this task via Bluetooth, Heaphones, etc. You can make a Scene pop when you connect headphones, etc your ideas are your limitation.

If you struggle in some place, look at the tasks and see if any of them has a triangle error in there. Make sure you change the music app on all 2 action tasks! (previous, next)
The Following 17 Users Say Thank You to fenchai For This Useful Post: [ View ] Gift fenchai Ad-Free
 
 
9th March 2016, 06:42 PM |#2  
lalitkhokhar's Avatar
Member
Flag rohtak
Thanks Meter: 3
 
More
i did all steps and i am using musixmatch player
My proximity sensor is on but tracks do not change
9th March 2016, 07:37 PM |#3  
fenchai's Avatar
OP Senior Member
Thanks Meter: 73
 
More
Quote:
Originally Posted by lalitkhokhar

i did all steps and i am using musixmatch player
My proximity sensor is on but tracks do not change

Make sure on the Ifs tasks you have %SCREEN ~ off it means this can only work if your screen is off :3 (forgot to put % before SCREEN)
9th March 2016, 08:48 PM |#4  
Followed the steps, everything works perfectly, thank you very much
10th March 2016, 12:30 AM |#5  
fenchai's Avatar
OP Senior Member
Thanks Meter: 73
 
More
Quote:
Originally Posted by SoloMid Hazard

Followed the steps, everything works perfectly, thank you very much

Glad it worked for you
11th March 2016, 08:48 PM |#6  
Member
Flag St. Louis
Thanks Meter: 9
 
More
That's pretty frikkin' cool!
Tried it and it works like a champ. It's like having the Force... This is not the song I'm looking for!
I have an OBDII device in my car connected to bluetooth. How do I use this feature only when I'm connected to the OBDII device?
12th March 2016, 12:06 AM |#7  
fenchai's Avatar
OP Senior Member
Thanks Meter: 73
 
More
Quote:
Originally Posted by brisseau

That's pretty frikkin' cool!
Tried it and it works like a champ. It's like having the Force... This is not the song I'm looking for!
I have an OBDII device in my car connected to bluetooth. How do I use this feature only when I'm connected to the OBDII device?

Well, If it uses Bluetooth, just use tasker to create a profile state on Bluetooth, select the current Bluetooth device. Then for the task of the profile link it to the the task (Track Changer Yes) that activates the 3 profiles, Prox 1, prox 0 and prev and next. As simple as that I recommend you set the exit profile to Track Changer No, So your music does not changes in your pocket or outside of Bluetooth.

**Remember that I set it to only work on screen off so it is not activated accidentally**
13th March 2016, 10:53 AM |#8  
Junior Member
Thanks Meter: 0
 
More
im not able to activate all profiles at once
either prox=0 is active or the other two
13th March 2016, 11:52 AM |#9  
lalitkhokhar's Avatar
Member
Flag rohtak
Thanks Meter: 3
 
More
Quote:
Originally Posted by fenchai

Make sure on the Ifs tasks you have %SCREEN ~ off it means this can only work if your screen is off :3 (forgot to put % before SCREEN)

Still not working
I am using cm12.1 does it work in this rom
13th March 2016, 10:56 PM |#10  
fenchai's Avatar
OP Senior Member
Thanks Meter: 73
 
More
Quote:
Originally Posted by sajjadirn

im not able to activate all profiles at once
either prox=0 is active or the other two

Before trying this you need to know the basics of using Tasker, the switcher needs to be "ON" on all 3 profiles.

If by Active you mean the green color, it changes from Prox 0 to Prox 1 depending on your proximity sensor. That is supposed to happen.

To try this, just switch all 3 profiles to ON and turn off your screen have music playing, and move your hand to the proximity sensor.
13th March 2016, 10:57 PM |#11  
fenchai's Avatar
OP Senior Member
Thanks Meter: 73
 
More
Quote:
Originally Posted by lalitkhokhar

Still not working
I am using cm12.1 does it work in this rom

It should work on all roms, please check the requirements.

check if Prox 1 and 0 turns to green and grey, if it does, it should work, if it doesnt, you have something wrong on your side.
The Following User Says Thank You to fenchai For This Useful Post: [ View ] Gift fenchai Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes