InputStream from Assets folder on Android returning empty

后端 未结 3 1749
盖世英雄少女心
盖世英雄少女心 2021-01-02 15:04

I\'m not getting any exceptions, but when I run...

InputStream deckFile = context.getAssets().open(\"cards.txt\");

Then, deckFile.read() r

3条回答
  •  日久生厌
    2021-01-02 15:30

    The problem was that my file was too big, and was being compressed because of it's ".txt" extension. By renaming the file to a format that is normally compressed, ".mp3", there was no issue

提交回复
热议问题