Click on the Notification programmatically

后端 未结 2 1393
耶瑟儿~
耶瑟儿~ 2020-12-01 23:15

I trying click on the notification after receiving it.

I\'m able to drag the notification drawer using the Accessibility service.

For clicking the notifica

2条回答
  •  误落风尘
    2020-12-01 23:35

    Not all accessibility events will return a source. In fact, most (or at least the events that occur most frequently) do not. Make sure you're limiting to a reasonable subset of events in your configuration AND/OR doing a null check on event.getSource().

提交回复
热议问题