How to stop phone ringing when play (speak) caller name and then phone ringing again
<p>I want to speak caller name when phone is ringing. I know how to get caller incoming number with his name</p>

<pre><code>String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);
        incomingNumber = intent.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER);

        Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(incomingNumber)); 
        Cursor cursor = context.getContentResolver().query(uri, new String [] {PhoneLookup.DISPLAY_NAME}, null, null, null);

        if (cursor.moveToFirst()) {
            callerName = cursor.getString(0);
        }

        Log.d(TAG, "Display name: " + callerName);
</code></pre>

<p>i know how to listen with <code>android.intent.action.PHONE_STATE</code> and catch it when phone start ringing.</p>

<p>I also know how to speak caller name with <code>TextToSpeech.OnInitListener</code> but i am having problem how to stop ringing and play caller name and then start ringing again.</p>

<p>How to stop ringing until caller name is not played? I am searching but i can't find solution.</p>
