[Android] Saving data – SharedPreferences

SharedPreferences is a pure String file stored in the application folder, it is used to store local data without connecting to a server.

 

For both Save & Load, we need to implement:

Saving into SharedPreferences:

Loading from SharedPreferences: