Exam AND-401 All QuestionsBrowse all questions from this exam
Question 76

Which of these is the correct explanation regarding the following methods?

(1)android.content.Context.sendBroadcast

(2)android.content.Context.startActivity

    Correct Answer: C

    Both methods are asynchronous. The sendBroadcast method is used to send a broadcast intent, which is handled asynchronously by the Android system. The startActivity method is used to start a new activity, which is also an asynchronous operation as it does not block the caller while the new activity is started.

Discussion
MmadiOption: D

D. Both methods are able to broadcast an Intent.