I am in the process of developing an android app, and I need a way for the user to enter a Name and then save this name to a .txt file in the SD card. When the user adds another name, this file should be modified to include that name. I was thin开发者_StackOverflow中文版king of an array list, but I've been trying for some time on things to use but I'm not sure how. (I don't think an object output stream would work(?)). Also, I need the user to be able to read and access this file within the app.
Thanks in advance for the help.
Is there a certain reason why you are using a .txt file? I would suggest you use a SQLite database for this particular project.
EDIT: Here is the one of the best articles you can find on building SQLite in android.
Building a Database For Android
精彩评论