Code example for ListFragment

Methods: getListAdapter, onDestroy

0
	} 
 
	@Override 
	public void onDestroy() 
	{ 
		super.onDestroy(); 
 
		((CursorAdapter) getListAdapter()).getCursor().close();
		mDb.close();
	} 
 
	private class LoadLotteriesTask extends AsyncTask<Void, Void, Void>
	{ 
		private Cursor lotteriesCursor;
 
		@Override 
		protected Void doInBackground(Void... params)
		{ 
			lotteriesCursor = mDb.selectLotteries();
			lotteriesCursor.getCount();