fix possible null-pointer when trying to access the application context
force app display to portrait