Passing data between activities or fragments is one of the basic concepts you need to learn when you start doing android development. Here is a tutorial with examples.
Material design apps use activity transitions to connect different states through motion and transformations. Learn activity transitions in this app.
An activity can be told when its state has changed through a number of callback methods. Learn via examples about Activity lifecycle callback methods.