Q: 9
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?


Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.