Why getting the Instance of SharedPreferences is an async function? Is it a good practice to cache the instance?

后端 未结 0 1683
名媛妹妹
名媛妹妹 2020-11-28 20:06

I wonder why is SharedPreferences.getInstance() an async function?! I want to cache the instance in a static variable and use it to store settings

相关标签:
回答
  • 消灭零回复
提交回复
热议问题