When we open another activity, we can send data to it by using an intent and putExtra. But what if we also want to get something back? This is what the startActivityForResult method is for. By opening our child activity with this method and overriding onActivityResult we can send data back to our parent activity after we set it with setResult in our child activity before we close it.
💻 Find the BEST programming tutorials on TutHub:
⭐ Get my MVVM Caching Course now:
❗ Subscribe to the channel:
📨 Subscribe to the Coding in Flow newsletter:
❓ Join our free developer community:
📣 Follow Coding in Flow on other sites:
💰 Business requests, sponsoring, etc.: firstname.lastname@example.org