This is the proper way to pass information BACK to a calling activity with what happened in the child activity.
Currently we use a global variable, but then need to add a bunch of logic in the parent activity to know if we're starting from scratch, or coming back from settings.
Using this means it's cleaner and we have a special Interface that's called upon return that we can check if we need to reload data, and then do so. The onCreate is NOT called again.
This is the proper way to pass information BACK to a calling activity with what happened in the child activity.
Currently we use a global variable, but then need to add a bunch of logic in the parent activity to know if we're starting from scratch, or coming back from settings.
Using this means it's cleaner and we have a special Interface that's called upon return that we can check if we need to reload data, and then do so. The onCreate is NOT called again.