Record current sample state in App Manager

This can be used to reload an incomplete sample or to reload the main
activity when the screen is rotated