Note:You'll need to buy a really 'cheap on pocket' device to use it which doubles up as a Dust-Plug.. Or rather I should say, it's actually a Dust Plug that doubles up(or even more)..
I just now ordered it and it costed me only US$ 2.24 including shipping money
Waiting eagerly for it to arrive to me..
I'm not posting any links here to the device because I'm not sure as to whether it'll be an infringement of XDA's rules..
For those who're worried that it might get lost while using earphones-it has a solution to it too..
Last but not least, it couples up with Tasker..
Here's a quick video, the version of app is old here though, but it'll familiarize you with the device and the app itself-
It'll work for Android devices only.. Not sure about the minimum version of Android required though..