title: App has violated self enforced strict mode violation
body: <p>I am displaying the files in listview from sdcard in my application. I am doing this in AsyncTask. When I click on an item(file) in the listview it gives the following error</p>
  
  <pre><code>11-28 09:39:40.426  26402-26402/app.comser D/StrictMode﹕ StrictMode policy violation; ~duration=3 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=23 violation=2
              at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1137)
              at libcore.io.BlockGuardOs.stat(BlockGuardOs.java:292)
              at java.io.File.isDirectory(File.java:524)
              at customize.FilesExplorer$2.onItemClick(FilesExplorer.java:120)
              at android.widget.AdapterView.performItemClick(AdapterView.java:300)
              at android.widget.AbsListView.performItemClick(AbsListView.java:1143)
              at android.widget.AbsListView$PerformClick.run(AbsListView.java:3044)
              at android.widget.AbsListView.onTouchUp(AbsListView.java:3845)
              at android.widget.AbsListView.onTouchEvent(AbsListView.java:3617)
              at android.view.View.dispatchTouchEvent(View.java:8393)
  </code></pre>
  
  <p>I have added the Async task file code</p>
  
  <pre><code> class FilesList_AsyncTask extends AsyncTask&lt;Void,Integer,String&gt;
      {
          File file;
          FilesList_AsyncTask(File file)
          {
              this.file = file;
          }
          @Override
          protected String doInBackground(Void... params)
          {
              System.out.println("-----------" + file);
              File[] filesArray = null;
  
              filesList=new ArrayList&lt;File&gt;();
              fileNamesList=new ArrayList&lt;String&gt;();
  
      /*
       * If the selected File is directory and has any files add them to File type of array
      */
              if(file.isDirectory())
              {
                  filesArray=file.listFiles();
                  selectedFolder=file;
              }
  
          /*
           * If the File array has any items, add the filenames and files of the items to corresponding arraylist.
           * fileNamesList contains names of files in the folder.
           * filesList contains paths of the files in the folder.
          */
              if(filesArray!=null)
              {
                  for (int i = 0; i &lt; filesArray.length; i++)
                  {
                      fileNamesList.add(filesArray[i].getName());
                      filesList.add(filesArray[i]);
                      getFileExtension(filesArray[i].getName(),filesArray[i]);
                      // System.out.println("=================="+filesArray[i]);
                  }
                  Log.d("filenames size...", fileNamesList.size() + "");
                  if(fileNamesList.size()&gt;0)
                  {
                      filesDialog(fileNamesList, filesList);
                  }
                  else
                  {
                      Toast.makeText(FilesExplorer.this, "No Sub Items Available", Toast.LENGTH_SHORT).show();
                  }
              }
              return null;
          }
      }
  </code></pre>
  
  <p>Thanks in advance</p>