android - Clipboard clip change listener not working when app closed in Android Oreo
问题描述
I was following below tutorial to check copy text event while the app is background or closed.
Now It's not working when the app is closed in android oreo. Is there any alternate of ClipboardMonitorService as background service is removed after API 26.
解决方案
作为 Android Oreo 的一部分,对后台服务有一些限制。我不认为你的问题可以解决。请参阅此帖子以了解更多信息。该帖子中解释了所有不同类型的执行模型。我知道我没有太多帮助,但我想我会分享我所知道的。
推荐阅读
- vb.net - 有人可以帮我解决这个错误吗?InvalidOperationException 未处理
- python - 如何从python中的文本文件中读取完整的字典数据类型?
- php - 从 woocommerce 上的感谢页面(已收到订单)中删除客户详细信息
- reactjs - 防止在 react-date-picker 中突出显示 Today
- unity3d - 缺少 Unity3D 游戏对象,我该怎么办;0
- clojure - 查询结果不一致
- reactjs - react-hook-form 空上下文
- java - 是否可以在 sbt 中仅在一个包中遮蔽某些包?
- certificate - 如果证书已经通过 IdP/SP 元数据交换,为什么还要在 SAML 请求/响应中再次发送证书?
- visual-studio-code - 我可以在 VSCode 中同时使用两个主题吗?