To use activity preferences developer have to call function getPreferences (int mode) available in Activity class. They prefer using custom getSharedPreferences(String name,int mode). Developer doesn’t usually prefer using this even if they need only one preference file in Activity.It doesn’t require name as it will be the only preference file for this activity.Use only when one preference file is needed in Activity.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |