Getting the actual layout of an app