Code example for AsyncTaskLoader

Methods: onStartLoading

	protected void onStartLoading() { 
		Log.d(TAG, "onStartLoading()");
		//get model 
		Model model = Model.getInstance();
		//get movies from model 
		List<ITunesMovie> movies = model.getMovies();
		//if movie list is empty 
		if (0 == movies.size()) {
			Log.d(TAG, "No movie found in model, downloading top list from iTunes...");
			//start downloading movie list from iTunes 
		} else { 
			Log.d(TAG, "Delivering movies...");
			//deliver movies to adapter 
Stop searching for code, let great code find you!  Add Codota to your java IDE