English, asked by pranitaj911, 3 months ago

3. Fill-in-the-blanks
Enter one or more words to complete the sentence.
A(n) Fill in the blank...
is a piece of data passed between activities when launching an intent.​

Answers

Answered by ramrajrana9034
1

Answer:

enter one or more words to complete the sentence a fill in the blanks is a piece of data passed between activities when launching at intent

Answered by stefangonzalez246
0

Ways of passing data to another activity.

  • Create a new explicit or implicit intent object in the source activity.
  • Call the intent.putExtra (String key, Object data) method to store the data.
  • Call the startActivity (intent) method on the source activity to pass the intent to the Android OS.
  • Call the getIntent () method on the target activity.  
  • Use intent.getStringExtra (string key) to get the transferred data.

Ways of Getting the response result data from the target activity.

  • Create a new explicit or implicit intent object in the source activity.
  • Call the retention.putExtra (String key, Object data) method to store the data.
  • Call the startActivityForResult (Intent intent, int requestCode) method in the source activity to pass the intent to the Android OS. Create a new intent object for the target activity.
  • Use intention.putExtra (string key, object data) to set the return result data to an intent.
  • Call setResult (RESULT_OK, Intent) to set the return intent on the Android OS.

#SPJ2

Similar questions