网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
4、在Android的Handler实例中,下列表示发送Handler消息的方法是()
A.message()
B.HandleMessage()
C.dispatchMessage()
D.sendMessage()
参考答案和解析
HandleMessage()
更多 “4、在Android的Handler实例中,下列表示发送Handler消息的方法是()A.message()B.HandleMessage()C.dispatchMessage()D.sendMessage()” 相关考题
考题
在android中,发送邮件时,可用的action是()。A、android.intent.action.MAINB、Intent.ACTION_SENDC、android.intent.action.MAILD、Intent.ACTION_MAIL
考题
下面关于Android说法错误的是()A、Android采用单线程模型B、Android会默认会为线程创建一个关联的消息队列C、Handler会与多个线程以及该线程的消息队列对应D、程序组件首先通过Handler把消息传送给Looper,Looper把消息放入队列
考题
以下关于Handler机制原理的说法,错误的是()A、Android提供了Handler和Looper来满足线程间的通信。B、Handler机制是遵循先进后出的原则。C、Looper类用来管理待定线程内对象之间的消息交换(MessageExchange),而通过Handler对象可以与Looper进行沟通,以便push新消息到MessageQueue里面,或者接收Looper从MeaagesQueue取出的消息。D、UIThread通常就是MainThread,而Android启动程序的时候就会替它建立一个MessageQueue。
考题
setOnTouchEvent设置返回值为true和false有何区别()A、没有区别,都能对事件进行监听B、设置为true时只能在移动时获得一次监听事件,false则可以多次C、返回true表示这个消息已经被处理结束,后续的handler不再接收到这个消息D、设置为false是,在处理一次监听事件后,系统将抛弃该次事件
考题
关于线程说法不正确的是()。A、在android中,我们可以在主线程中,创建一个新的线程B、在创建的新线程中,它可以操作UI组件C、新线程可以和Handler共同使用D、创建的Handler对象,它隶属于创建它的线程
考题
You create a Web site that stores users' active themes in user profile objects. You need to apply users' preferred themes when they log on to the Web site. What should you do? ()A、In the InitComplete event handler, set the Theme property of the Page object based on the user profile.B、In the PreLoad event handler, set the Theme property of the Page object based on the user profile.C、In the OnLoad event handler, set the Theme property of the Page object based on the user profile.D、In the PreInit event handler, set the Theme property of the Page object based on the user profile.
考题
当Stop、Main和Abort Handler运行结束后Check Handler的条件满足或发出Reset命令,SCM将运行()。A、Stop HandlerB、Check HandlerC、Abort HandlerD、Hold Handler
考题
You are creating a Windows Forms application by using the .NET Framework 3.5. You plan to develop a new control for the application.You need to ensure that the control extends the TreeView control by adding a custom node tag and a highlight color.What should you do?()A、Override the OnPaint method.B、Write a code segment in the DrawNode event handler to specify the highlight color.C、Set the DrawMode property of the control to OwnerDrawAll, and then implement a custom DrawNode event handler.D、Set the DrawMode property of the control to OwnerDrawText,and then implement a custom DrawNode event handler.
考题
You are creating a Windows Forms application by using the .NET Framework 3.5. The application displays employee names by using the TreeView control. You need to implement the drag and drop functionality in the TreeView control.Which two actions should you perform?()A、Set theAllowDrag property to true.Create an event handler for the DragOver event.B、Set theAllowDrag property to true.Create an event handler for the ItemDrag event to call the DoDragDrop method.C、Set theAllowDrag property to true.Create an event handler for the DragEnter event to call the DoDragDrop method .D、Create an event handler for the DragDrop event to handle the move or copy by itself.E、Create an event handler for the DragEnter event to handle the move or copy by itself.
考题
单选题setOnTouchEvent设置返回值为true和false有何区别()A
没有区别,都能对事件进行监听B
设置为true时只能在移动时获得一次监听事件,false则可以多次C
返回true表示这个消息已经被处理结束,后续的handler不再接收到这个消息D
设置为false是,在处理一次监听事件后,系统将抛弃该次事件
考题
单选题下面关于Android说法错误的是()A
Android采用单线程模型B
Android会默认会为线程创建一个关联的消息队列C
Handler会与多个线程以及该线程的消息队列对应D
程序组件首先通过Handler把消息传送给Looper,Looper把消息放入队列
考题
单选题You create a Web site that stores users' active themes in user profile objects. You need to apply users' preferred themes when they log on to the Web site. What should you do? ()A
In the InitComplete event handler, set the Theme property of the Page object based on the user profile.B
In the PreLoad event handler, set the Theme property of the Page object based on the user profile.C
In the OnLoad event handler, set the Theme property of the Page object based on the user profile.D
In the PreInit event handler, set the Theme property of the Page object based on the user profile.
考题
单选题我们都知道Handler是线程与Activity通信的桥梁,如果线程处理不当,你的机器就会变得更慢,那么线程销毁的方法是()A
onDestroy()B
onClear()C
onFinish()D
onStop()
考题
单选题关于线程说法不正确的是()。A
在android中,我们可以在主线程中,创建一个新的线程B
在创建的新线程中,它可以操作UI组件C
新线程可以和Handler共同使用D
创建的Handler对象,它隶属于创建它的线程
考题
多选题A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed. Which two are true? ()AA element in the echo tag LTD must have the value JSPBThe echo tag handler must define the setAttribute (String key, String value) methodCThe true element must appear in the echo tag TLDDThe class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interfaceEThe class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface
考题
单选题Which technique retrieves the error number when explicit DML fails?()A
SQLCODE in an On-Error trigger. B
SQLCODE in an exception handler. C
DBMS_ERROR_CODE in an On-Error trigger. D
DBMS_ERROR_CODE in an exception handler.
考题
单选题以下关于Handler机制原理的说法,错误的是()A
Android提供了Handler和Looper来满足线程间的通信。B
Handler机制是遵循先进后出的原则。C
Looper类用来管理待定线程内对象之间的消息交换(MessageExchange),而通过Handler对象可以与Looper进行沟通,以便push新消息到MessageQueue里面,或者接收Looper从MeaagesQueue取出的消息。D
UIThread通常就是MainThread,而Android启动程序的时候就会替它建立一个MessageQueue。
考题
填空题在()版本以后的OUTDOOR不需要再另行安装HANDLER软件
热门标签
最新试卷