How do we get access to the preference?

thanhthao

New member
How do we get access to the preference?
Answer
First you need to instantiate an instance of your shared preferences. SharedPreferences sharedPreferences = getSharedPreferences(“Settings”, Context. MODE_PRIVATE); The string Settings is the name of the settings file you wish to access.
 

Tìm kiếm

Back
Top