ObservableAdapter.java :  » Client » hinii » com » angelo » hiniid » widget » Android Open Source

Android Open Source » Client » hinii 
hinii » com » angelo » hiniid » widget » ObservableAdapter.java
/**
 * Copyright 2010 Mark Wyszomierski
 */

package com.angelo.hiniid.widget;

/**
 * Interface that our adapters can implement to release any observers they may
 * have registered with remote resources manager. Most of the adapters register
 * an observer in their constructor, but there is was no appropriate place to
 * release them. Parent activities can call this method in their
 * onPause(isFinishing()) block to properly release the observers.
 * 
 * If the observers are not released, it will cause a memory leak.
 * 
 * @date March 8, 2010
 * @author Mark Wyszomierski (markww@gmail.com), foursquare.
 */
public interface ObservableAdapter {
  public void removeObserver();
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.