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.
我们的 Wear OS 应用程序没有接收到 Wear OS 3 设备(例如三星 Galaxy Watch 4)的任何 onDataChanged 事件。对于旧版本,它可以按预期工作。有没有人已经对这种新东西有了经验?:)
也许我必须在清单文件中设置查询权限,但我不知道如何。
android:exported="true">我在 AndroidManifest 中的 Service 中解决了我的问题。更新我的 Android 项目后,Android Studio 建议将此标志设置为 false。现在我把它改成了真的,就像活动一样,它可以工作。
android:exported="true">