Code example for AsyncTaskLoader

        List<ResourceRepository> resourceRepos;
        public ResourceRepoLoader(Context context) {
         * This is where the bulk of our work is done.  This function is 
         * called in a background thread and should generate a new set of 
         * data to be published by the loader. 
        @Override public List<ResourceRepository> loadInBackground() {
			Log.d(this.getClass().getName(), "Load in Background");
            return new CrossConnectServerService().getResourceRepos(); 
Experience pair programming with AI  Get Codota for Java