Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Whats the easiest way to save small amounts of data?

Tags:

android

I have an app that only requires the value of a textview field to be saved... what would be the most simple and efficient way to save such a small amount of data? Creating a database for this seems like overkill. would onSaveInstanceState be sufficient?

like image 604
Frank Bozzo Avatar asked Oct 05 '10 15:10

Frank Bozzo


People also ask

What is draining my data on Android phone?

Check to see which apps are using data. On many newer Android devices, you can go to “Settings” > “Data Usage” > “Cellular data usage“, then scroll down to see which apps are using the most data.


1 Answers

This sounds like a job for SharedPreferences.

like image 86
Yoni Samlan Avatar answered Sep 19 '22 12:09

Yoni Samlan