Questions tagged [accessibilityservice]

An Android service which runs in the background and receives callbacks by the system when accessibility events are fired.

543 questions
0
votes
2 answers

How to automatically enable accessibility setting for android

I am using AccessibilityService for my app. The problem is I need to enable it from Accessibility setting manually, is there a way to automatically do that so the user of my app don't need to do it manually ?
mSapps
  • 601
  • 9
  • 24
0
votes
1 answer

Calculate margin using AccessibilityNodeInfo

I am developing an accessibility service on android and I want to check the space between on-screen elements. Currently I am already using AccessibilityNodeInfo and its getBoundsInScreen() method to read the touch target size of clicked elements. Do…
firefly1337
  • 37
  • 10
0
votes
1 answer

Android O: AccessibilityService

I try to use the AccessibilityService with Android O but it does not create this Service. Manifest:
karuto
  • 1,228
  • 1
  • 10
  • 7
0
votes
1 answer

I use AccessibilityEvent.getSource() get TextView.Can I do something to change the TextView's text?

This is my code.In my custom AccessibilityService,I get all TextView by the method,onAccessibilityEvent.And then I want to mark the text. public void onAccessibilityEvent(AccessibilityEvent event) { AccessibilityNodeInfo source =…
jeepc
  • 11
  • 1
0
votes
1 answer

NotificationListener Or Accessibility Service

I want to read the incoming notification from the notification bar. I have read that this can be done using both Accessibility Service and Notification Listener. Which one is the better one to use and Why? Thanks
0
votes
1 answer

android:canRequestTouchExplorationMode dynamically from code

I have next configuration in my accessibility service. android:canRequestTouchExplorationMode="true" Sometimes I need have this value as false. How can I set this value to false from my java code? Thanks.
ihrupin
  • 6,932
  • 2
  • 31
  • 47
0
votes
1 answer

TouchWiz not support scroll/swipe using Android Accessibility

How to make scroll/swipe with TouchWiz using Android Accessibility. Note that common way not works because TouchWiz not support AccessibilityAction.ACTION_SCROLL_FORWARD and AccessibilityAction.ACTION_SCROLL_BACKWARD Any ideas?
ihrupin
  • 6,932
  • 2
  • 31
  • 47
0
votes
1 answer

How to bind to AccessibilityService in Mono (Xamarin)

I've tried and got OnServiceConnected event in ServiceConnection class. But casting IBinder to my class (it inherits Binder, that inherits IBinder) returns null if I try to do that as "var myObject = IBinderObject as myBinderClass;" or casting…
Gambolt
  • 1
  • 3
0
votes
1 answer

AccessibilityService gets unbinded when powered off and is not rebinded after reboot

I am facing an issue with AccessibilityService. When I power off my device AccessibilityService gets unbinded by invoking onUnbind. But when I start my device again, AccessibilityService is not rebinded and onRebind service is not called. I have…
0
votes
0 answers

Accessibility service is not working properly when device booted after power off

I have used AccessibilityService on my App to automatically Force stop Apps I desire to. Everything works fine unless I power off my phone. After turning my phone on AccessibilityService doesn't work properly. It doesn't call onAccessibilityEvent…
0
votes
1 answer

How to use Accessibility Service with TYPE_WINDOW_STATE_CHANGED

I try to use Accessibility Service to handle event when a new activity or window is opened. But it doesn't work. **First, I implement a accessibility service class look like: public class DemoAccessibilityService extends AccessibilityService…
0
votes
1 answer

How to Take action for user using Accessibility android..?

Android Documentation says an app can take action on behalf of user like selecting a UI element using Accessibility services from API level 14. Can any one tell me how to do that or help me with some sample Code of it..?
S.Ahsan
  • 389
  • 3
  • 15
0
votes
1 answer

Force stop app using accessibility service Android?

I am using accessibility service for reading top package. But now I need to stop app and stop it's all running services through accessibility. I have been searching on same found clean master doing same. Please suggest how can I do same?
aman arora
  • 263
  • 5
  • 16
0
votes
1 answer

What is the difference between audible and spoken feedback for accessibility in Android?

Android documentation mentions that the "accessibilityFeedbackType" can be either "feedbackAudible"" or "feedbackSpoken" among others. I am not sure what is the difference between these two and the doc doesnt provide further explanation for…
Raghav
  • 1,014
  • 2
  • 16
  • 34
0
votes
1 answer

How to detect screen change in immersive mode on Android

I am creating an app that monitors screen changes and set to the immersive mode or normal mode. I use accessibilityservice TYPE_WINDOW_STATE_CHANGED. It works except when a user clicks recent apps in immersive sticky mode. In immersive mode, it…