【单选题】
MediaPlayer播放资源前,需要调用哪个方法完成准备工作___
A. setDataSource
B. prepare
C. begin
D. pause
查看试卷,进入试卷练习
微信扫一扫,开始刷题
答案
B
解析
暂无解析
相关试题
【单选题】
☆处理菜单项单击事件的方法不包含___
A. 使用onOptionsItemSelected(MenuItem item)响应
B. 使用onMenuItemSelected(int featureId ,MenuItem item)响应
C. 使用onMenuItemClick(MenuItem item)响应
D. 使用onCreateOptionsMenu(Menu menu)响应 //创建菜单
【单选题】
android中文件操作模式中表示只能被本应用使用,写入文件会覆盖的是___
A. MODE_APPEND
B. MODE_WORLD_READABLE
C. MODE_WORLD_WRITEABLE
D. MODE_PRIVATE
【单选题】
进度条中哪个属性是设置进度条大小格式的___
A. android:secondaryProgress
B. android:progress
C. android:max
D. style
【单选题】
☆下列用以显示一系列图像的是___
A. ImageView
B. Gallery
C. ImageSwitcher
D. GridView
【单选题】
表示下拉列表的组件是___
A. Gallery
B. Spinner
C. GridView
D. ListView
【单选题】
关于AlertDialog的说法不正确的是___
A. 要想使用对话框首先要使用new关键字创建AlertDialog的实例
B. 对话框的显示需要调用show方法
C. setPositiveButton方法是用来加确定按钮的
D. setNegativeButton方法是用来加取消按钮的
【单选题】
下列说法错误的是___
A. Button是普通按钮组件,除此外还有其他的按钮组件
B. TextView是显示文本的组件,TextView是EditText的父类
C. EditText是编辑文本的组件,可以使用EditText输入特定的字符
D. ImageView是显示图片的组件,可以通过设置显示局部图片
【单选题】
下列哪个是SqlLite下的命令___
A. shell
B. push
C. quit
D. keytool
【单选题】
下列关于如何使用Notification,不对的是___
A. notification需要NotificatinManager来管理
B. 使用NotificationManager的notify方法显示notification消息
C. 在显示Notification时可以设置通知时的默认发声,震动等
D. Notification中有方法可以清除消息
【单选题】
上下文菜单与其他菜单不同的是___
A. 上下文菜单项上的单击事件可以使用onMenuItemSelected方法来响应
B. 上下文菜单必须注册到指定的view上才能显示
C. 上下文菜单的菜单项可以添加,可以删除
D. 上下文菜单的菜单项可以有子项
【单选题】
拖动条组件是___
A. RatingBar
B. ProgressBar
C. SeekBar
D. ScrollBar
【单选题】
读取文件内容的首要方法是___
A. openFileOutput
B. read
C. write
D. openFileInput
【单选题】
关于隐式Intent正确的是___
A. android中使用IntentFilter 来寻找与隐式Intent相关的对象
B. 通过组件的名称寻找与intent相关联的对象
C. 隐式Intent更多用于在应用程序内部传递消息
D. 一个声明了IntentFilter的组件只能响应隐式Intent请求
【单选题】
多选框被选择事件通常用___
A. setOnClickListener
B. setOnCheckChangeListener
C. setOnMenuItemSelectedListener
D. setOnCheckedListener
【单选题】
下列不属于service生命周期的方法是___
A. onCreate
B. onDestroy
C. onStop
D. onStart
【单选题】
绑定Service的方法是___
A. ,bindService
B. , startService
C. ,onStart
D. ,onBind
【单选题】
android是如何组织Activity的___
A. 以栈的方式组式Activity
B. 以队列的方式组织Activity
C. 以树形方式组织Activity
D. 以链式方式组织Activity。
【单选题】
onPause什么时候调用___
A. 当界面启动时
B. 当onCreate方法被执行之后
C. 当界面被隐藏时
D. 当界面重新显示时
【单选题】
在Activity中,如何获取service对象___
A. 可以通过直接实例化得到。
B. 可以通过绑定得到。
C. 通过startService()
D. 通过getService()获取。
【单选题】
在表格布局中,android:collapseColumns="1,2"的含义是: ___
A. 在屏幕中,当表格的列能显示完时,显示1,2列
B. 在屏幕中,当表格的列显示不完时,折叠
C. 在屏幕中,不管是否能都显示完,折叠1、2列
D. 在屏幕中,动态决定是否显示表格。
【单选题】
创建Menu需要重写的方法是___
A. onOptionsCreateMenu(Menu menu、
B. onOptionsCreateMenu(MenuItem menu、
C. onCreateOptionsMenu(Menu menu)
D. onCreateOptionsMenu(MenuItem menu)
【单选题】
在使用SQLiteOpenHelper这个类时,它的哪一个方法是用来实现版本升级之用的___
A. onCreate()
B. onCreade()
C. onUpdate()
D. onUpgrade()
【单选题】
ScrollView中,可以直接包含多少个组件___
A. 三个
B. 两个
C. 一个
D. 无数个
【单选题】
关于适配器的说法正确的有___
A. 它主要是用来存储数据
B. 它主要用来把数据绑定到组件上
C. 它主要用来解析数据
D. 它主要用来存储xml数据
【单选题】
Matrix类的作用___
A. 可以存储缩小或放大比列
B. 存储文件中的图片信息
C. 存储资源中的图片信息
D. 存储内存中的图片信息
【单选题】
关于Activity说的法不正确的是___
A. Activity是为用户操作而展示的可视化用户界面
B. 一个应用程序可以有若干个Activity
C. Activity可以通过一个别名去访问
D. Activity可以表现为一个漂浮的窗口
【单选题】
下列关于Service的描述,正确的是___
A. Servie主要负责一些耗时比较长的操作,这说明Service会运行在独立的子线程中
B. 每次调用Context类中的StartService()方法后都会新建一个Service实例
C. 每次启动一个服务时候都会先后调用onCreate()和onStart()方法
D. 当调用了Context类中的StopService()方法后,Serviece中的onDestroy()方法会自动回调
【单选题】
激活Activity的方法是___
A. runActivity()
B. goActivity()
C. startActivity(、
D. startActivityForIn()
【单选题】
下列样式表定义正确的是___
A. <style name="text"><item name="android:textColor">#FF00FF</item></style>
B. <resources><style name=" android:textColor ">#FF00FF </style></resources>
C. <resources><style name="text"><item name=" android:textColor">#FF00FF</item></style></resources>
D. <resources><style name="text"><item name="textColor">#FF00FF</item></style></resources>
【单选题】
创建Menu需要重写的方法是___
A. onOptionsCreateMenu(Menu menu、
B. onOptionsCreateMenu(MenuItem menu、
C. onCreateOptionsMenu(Menu menu)
D. onCreateOptionsMenu(MenuItem menu)
【单选题】
在使用SQLiteOpenHelper这个类时,它的哪一个方法是用来实现版本升级之用的___
A. onCreate()
B. onCreade()
C. onUpdate()
D. onUpgrade()
【单选题】
关于android进程,说法不正确的是___
A. 组件运行所在的进程,是由androidmanifest.xml决定,它可以指定该组件运行于哪个进程。
B. 当急需内存时,android会决定优先关闭那些空闲的进程
C. 背景进程是不为用户所见的Activity,但是还会有可能被用户看到,所以它不能被杀死
D. 可视进程一般不会不被系统所杀死
【单选题】
在Activity的生命周期中,当它从可见状态转向半透明状态时,它的哪个方法必须被调用___
A. onStop()
B. onPause()
C. onRestart()
D. onStart()
【单选题】
关于线程说法不正确的是___
A. 在android中,我们可以在主线程中,创建一个新的线程
B. 在创建的新线程中,它可以操作UI组件
C. 新线程可以和Handler共同使用
D. 创建的Handler对象,它隶属于创建它的线程
【单选题】
当Activity被消毁时,如何保存它原来的状态___
A. 实现Activity的onSaveInstanceState()方法
B. 实现Activity的onSaveInstance()方法
C. 实现Activity的onInstanceState()方法
D. 实现Activity的onSaveState()方法
【单选题】
关于Intent对象说法错误的是___
A. 在android中,Intent对象是用来传递信息的
B. Intent对象可以把值传递给广播或Activity
C. 利用Intent传值时,可以传递一部分值类型
D. 利用Intent传值时,它的key值可以是对象
【单选题】
在android中,ArrayAdapter类是用于___
A. 用于把数据绑定到组件上
B. 它能把数据显示到Activity上
C. 它能把数据传递给广播
D. 它能把数据传递给服务
【单选题】
activity对一些资源以及状态的操作保存,最好是保存在生命周期的哪个函数中进行___
A. onPause()
B. onCreate()
C. onResume()
D. onStart()
【单选题】
android 中下列属于Intent的作用的是___
A. 实现应用程序间的数据共享
B. 是一段长的生命周期,没有用户界面的程序,可以保持应用在后台运行,而不会因为切换页面而消失
C. 可以实现界面间的切换,可以包含动作和动作数据,连接四大组件的纽带
D. 处理一个应用程序整体性的工作
【单选题】
关于res/raw目录说法正确的是___
A. 这里的文件是原封不动的存储到设备上不会转换为二进制的格式
B. 这里的文件是原封不动的存储到设备上会转换为二进制的格式
C. 这里的文件最终以二进制的格式存储到指定的包中
D. 这里的文件最终不会以二进制的格式存储到指定的包中
推荐试题
【单选题】
在OSI参考模型中,网络层、数据链路层和物理层传输的数据单元分别是___。
A. 报文、帧、比特
B. 分组、报文、比特
C. 分组、帧、比特
D. 数据报、帧、比特
【单选题】
下面属于TCP/IP协议族中网络互联层协议的是___。
A. IGMP、UDP、IP
B. IP、DNS、ICMP
C. ICMP、ARP、IP
D. FTP、IGMP、SMTP
【单选题】
协议是______之间进行通信的规则或约定。___
A. 同一结点上下层
B. 不同结点
C. 相邻实体
D. 不同结点对等实体
【单选题】
Having practiced so many times, I feel very ___ of my ability to deliver the presentation successfully.
A. satisfied
B. incredible
C. confident
D. enthusiastic
【单选题】
The university decided to increase the ___ of the lecture hall, which has only 200 seats.
A. ability
B. capacity
C. facility
D. faculty
【单选题】
Smart phones – with cameras and color screens – can ___ images and data using wireless network technology.
A. evolve
B. depart
C. transmit
D. assure
【单选题】
Don’t take someone you get to know from the Internet to your house no matter how ___ he sounds.
A. bold
B. genuine
C. flexible
D. available
【单选题】
This kind of exercise will ___ your creativity, renew your energy, and unlock your potential.
A. bind
B. yield
C. embrace
D. stimulate
【单选题】
I’ll be happy to help you, ___ you won’t take up too much of my time.
A. as well as
B. as long as
C. as far as
D. as soon as
【单选题】
We teachers do not consider it wise to ___ our students with all sorts of exams, tests and quizzes.
A. load
B. annoy
C. sample
D. explore
【单选题】
He makes his students ___ knowledge through various kinds of interesting activities.
A. study
B. learn
C. achieve
D. acquire
【单选题】
For years, scientists have debated the ___ dangers of building another nuclear plant after the terrible accident.
A. available
B. potential
C. fascinating
D. genuine
【单选题】
It was a worthwhile attempt ___ it failed to achieve its purpose that we had hoped for.
A. in the end
B. now that
C. all at once
D. even though
【单选题】
Travel in space can be very exciting; ___, it can also be boring and lonely at times.
A. so
B. however
C. thus
D. therefore
【单选题】
Politicians should not ___ in business affairs that might affect their political judgment.
A. engage
B. embrace
C. depart
D. treasure
【单选题】
I wish to ___ a master’s degree in electric engineering after I graduate from college.
A. pledge
B. explore
C. pursue
D. approach
【单选题】
There is no greater importance ___ cultivating independence in children.
A. in
B. than
C. of
D. with
【单选题】
He has made it very clear ___ we should observe the new rules.
A. what
B. which
C. those
D. that
【单选题】
It was when I read his letter ___ I realized he had given me huge help.
A. that
B. then
C. before
D. after
【单选题】
Don’t worry too much, Jane. Your son ___ home already. Let’s go back and check it out.
A. returned
B. will return
C. has returned
D. may have returned
【单选题】
I believe friendship is an essential element of making a healthy, ___ life.
A. flexible
B. rewarding
C. wealthy
D. inquisitive
【单选题】
___ they have written about the behaviors of animals is hardly anything new.
A. That
B. This
C. What
D. Which
【单选题】
No other drugs are as good as this one; it must have been based on a(n) ___ formula (配方).
A. enormous
B. stimulating
C. unique
D. overwhelming
【单选题】
Mothers tend to be too ___ toward their children. They should let them see more of the worl D.
A. hopeful
B. protective
C. modest
D. encouraging
【单选题】
The investigation ___ evidence of a large-scale illegal trade in wild birds.
A. uncovered
B. outweighed
C. overwhelmed
D. evolved
【单选题】
Poor Laura! I feel so sorry for her. When she fell, she hurt her arm and, ___, broke her glasses.
A. in advance
B. in addition
C. over time
D. on the other hand
【单选题】
Showing some sense of humor can be a(n) ___ way to deal with some stressful situations.
A. genuine
B. available
C. effective
D. favorite
【单选题】
It will be worth the efforts even if you fail; the rewards you ___ will be great.
A. reap
B. boast
C. assure
D. cultivate
【单选题】
He suggested transporting the supplies by air. But it is absolutely ___, for it will cost too much.
A. unusual
B. uncertain
C. impractical
D. impressive
【单选题】
The newspaper didn’t mention the ___ of the damage caused by the fire.
A. range
B. level
C. extent
D. quantity
【单选题】
Do you ___ her novels as serious literature or as mere entertainment?
A. classify
B. notify
C. simplify
D. justify
【单选题】
He doesn’t ___ of buying a house this year because the bank has refused to lend him any money.
A. afford
B. make the most
C. run out
D. stand a chance
【单选题】
If you don’t ___ cooking today, we can go out to eat at the new restaurant.
A. would like
B. go on with
C. feel like
D. figure out、
【单选题】
Bullying (恃强欺弱) can ___ a climate of fear and anxiety in school, and prevent students from focusing on their schoolwork.
A. keep back
B. give rise to
C. feel like
D. make use of
【单选题】
Science can now ___ many things which were thought to be mysterious by ancient people.
A. care for
B. lay out
C. account for
D. set up
【单选题】
The school has ___ many after-class activity groups for the pupils to make their spare time more colorful.
A. set up
B. set off
C. set out
D. set down
【单选题】
When he was a small kid, he ___ from his peers because he could read fast and remember whatever he rea D.
A. showed off
B. worked out
C. stood out
D. straightened up
【单选题】
The fall in the number of deaths from heart disease is generally ___ improvements in diet.
A. put up with
B. attributed to
C. added to
D. replaced with
【单选题】
We can be partners for now, but ultimately you have to ___ to develop a new software for our project.
A. keep up
B. fire off
C. make sense
D. take the lead
【单选题】
Emotional Intelligence (情商) could be of practical use in many ___ such as how companies decide which job applicant to hire, how parents should raise their children, how schools should teach the students, and so on.
A. aspects
B. disciplines
C. structures
D. opportunities