-2

My app can access a registration form via the android activity. My question is, how to save it to a text file after a user filled data to the form? I want to save in the text file the data inputted by the user, for instance:

Address: User address here City: User City Province: User Province here Zip: 4342343 Phone: 4534534534 What is your biggest regret in your life? None.

2 Answers2

0

Text files are not the best solution when it comes to persist data. You have plenty of choices, being the most common of all:

  • shared preferences
  • android sqlite database

Some usefull links tho:

You didn't provide any details behind what you want to acquire. But if you really need to use text files, check @ojonugwa ochalifu link

Community
  • 1
  • 1
johnny_crq
  • 4,291
  • 5
  • 39
  • 64