Code example for FragmentActivity

Methods: onStop

0
 
	@Override 
	protected void onStop() { 
		wakeLock.release();
		stop(); 
		super.onStop(); 
	} 
 
	public void stop() { 
		if (started) {
			sensorsManager.onStop();
			started = false;
		} 
	} 
 
	@Override 
	protected void onDestroy() { 
		super.onDestroy(); 
		pureDataManager.cleanup();
	} 
Connect your IDE to all the code out there  Get Codota for Java