Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Android Exam AND-801 Topic 8 Question 68 Discussion

Actual exam question for Android's AND-801 exam
Question #: 68
Topic #: 8
[All AND-801 Questions]

Assume you are developing an Android app which consists of two activities, MainActivity and SecondActivity. The following image includes part of MainActivity code. This file includes a button that has id "Mybutton". What does the following code snippet do if it is executed after the user taps on the button (id: Mybutton)?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Kelvin
6 days ago
Hmm, I think the correct answer is C. The code snippet seems to be refreshing the MainActivity layout, not opening a new activity.
upvoted 0 times
...
Telma
8 days ago
I'm not sure, but I think it moves the 'Hello' message to Second Activity layout.
upvoted 0 times
...
Gail
12 days ago
I believe it re-opens the same MainActivity layout.
upvoted 0 times
...
Alton
13 days ago
I think it opens SecondActivity layout.
upvoted 0 times
...

Save Cancel