• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

getAssets().openFd() throw exception

ottersss

Lurker
Jul 31, 2023
4
0
Hello all,
I place 2 files in assets folder
  • res.bin (650 MB)
  • res_LITE.bin(200 MB)
Then i use getAssets().openFd("filename") to load these files, but i have a trouble.
  • In Android version 8,9,10,11,12,13: It was fine
  • In Android version 6,7 (Nexus 6 - Android 6.0.1, Samsung J2 Pro - Android 7.1.1):
    • For "res_LITE.bin": Load success
    • For "res.bin": I got an exception "java.io.FileNotFoundException: res.bin"
Can anyone please explain why it thow exception? (I guess cause of large file but I'm not found information about that)
Thanks a lot! :)
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones