Code example for AsyncTaskLoader

0
	}; 
 
	private Map<String, String> result;
 
	public DocumentChooserLoader(Context context) {
		super(context);
	} 
 
	@Override 
	public Map<String, String> loadInBackground() {
		result = new HashMap<String, String>();
 
		try { 
			result.putAll(RecentDocumentsUtil.getRecentDocuments(getContext()));
		} catch (IOException e) {
			e.printStackTrace();
		} 
 
		String state = Environment.getExternalStorageState();
		if (Environment.MEDIA_MOUNTED.equals(state)
Experience pair programming with AI  Get Codota for Java