Code example for Ringtone

Methods: stop

0
		super.onResume(); 
	} 
 
	@Override 
	protected void onPause() { 
		r.stop();
 
		super.onPause(); 
	} 
 
	public void onConfigurationChanged(Configuration newConfig) {
		super.onConfigurationChanged(newConfig);
 
		// Lock to portrait 
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
	} 
}