0

我按照以下文档创建了一个 AccessibilityService: https ://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html

我认为没有必要在此处复制代码,因为我一步一步完成了所有操作,并且它在我尝试过的所有模拟器上都可以正常工作(在 19-25 个 API 之间),但它不适用于我的真实设备(API 25) . 在真实设备上永远不会调用 onServiceConnected 方法。这是我拥有的唯一真正的设备。我可以尝试什么?什么会导致这个问题?

编辑:现在我在不同的真实设备(Android 4.4)上尝试过,它也可以在上面运行。现在我真的很困惑。

4

1 回答 1

5

Reboot solved the problem! I can't believe this. I spent a day for this. I am not going to delete the question. Maybe it can save someone else's day.

于 2017-01-02T21:14:57.237 回答