Code example for ActionBarActivity

Methods: onStart

0
	protected void onStart() { 
		if (!FreeRemoteApplication.spiceManager.isStarted()) { 
			FreeRemoteApplication.spiceManager.start(this);
		} 
 
		super.onStart(); 
		if (!hasRemoteCode()) { 
			askToDisplaySettings(); 
		} 
	} 
 
	@Override 
	protected void onDestroy() { 
		if (FreeRemoteApplication.spiceManager.isStarted()) 
			FreeRemoteApplication.spiceManager.shouldStop(); 
		super.onDestroy(); 
	} 
 
	@Override 
	protected void onSaveInstanceState(Bundle outState) {
		outState.putInt(SAVED_INSTANCE_TITLE, mTitle);