Code example for ToneGenerator

Methods: stopTone

0
        		switch(event.getAction()) {
        		case MotionEvent.ACTION_DOWN:
        			mytone.startTone(ToneGenerator.TONE_DTMF_S);
        			break; 
        		case MotionEvent.ACTION_UP:
        			mytone.stopTone();
        			break; 
        		} 
        		 
        		return true; 
        	} 
        }); 
         
    } 
     
 
}