I am in a fragment
which is a feedback form. When the user clicks on the button it takes the data from the form and passes it to an e-mail program that gets open after the user chooses it from the list after startActivity(intent)
.
My problem is, I am not sure if there is a way to get feedback to know when the 3rd party mailer is done or if the launcher is cancelled.
Also in my example, if you click the submit and then click on the gmail and then click send in gmail and close it out, it brings you back to the app with all the data still on the form.
I would like to switch fragments
to a thank you fragment
. I did experiment and was happy that if you click on a different icon int the bottom nav bar
and go back to the feedback fragment
that all the data is cleared out.
Thank you and all help would be appreciative. Shawn Mulligan
P.S. There is no code as I don't feel it is needed, I just need to know what direction to go into and any code snippetts if available to do the next step. change fragments
after intent
.