I am trying to exercise a little control over the state of an icon in the status bar. I want to be able to do the following: