使用Editor接口对象编辑一个key/value数据,对应的方法是editor._____(name”,”zhangsan”);编辑完成后记得要用editor.________()提交;
举一反三
- 在SharedPreferences的方法中,使用()方法可以得到一个编辑器Editor对象,然后通过这个Editor对象存储数据。 A: editor() B: getEditor() C: edit() D: getEdit ()
- 在SharedPreferences的方法中,使用( )方法可以得到一个编辑器Editor对象,然后通过这个Editor对象存储数据。
- 使用Editor对象操作完数据后,一定要调用apply()方法进行数据提交,否则所有操作不生效。( )
- 要编辑SHaredPreferences中的内容不需要用到editor对象
- 在SharedPreferences的方法中,使用()方法可以得到一个编辑器Editor对象 A: editor() B: getEditor() C: edit() D: getEdit()