title: Folioreader error in android studio | Cannot Open epub file it needs storage access ! |
body: <p>When I run the code the folioreader screen appear for a second then it disappears and this message appears</p>
  <p><a href="https://i.stack.imgur.com/g6EGV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g6EGV.png" alt="The toast message" /></a></p>
  <ul>
  <li>Java Code</li>
  </ul>
  <pre><code>public class PdfReader extends AppCompatActivity {
  @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_pdf_reader);
  
          FolioReader folioReader = FolioReader.get();
          folioReader.openBook(&quot;file:///android_asset/test.epub&quot;);
  }
  }
  
  </code></pre>
  <ul>
  <li>Manifest</li>
  </ul>
  <pre><code>&lt;uses-permission android:name=&quot;android.permission.ACCESS_WIFI_STATE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot;
          android:maxSdkVersion=&quot;32&quot; /&gt;
  
      &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;
          android:maxSdkVersion=&quot;29&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.MANAGE_EXTERNAL_STORAGE&quot;
          tools:ignore=&quot;ScopedStorage&quot; /&gt;
  </code></pre>