title: Error:(42, 16) error: incompatible types required: Loader<List<String>> found:FileLoader
body: <p>I'm trying to use the <code>LoaderManager</code> in my code however I'm getting an incompatible types error:</p>
  
  <pre><code>      @Override
        public Loader&lt;List&lt;String&gt;&gt; onCreateLoader(int id, Bundle args) {
           return new FileLoader(MainActivity.this);
        }
  </code></pre>
  
  <p>shouldn't this statement <code>return new FileLoader(MainActivity.this)</code> returns a Loader? And here is the implementation of the <strong>LoaderManager</strong>:</p>
  
  <pre><code>     public class FileLoader extends AsyncTaskLoader&lt;List&lt;String&gt;&gt;{
  
         public FileLoader(Context context){
            super(context);
         }
  
         @Override
         public List&lt;String&gt; loadInBackground() {
            .........
            ........             
            return listFiles;
         }
      }
  </code></pre>