Which of the following are true?
Answers:
• startActivity and startActivityForResult can both be used to start a new activity from your activity class.
• Only startActivityForResult can be used to launch a new activity from your activity class.• startActivity(myIntent); and startActivityForResult(myIntent, -1); have the same result.
• startActivity(myIntent); and startActivityForResult(myIntent, 0); have the same result.
• When startActivity is used to launch a new activity from your activity class then your activity class gets notified when the new activity is completed.
• When startActivityForResult is used to launch a new activity from your activity class then your activity class gets notified when the new activity is completed.
No comments:
Post a Comment