Load a simple text file in Android Studio

后端 未结 3 851
-上瘾入骨i
-上瘾入骨i 2020-12-05 00:16

Got a brand new project using Google\'s new Android Studio IDE.

I\'m trying to load a simple text file using an InputStreamReader. I\'m getting a file n

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 01:00

    1. Step 1: Open in Name_Project-Name_Project.iml file.
    2. See the line : option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets"
    3. Step 2: Create a sub-folder "assets" in main folder.
    4. Step 3: Put file in this folder.
    5. Step 4: Load it. Done.

提交回复
热议问题