A simple code that shows how to make an activity fullscreen, how to keep the device awaken and how to dim the navbar.