SharedPreference

SharedPreferences

Difference between apply and commit:

apply is asynchronous and does not return status of operation in caller

(if operation fails you are not inform about it!)

At the time of call apply saves value first to memory then to storage

Commit is synchronous and save direvtly to storage memory, it return the status after writting, 

 © Xosrov 2016