Launch music app when headphone is connected.....

INTENT USAGE....
https://snipt.net/Martin/android-intent-usage/