首页 > 解决方案 > 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.

https://github.com/twaddington/Android-Clipboard-Monitor/blob/master/src/com/example/clipboardmonitor/service/ClipboardMonitorService.java

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.

标签: androidserviceclipboardclipboardmanager

解决方案


作为 Android Oreo 的一部分,对后台服务有一些限制。我不认为你的问题可以解决。请参阅此帖子以了解更多信息。该帖子中解释了所有不同类型的执行模型。我知道我没有太多帮助,但我想我会分享我所知道的。


推荐阅读