Catch input value when screen rotation / minimizing

Catch inputed value when screen rotation or minimizing the app