Describe SharedPreference storage..
Ask by Anonymous User
Updated 18 Sep 2020
Here MyData is the name of XML file .It will be created automatically for you.
Public static final String DEFAULT=”N? A”;
DEFAULT is a String type user defined global variable.If the data is not saved in XML file and user click on load button then your application will not give the error. It will show message “No Data is found”. Here name and pass are same variables that I have used in MainActivity.