title: File Input Stream not working on Api level 29
body: <p>I have a method that tries to extract m3u files, but it doesn't work at api level 29. I get the following error on the Logcat screen:</p>
  
  <pre><code>2019-10-03 20:46:53.165 32591-417/? E/Google: java.io.IOException: Cleartext HTTP traffic to mysite.tk not permitted
  </code></pre>
  
  <p>My Method:</p>
  
  <pre><code>@SuppressLint("StaticFieldLeak")
  class _loadFile extends AsyncTask&lt;String, Void, Boolean&gt; {
  
      @Override
      protected void onPreExecute() {
          super.onPreExecute();
          spinner.setVisibility(View.VISIBLE);
      }
  
      @Override
      protected Boolean doInBackground(String... strings) {
          try { //new FileInputStream (new File(name)
              is = new FileInputStream(new File(strings[0])); // if u r trying to open file from asstes InputStream is = getassets.open(); InputStream
              M3UPlaylist playlist = parser.parseFile(is);
              mAdapter.update(playlist.getPlaylistItems());
  
              return true;
          } catch (Exception e) {
              Log.d("Google", "_loadFile: " + e.toString());
              return false;
          }
      }
  
      @Override
      protected void onPostExecute(Boolean aBoolean) {
          super.onPostExecute(aBoolean);
          spinner.setVisibility(View.GONE);
      }
  }
  </code></pre>
  
  <p><strong>EDİT:</strong></p>
  
  <p>I gave ClearText permission, but a new error appeared.</p>
  
  <pre><code>Google: _loadFile: java.io.FileNotFoundException: /storage/emulated/0/Netuptv/data.m3u: open failed: ENOENT (No such file or directory)
  </code></pre>
  
  <p><strong>EDİT:</strong></p>
  
  <p>My file path. I think the problem is here. But I don't have the information to solve it.</p>
  
  <pre><code>   static final File DEFA = Environment.getExternalStorageDirectory();
      public static final File dir = new File(DEFA.getPath() + "/Netuptv");
      static final File filepath = new File(dir.getPath() + "/data.m3u");
  </code></pre>