title: How to monitor SIM state change
body: <p>I'd like to be able to do some stuff when the SIM state change, i.e. play a sound when SIM PIN is required, but I think there are no Broadcast events that can be intercepted by a broadcast receiver for this... registering for <em>android.intent.action</em>.PHONE_STATE does only tell you when the CALL-STATE changes.. An alternative can be starting a service that registers a <em>PhoneStateListener</em> and reacts upon a LISTEN_SERVICE_STATE (when the state is OUT-OF-STATE it can get the SIM state from the <em>TelephonyManager</em> and look if the state is SIM_STATE_PIN_REQUIRED). So, my questions are:</p>
  
  <p><strong>1)</strong> Is there any broadcast intent that I can use to intercept a SIM state change or a Service State change?</p>
  
  <p><strong>2)</strong> is it a bad idea to install a <em>PhoneStateListener</em> within a Service and use it to deliver intents to the Service itself upon the notification of a phone state changed received by the <em>PhoneStateListener</em>?</p>