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

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'')

AND-801 PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now AND-801 pdf
Get 65% Discount on All Products, Use Coupon: "ac4s65"