I used an intent to call another activity. After that, I collected some data from user using the second activity. I need to update some data in the first activity and close the second activity.
Hence, I need the Context (this) of the first activity. How do I do that? Or do I need to start the first activity again as new activity?
Use
startActivityForResult()and don’t finish() the first activity. You will land to that activity on methodonActivityResult().Edit:
and