title: PhoneStateListener and service
body: <p>i have a phonestatelistener:
  how can i start service here?
  i tried:</p>
  
  <pre><code>startService(new Intent(this, TTS.class));
  </code></pre>
  
  <p>how ever it doent work for me</p>
  
  <pre><code>private PhoneStateListener mPhoneListener = new PhoneStateListener() {
  
            @SuppressLint("SdCardPath")
          public void onCallStateChanged(int state, String incomingNumber) {
  
             try {
              switch (state) {
              case TelephonyManager.CALL_STATE_RINGING:
                  //i want to start service
                  startService(new Intent(this, TTS.class));
  </code></pre>