Code example for ListFragment

Methods: getLoaderManager, onStop

0
	}*/ 
	 
	@Override 
	public void onStop() { 
	    try { 
	      super.onStop(); 
 
	      if (this.myAdapter !=null){
	        this.myAdapter.getCursor().close();
	        this.myAdapter = null;
	      } 
	       
	      this.getLoaderManager().destroyLoader(0);
	       
	      /*if (this.mActivityListCursorObj != null) { 
	        this.mActivityListCursorObj.close(); 
	      }*/ 
 
	      super.onStop(); 
	    } catch (Exception error) {
	    	Log.d(TAG, "Error in stopping Adapter");
	    	 
	    }// end try/catch (Exception error) 
	  }// end onStop