0

I am currently working on an app, where users enter data in given editText fields for one row and add the data to database.

In case of multiple rows (e.g. 50) to add, I want to allow a user to supply data through text files in specific format with delimeters.

How do I select the file or get file path of that text file supplied by the user and then use it in my app to add the data to database?

Ken Y-N
  • 14,644
  • 21
  • 71
  • 114

1 Answers1

0

How can I read a text file from the SD card in Android?

How to read text file in Android?

Android read text raw resource file

check these answers for how to load file to your application. Regarding saving inputs to database you can use classic for loop and go through every row and save it to database

Djaf
  • 256
  • 1
  • 6