Code example for Ringtone

Methods: isPlayingstop

0
 
    public void term() 
        { 
        if (rt != null)
            { 
            if (rt.isPlaying())
                rt.stop();
            } 
 
        if (toast != null)
            toast.cancel();
        } 
 
    public void run () 
        { 
        String sText =(((lcv++ % 2) == 0)  ? "Help me!" : "I've fallen down!" );
        toast.setText(sText);
        toast.show();
        if (rt != null)
            rt.play();
Stop searching for code, let great code find you!  Add Codota to your java IDE