Code example for ActionBarActivity

Methods: onSaveInstanceState

0
		handleIntent(intent);
	} 
	 
	@Override 
	protected void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
		if (query != null) outState.putString(SearchManager.QUERY, query);
	} 
	 
	private String query;
	private void search(String query) {
		this.query = query;
		search(); 
	} 
	private void search() { 
		final Context ctx = this;
		this.setTitle(query);
		new Thread(new Runnable() {
 
			@Override 
			public void run() {