3

So, I have a txt file, and when my app starts, I want it to be added in the app directory. In other words, I want the txt file to be a part of the apk.

Thanks for you time!

Anisuzzaman Babla
  • 6,510
  • 7
  • 36
  • 53
user
  • 31
  • 4

1 Answers1

0

You can put text file in your asset folder.

  1. In Android Studio (1.0 & above), right-click on the enter image description here folder and navigate to the Assets Folder.

enter image description here

  1. On the next screen just click Finish.

enter image description here

It will create the assets folder in the main target source set.

enter image description here

Details and image: https://stackoverflow.com/questions/18302603/where-do-i-place-the-assets-folder-in-android-studio

Anisuzzaman Babla
  • 6,510
  • 7
  • 36
  • 53