• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Saving Edittext upon return to activity

Change

Lurker
Jan 18, 2016
7
0
Hi all,

I am currently working on an application with a lot of editText objects (around 20) it all works great however upon exiting the fragment which holds the editText, or exiting the application all text is lost.

How would I go about saving the values until the application is shutdown or the user overrides those? Would I be using sharedpreferences or any other method?

Thanks in advance,
-Change
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones