Code example for AppStateClient

Methods: connect

0
	protected void onStart() { 
		super.onStart(); 
		 
		if (!connecting) {
			connecting = true;
			appStateClient.connect();
		} 
	} 
 
	@Override 
	protected void onStop() { 
		appStateClient.disconnect();
		 
		super.onStop(); 
	} 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.main, menu);
		return true; 
	}