Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmasmnth

You have an Android application that consists of two activities (MainActivity and SecondActivity) and you...

You have an Android application that consists of two activities (MainActivity and SecondActivity) and you want to pass data in text field (ID: FirstNameJD) of MainAcitivity to SecondActivity. The passed data will appear in SecondActivity inside a TextView widget with Id: HelloMessageJD. You will use Intent to pass this data from MainActivity to SecondActivity. The Following two images include the Android code which will be written in MainActivity.kt and SecondActivity.kt files. Your data will not pass from MainActivity to SecondActivity due to a mistake in the code in SecodActivity.kt. Which of the following choices is a correct solution to make this app run correctly?

A.

Add startActivity(intent) to Secondryactivity.kt

B.

Replace getStringExtra("name") with putSiringExtra( "name") in SecondActiy.kt file

C.

You need to add an if statement to solve this issue in the two files

D.

Replace ''name'' with ''pass'' in intent.getSt4ingExtra( ''name'')

Android AND-801 Summary

  • Vendor: Android
  • Product: AND-801
  • Update on: Jul 27, 2025
  • Questions: 45
Price: $52.5  $149.99
Buy Now AND-801 PDF + Testing Engine Pack

Payments We Accept

Your purchase with ExamsVCE is safe and fast. Your products will be available for immediate download after your payment has been received.
The ExamsVCE website is protected by 256-bit SSL from McAfee, the leader in online security.

examsvce payment method