用SharedPreferences存储存储数据,必须通过( )类实现。 A: Bundle B: putString C: ContentValues D: Editor
用SharedPreferences存储存储数据,必须通过( )类实现。 A: Bundle B: putString C: ContentValues D: Editor
向SharedPreferences提交已修改的数据,应当调用Editor类的( )方法。 A: getString() B: putString() C: commit() D: edit()
向SharedPreferences提交已修改的数据,应当调用Editor类的( )方法。 A: getString() B: putString() C: commit() D: edit()
在Editor的方法中,用于存储String类型参数的方法是() A: set() B: setString() C: put() D: putString()
在Editor的方法中,用于存储String类型参数的方法是() A: set() B: setString() C: put() D: putString()
下列选项中,属于Editor类中存储String类型参数的方法的是()。 A: set() B: put() C: getString() D: putString()
下列选项中,属于Editor类中存储String类型参数的方法的是()。 A: set() B: put() C: getString() D: putString()
存储数据 SharedPreferences sp = getSharedPreferences("data",MODE_PRIVATE); Editor editor = sp.edit(); editor.putString("name", "传智播客"); editor.putInt("age", 8); editor.commit(); 以上程序把name、age等信息保存到一个文件名为data.txt的文件中
存储数据 SharedPreferences sp = getSharedPreferences("data",MODE_PRIVATE); Editor editor = sp.edit(); editor.putString("name", "传智播客"); editor.putInt("age", 8); editor.commit(); 以上程序把name、age等信息保存到一个文件名为data.txt的文件中
以下代码能将信息正确写入文件的是()。(说明:editor是SharedPreferences编辑器对象) A: editor.putString("age",20); B: editor.putInt("age","20"); C: editor.putBoolean("flag",true); D: editor.putBoolean("flag","true");
以下代码能将信息正确写入文件的是()。(说明:editor是SharedPreferences编辑器对象) A: editor.putString("age",20); B: editor.putInt("age","20"); C: editor.putBoolean("flag",true); D: editor.putBoolean("flag","true");
用SQLite数据库存数据时调用insert( )方法,需要将数据存在数据集合( )类中后,再集体插入数据库。 A: ContentValues B: putString C: Editor D: Bundle
用SQLite数据库存数据时调用insert( )方法,需要将数据存在数据集合( )类中后,再集体插入数据库。 A: ContentValues B: putString C: Editor D: Bundle
Questions12toI5arebasedontheconversationyouhavejustheard. A: Editor and writer. B: Editor and reader. C: Editor and publisher. D: Colleagues.
Questions12toI5arebasedontheconversationyouhavejustheard. A: Editor and writer. B: Editor and reader. C: Editor and publisher. D: Colleagues.
You write a cover letter to______. A: Introduce yourself to the editor B: Introduce your paper to the editor C: Recommend reviewers to the editor D: Oppose reviewers to the editor
You write a cover letter to______. A: Introduce yourself to the editor B: Introduce your paper to the editor C: Recommend reviewers to the editor D: Oppose reviewers to the editor
You write a cover letter NOT to______. A: introduce your paper to the editor B: recommend reviewers to the editor C: introduce yourself to the editor D: oppose reviewers to the editor
You write a cover letter NOT to______. A: introduce your paper to the editor B: recommend reviewers to the editor C: introduce yourself to the editor D: oppose reviewers to the editor