I am having an index.html
in my asset folder. I am loading it with following code.
view.loadUrl("file:///android_asset/www/index.html");
When i try connecting with my accessibility service, the text is not getting parsed. I have pasted the log cat for the reference. I am having my own talk back kind of service. I am having second app with a html file. When i load that html file, the webview's ontouch
event should speak out the text. The touch event is happening but the html content is not parsed.
02-18 05:36:43.190 4398-4398/com.example.vinay.screenreader V/MyScreenReaderService: I am in accessibility service 1048576 02-18 05:36:43.191 4398-4398/com.example.vinay.screenreader V/MyScreenReaderService: onAccessibilityEvent: [type] TYPE_TOUCH_INTERACTION_START [class] null [package] null [time] 20184170 [text] [] [description] null
02-18 05:36:43.249 4398-4398/com.example.vinay.screenreader V/MyScreenReaderService: I am in accessibility service 2048 02-18 05:36:43.251 4398-4398/com.example.vinay.screenreader V/MyScreenReaderService: onAccessibilityEvent: [type] TYPE_WINDOW_CONTENT_CHANGED [class] android.widget.FrameLayout [package] com.android.systemui [time] 20184228 [text] [] [description] null
02-18 05:36:43.492 4398-4398/com.example.vinay.screenreader V/MyScreenReaderService: I am in accessibility service 512 02-18 05:36:43.493 4398-4398/com.example.vinay.screenreader V/MyScreenReaderService: onAccessibilityEvent: [type] TYPE_TOUCH_EXPLORATION_GESTURE_START [class] null [package] null [time] 20184471 [text] [] [description] null
02-18 05:36:43.970 4398-4398/com.example.vinay.screenreader V/MyScreenReaderService: I am in accessibility service 1024 02-18 05:36:43.972 4398-4398/com.example.vinay.screenreader V/MyScreenReaderService: onAccessibilityEvent: [type] TYPE_TOUCH_EXPLORATION_GESTURE_END [class] null [package] null [time] 20184946 [text] [] [description] null I am in accessibility service 2097152
02-18 05:36:43.973 4398-4398/com.example.vinay.screenreader V/MyScreenReaderService: onAccessibilityEvent: [type] TYPE_TOUCH_INTERACTION_END [class] null [package] null [time] 20184946 [text] [] [description] null
view.setOnTouchListener
actually should enter the TYPE_VIEW_HOVER_ENTER. But its not entering. Please help me with the problem.
xml code
My xml code is
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1"
android:orientation="vertical">
<WebView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/webview"
android:layout_gravity="top"
android:layout_weight="0.90"
/>
</LinearLayout>