Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Store and retrieve arrayList from internal memory?

Tags:

java

android

I'm building a home replacement app. I need to store the ArrayList with the apps the user picked to show on the launcher in the internal memory. I mean the array mustn't be deleted when the app is closed.

I'm very close to finishing the app and I don't think I'll work a lot more on Java, I'm not a programmer so I just want the easiest way to do it. How can I store and retrieve an ArrayList in the internal memory?

like image 447
lisovaccaro Avatar asked Apr 19 '26 11:04

lisovaccaro


1 Answers

Use SharedPreferenes to store and retrieve the arrayList..

Check this link..

Save ArrayList to SharedPreferences

like image 118
Deepzz Avatar answered Apr 22 '26 01:04

Deepzz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!