Accessibility Service is unable to read all of the screen content

杀马特。学长 韩版系。学妹 提交于 2019-12-24 01:23:41

问题


Issue: Not getting every text on screen in android pie, checked till nougat the code was working fine.

Device: Xiomi MiA1(Android One), Version- 9.0

Xml Settings:

<?xml version="1.0" encoding="utf-8"?>
<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
    android:accessibilityEventTypes="typeAllMask"
    android:accessibilityFlags="flagIncludeNotImportantViews|flagReportViewIds"
    android:canRetrieveWindowContent="true"
    android:canRequestTouchExplorationMode="true"
    android:packageNames="com.example"
    android:accessibilityFeedbackType="feedbackSpoken"
/>

What I have tried: I have tried by removing flagIncludeNotImportantViews flag from xml settings but its not working tried by turning on/off many options inside Accessibility Settings of the device but nothing worked out.

What I am getting: Only texts which can be changed inside an app but not which are hard coded like "Settings", "About App", etc.

So please help me with this issue or if can provide any alternatives to read hard coded texts.

来源:https://stackoverflow.com/questions/54880922/accessibility-service-is-unable-to-read-all-of-the-screen-content

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!