Search code examples
androidwebviewaccessibilitytalkbackaccessibilityservice

Why localhost webview content does not enable TalkBack in Android


In my Android application I have loaded a web content in WebView.After enabling TalkBack feature the webview contents respond to user touching and it speaks the webview content.But when I loaded a localhost website in WebView, TalkBack does not respond to user touchings.It does not speak the WebView content.How to make enable TalkBack even for localhost webview contents?


Solution

  • Prior to Android L Preview, WebViews with Javascript enabled required an internet connection for spoken accessibility to work correctly. This is because WebView relied on a JS-based screen reader (ChromeVox) that may not always be available in WebView cache.