Code example for Ringtone

Methods: isPlayingstop

0
		if(mWakeLock.isHeld()){
			mWakeLock.release();
		} 
 
		if(mRingtone!=null){
			if(mRingtone.isPlaying()){
				mRingtone.stop();
				mRingtone=null;
			} 
		} 
 
		super.onPause(); 
	} 
 
 
 
	private synchronized void enableKeyguard() { 
		if (mKeyguardLock != null) {
			mKeyguardLock.reenableKeyguard();
			mKeyguardLock = null;
Experience pair programming with AI  Get Codota for Java