I was about to do something like this for myself until I found this ,very useful, cheers!

Edit. testing on my device (galaxy s4) it doesn't seem to work however.. works perfectly on windows...