Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以从正在运行的服务将设备的方向从纵向更改为横向?我已经搜索过,但我找不到任何负面或正面的东西
服务是后台操作,而屏幕方向是 UI 操作。您可以强制服务启动一项活动(但根本不建议这样做)并将其设置在您的清单中,就像横向设置一样。