Try something like this:

ToneGenerator toneGenerator = new ToneGenerator
(AudioManager.STREAM_VOICE_CALL, ToneGenerator.MAX_VOLUME>>1);
toneGenerator.startTone(ToneGenerator.TONE_DTMF_1);

On Nov 20, 10:53 pm, j <[EMAIL PROTECTED]> wrote:
> Yes Rimma's method works if the program wishes to playDTMFtones when
> the call connects.
>
> It also works if you replaced ";" with ",".
>
> My further question is: How can an Android program play outgoingDTMF
> tones in the middle of a phone conversation?  Is that possible?
>
> On Nov 9, 11:56 pm, "Rimma Sukhovsky" <[EMAIL PROTECTED]> wrote:
>
> > Intent mIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" +
> > phoneNumber + ";" + dtmfSequence));
>
> > On Thu, Nov 6, 2008 at 12:09 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:
>
> > > Hi,
>
> > > How do you do this ?
> > > ("adding theDTMFsequence to the dialed number)
>
> > > Thanks.
>
> > > On Oct 23, 4:13 pm, legerb <[EMAIL PROTECTED]> wrote:
> > > > I'm adding theDTMFsequence to the dialed number. This seems to work,
> > > > but when the call is established I'm getting a confirmation dialog
> > > > asking "Send the following tones?".
> > > > Is it possible to prevent this dialog from being shown? May be some
> > > > additional permissions? Though I didn't find any relevant...
> > > > Or is there a way to detect the dialog on screen in order to simulate
> > > > a key stroke?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to