Fer*_*gre 6 android android-service android-10.0
我有一个TileService在 Android Q 之前就可以工作的设备。这是要激活(受控)的配置:
<meta-data
android:name="android.service.quicksettings.ACTIVE_TILE"
android:value="true" />
Run Code Online (Sandbox Code Playgroud)
这意味着我可以更新磁贴调用requestListeningState。但是,这不再起作用,我在 Logcat 中看到以下消息:
D/TileServices: Couldn't find tile for ComponentInfo{com.my.package/com.my.package.foler.MyTileService}
Run Code Online (Sandbox Code Playgroud)
这是代码:
D/TileServices: Couldn't find tile for ComponentInfo{com.my.package/com.my.package.foler.MyTileService}
Run Code Online (Sandbox Code Playgroud)
我想知道发生了什么变化,在 Android Q 之前,获取 的线路ComponentName工作得很好。不知何故现在在这里失败了(Android 源代码)。
另一个有趣的事情是,如果我删除磁贴并再次添加它,那么它会工作一段时间,直到问题再次出现。
| 归档时间: |
|
| 查看次数: |
746 次 |
| 最近记录: |