Code example for ActionBarActivity

Methods: onCreate

0
	 
	private SettingsDatabaseHelper dbHelper;
	 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		 
		dbHelper = new SettingsDatabaseHelper(this);
	} 
	 
	@Override 
	protected void onStart() { 
		super.onStart(); 
		 
		Intent serviceIntent = new Intent(getApplicationContext(), ServerConnectionService.class);
		bindService(serviceIntent, this, 0);
	} 
	 
	@Override 
	protected void onStop() { 
		if(service != null) unbindService(this);