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:

Kenny
3 days ago
I'm going with A. The question mentions that the app has two activities, so tapping the button should open the SecondActivity layout.
upvoted 0 times
...
Kelvin
22 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
Heike
2 days ago
Yeah, I think so too. It doesn't seem to be opening a new activity.
upvoted 0 times
...
Evangelina
2 days ago
I think the correct answer is C.
upvoted 0 times
...
Beatriz
3 days ago
I agree, it looks like the code snippet is just re-opening the same MainActivity layout.
upvoted 0 times
...
...
Telma
24 days ago
I'm not sure, but I think it moves the 'Hello' message to Second Activity layout.
upvoted 0 times
...
Gail
28 days ago
I believe it re-opens the same MainActivity layout.
upvoted 0 times
...
Alton
29 days ago
I think it opens SecondActivity layout.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77