Currently invoking this function as static (null instance) which is incorrect and might not work for all devices. Obtaining Application is through a private method, but creating virtual display is a public method.