AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 Exam - Question 76


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

(1)android.content.Context.sendBroadcast

(2)android.content.Context.startActivity

Show Answer
Correct Answer: C,D

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

1 comment
Sign in to comment
MmadiOption: D
Dec 31, 2022

D. Both methods are able to broadcast an Intent.