单项选择题在activity中实例化SharedPreferences是下面哪个?()
A.newSharedPreferences()
B.SharedPreferences.newInstance()
C.SharedPreferences.getInstance()
D.getSharedPreferences()
您可能感兴趣的试卷
你可能感兴趣的试题
4.单项选择题对Fragment操作的常用方法中不包含()。
A.update()
B.add()
C.commit()
D.remove()
5.单项选择题Android中提供了FragmentManager类来管理Fragment,提供了()类来管理事务。
A.FragmentTransaction
B.Fragment
C.FragmentManager
D.FragmentService
6.单项选择题实现Fragment需要继承的接口类正确的是()。
A.Activity
B.View
C.Service
D.FragmentActivity
7.单项选择题在Android中,还支持继承样式的功能,只需要在标记中使用()属性进行设置即可。
A.id
B.Parent
C.text
D.Layout_width
8.单项选择题AndroidStudio默认创建的颜色资源文件是()。
A.resources.xml
B.colors.xml
C.values.xml
D.string.xml
9.单项选择题Android工程中存放字符串的xml资源文件的根节点是()。
A.item
B.root
C.string
D.resources
10.单项选择题给对话框添加“NO“按钮的方法是()。
A.setTitle()
B.setNegativeButton()
C.setPositiveButton()
D.setIcon()
最新试题
广播之间传递数据需要用到的组件是()。
题型:单项选择题
在FrameLayout中,子控件是通过()来绘制的。
题型:单项选择题
Android中提供了FragmentManager类来管理Fragment,提供了()类来管理事务。
题型:单项选择题
当需要一个控件来用作音乐播放进度条时,下列哪种控件最适合?()
题型:单项选择题
对Fragment操作的常用方法中不包含()。
题型:单项选择题
给对话框添加“YES“按钮的方法是()。
题型:单项选择题
用于设置消息提示的页边距的方法是()。
题型:单项选择题
使用MyDBHelper类创建的数据库对象存放在()文件夹中。
题型:单项选择题
Android Studio会根据()中配置的规则,分析源代码文件,执行检查。
题型:填空题
给对话框添加“NO“按钮的方法是()。
题型:单项选择题