Save Products to a Cart for Checkout in Android Studio (AS 4.0 Tutorial #8)
Android’s SharedPreferences allows developers to save key value pair data to a phone’s internal storage, perfect for saving basic information about our customer’s cart. Our grocery store Android app will have capabilities to store information about the cart even if the user closes the app or powers down the device.
In this tutorial we’ll use Kotlin along with SharedPreferences and putString to store shopping cart data including what the user last placed in their cart.
Google’s documentation: https://developer.android.com/training/data-storage/shared-preferences
View code here: https://github.com/danielmalone/Android-Studio-4.0-Tutorial
Connect with me on Twitter! https://twitter.com/DanielMalone
Views :23197
android studio