I want to make it so when one plugs in there headset, when doing whatever on there phone, not just begin on the app, a Notification icon appears in the Notification Area (Very top) I already have the Notification Icon code

So what I did was tried putting that Notification Icon code inside the case 1 so that when it detected that it was plugged in, it would run that. But it doesn't, instead I get a ton of errors. Here's a screenshot http://prntscr.com/1xblhb I just can't think of any other way to approach this, I've been stuck on this for so long. So if you could help me and try to say it in beginner terms it would mean the world to me. Thank you so much.