Sunday, 1 January 2012

DTMF Tone Generator Example

Description:

Below method will play '1' DTMF tone for 2 seconds.

    /**
     * Play 1 DTMF tone for 2 seconds.
     */

    public void PlayDtfmTone(){
        
        ToneGenerator toneGenerator= new   ToneGenerator(AudioManager.STREAM_DTMF,ToneGenerator.MAX_VOLUME);
        //this will play tone for 2 seconds.
        toneGenerator.startTone(ToneGenerator.TONE_DTMF_12000);
    
   }  
    

1 comment:

  1. hey dude, Can any one post the complete code of tone generator. So that i can understand it completely please...

    ReplyDelete