Flump9
Flump9

Reputation: 1

How to save android text entered by the user?

For my newest app it it one that will save multiple EditTexts where the user can enter stuff.Like say if it was a note app,how would i get them to save?

Upvotes: 0

Views: 1595

Answers (2)

eplewis89
eplewis89

Reputation: 112

Check out how to store preferences with android's "SharedPreferences":

http://www.javacodegeeks.com/2011/01/android-quick-preferences-tutorial.html

This way you can indefinitely store whatever you're working with as a string, object, etc. Also, you can check out how to work with android's SQLite Database, which might be harder to figure out when you start working with it, but it gets easier over time.

Upvotes: 0

Peter Knego
Peter Knego

Reputation: 80340

There are multiple ways to store data on Android. Read about data storage.

In your case you might have multiple text records with some metadata (time when created, etc..), so I'd recommend the database.

Upvotes: 4

Related Questions