I've programmed my phone to start playing music when headphones are unplugged and replugged in a couple seconds, necessitating the need to take out my phone out of my pockets. ^ω^ [It has already been programmed previously to pause music when headphones were unplugged.]