Description:
Below method will play '1' DTMF tone for 2 seconds.
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_1, 2000);
}
* 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_1, 2000);
}
hey dude, Can any one post the complete code of tone generator. So that i can understand it completely please...
ReplyDelete