0
我創建了一個擴展AccessibilityService的類。 'onAccessibilityEvent'方法提供了一個可訪問性事件。如何用它遍歷屏幕上的所有TextView並只獲取文本數據?另外,如何閱讀webview的html數據?如何在Android中使用AccessibilityEvent獲取另一個應用程序的特定屏幕上的所有文本視圖的文本,resourceid?
@Override
public void onAccessibilityEvent(AccessibilityEvent accessibilityEvent) {
}
感謝您的配合。我有另一個問題。我正在嘗試訪問webview的內容。這怎麼能實現? –
你的意思是得到的HTML? – shhp
是的。我需要html數據。 –