Finished a demo for switching from Active to Inactive and back state transitions

Signed-off-by: crescens <crescens.techstars@gmail.com>
Finished removing resources when entering the background