6. Save Grocery List when App is Closed | Extension

Опубликовано: 29 Июнь 2026
на канале: IJ Apps
4,939
68

In this extension of the tutorial series on ListViews in Android. we'll give our app the ability to save the contents of the grocery list when the user terminates the app, and then reload the saved grocery list when the app is relaunched.
You'll learn about onDestroy() and writing and reading from internal storage.

Grocery ListView App Playlist:    • ListView Tutorials | Grocery List App  
GitHub repo: https://github.com/IJ-Apps/Grocery-Li...

Instagram:   / ij_apps  
Join the IJ Apps Discord!   / discord  

New App on the Google Play Store!
https://play.google.com/store/apps/de...
The E-rrigation app allows you to save money and cut down water usage by optimizing sprinkler placement before you put the sprinkler system in place.
Check it out and leave a review!

Check out my Face Analyzer app on the Google Play Store: https://play.google.com/store/apps/de...

----------------
Subscribe to IJ Apps to stay up to date when new videos are released and share the channel with friends!

IJ Apps Website: https://ij-apps.wixsite.com/android

*IJ Apps GitHub Page: https://github.com/IJ-Apps
*Personal GitHub Page with Cool and Complex Projects: https://github.com/ishaanjav

0:00 Demo
0:45 1. Overview
1:17 2. Saving Grocery List (onDestroy())
3:20 3. Loading the Content into List
5:20 3a. Extracting the Items from the file
8:12 Final App Demo