Code example for ActionBarActivity

Methods: onCreate

0
 
	protected ArrayList<Observable> mLstObservable;
 
	@Override 
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		mLstObservable = new ArrayList<Observable>();
	} 
 
	protected void addObservers() { 
		for (final Observable obs : mLstObservable) {
			obs.addObserver(this);
		} 
	} 
 
	protected void removeObservers() { 
		for (final Observable obs : mLstObservable) {
			obs.deleteObserver(this);
		} 
	}