Code example for AsyncTaskLoader

0
	{ 
		private final String query;
		private List<Show> cachedResult;
 
		public SearchLoader(Context context, String query) {
			super(context);
 
			this.query = query;
			cachedResult = null;
		} 
 
		@Override 
		public List<Show> loadInBackground() {
			Client tvdbClient = new Client("25B864A8BC56AFAD");
 
			List<Show> results = tvdbClient.searchShows(query);
 
			return results;
		} 
 
Contextual code suggestions in your IDE  Get Codota for Java