I have a Samsung Galaxy SII Skyrocket. Everytime I unplug my headphones/auxiliary cord from my phone and plug it back in, the media volume gets lowered to about 60%, system-wide, regardless of media player. As much as I appreciate that Android is looking out for my hearing, I don't want it to do this. Any way to prevent the phone from lowering the volume of its own accord?
Condition: Headphones plugged
Where "audio level" in many cases (at least with Tasker) can be defined more specific (e.g. different levels for notification, alert, incoming call...) -- and "X" being the specific level you'd like it to have.
This done, everytime you plug your headphones in, you'll have the same media volume you've defined.
There's an Xposed module to fix that: http://repo.xposed.info/module/com.pyler.nosafevolumewarning
It does the trick for me on the Galaxy Nexus I have plugged into my sound system.