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?
Fill in the blank space in the following sentence with the correct choice: The..................... to arranges widgets in positions relative each other.
The following Android code will show the small popup message "Message saved as draft" for 3.5 seconds, and then automatically disappears: Toast.makeText(this, "Message saved as draft". Toast.LENGTH_LONG).show()
The following Android code displays a Toast message. Which of the following is the correct parameter to replace Toast.xyz in this line of code? Toast.makeText(this,"Message saved as draff ,Toast.xyz).show()
Check the following image, and then select which of the following choices defines the Infer Constraints" button of the Android Studio tool bar?
The code snippet below displays a menu which is illustrated in another image. The emulator image displays a menu that contains three items, but in the code file none of these menu items are available. Where do these items come from?