Code example for Ringtone

Methods: isPlaying, stop

0
        } 
        return false; 
    } 
 
    private void stopRingtone() { 
        if (mRingtone != null && mRingtone.isPlaying()) {
            mRingtone.stop();
        } 
    } 
 
    @Click 
    void main_ok() { 
        Messager.sendMessage(Const.CHRIS_NUMBER, "Baby决定立刻起床"); 
         
        stopRingtone(); 
        finish();
    } 
 
    @Click(R.id.increase_minute) 
    void increaseDelayMinute() { 
        mDelayMinute++;