Often an app needs to save user preferences or related information. This can be easily saved in the device internal memory as a persistent file. This file can be used to read and write as required. In the sample code, we define a class called UserData which stores and retrieves various data fields. The actual purpose of the fields is …
↧