Questions tagged [accessibilityservice]

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

543 questions
64
votes
1 answer

Accessibility service disabled upon each debug run

Each time I start a new debug instance, my accessibility service resets to the disabled state. Is there any way to keep it enabled across successive debug runs (as it is quite long & boring to enable it each time in order to debug the service)? I…
Jérémy Reynaud
  • 3,020
  • 1
  • 24
  • 36
44
votes
3 answers

How perform a drag (based in X,Y mouse coordinates) on Android using AccessibilityService?

I want know how to perform a drag on android based in X, Y mouse coordinates? consider as two simple examples, the Team Viewer/QuickSupport drawing the "password pattern" on remote smartphone and the Pen of Windows Paint respectively. All that i'm…
30
votes
5 answers

Detect if my accessibility service is enabled

I was wondering how could I detect if my own service is enabled. So I could check if my service is not enabled, then tell the user to enable it.
Rotary Heart
  • 1,899
  • 3
  • 29
  • 44
27
votes
2 answers

How to read window content (using accessibilityService) and evoking UI using draw over other app permission in Android?

My last question about the same topic was not clear enough and was put on hold by community and later it was automatically deleted. So, I am explaining that Question in detailed manner so that community can understand and help in a better manner. I…
Umesh Chauhan
  • 1,460
  • 1
  • 17
  • 26
20
votes
2 answers

Android: Is it possible to get other apps notification info?

I have question about Accessibility Service in Android. Can I catch a notification in status bar and get info from notification? My purpose is to catch notification of apps like Viber, Skype. Is that possible?
smail2133
  • 936
  • 2
  • 7
  • 24
19
votes
1 answer

How can I reliably simulate touch events on Android without root (like Automate and Tasker)?

How can I reliably simulate touch events on Android (without rooting) from Java outside my app which runs as a background service? While this question has been asked before, most answers utilise ADB. (such as How to simulate touch events on Android…
Theo
  • 548
  • 2
  • 8
  • 19
19
votes
1 answer

How to use Accessibility Services for "Taking Action for Users"?

Background Back a few years ago, I asked how TeamViewer allows the user to control the device without normal interaction with the device. I was told it's a special "backdoor" that manufacturers allow specifically for this app, and only possible…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
18
votes
2 answers

How to get url from browser using accessibility service

I have enabled accessibility-service permission and now i want to get url from address bar. I have tried below thing : accessibility_service_config.xml
user3997016
16
votes
0 answers

Accessibility service is not bound after application update

I have a perfectly running application with an accessibility service. It has been working as expected so far. The problem came out at the moment when I tried to build a new updated version. Nothing has been changed in the code related to the…
Stan
  • 8,683
  • 9
  • 58
  • 102
15
votes
2 answers

Perform swipe on screen using AccessibilityService

I want to perform swipe on screen using accessibility service. i tried this but this only perform a single touch. i know it is possible because when enable my service on device it says this service can perform swipe,touch,pinch etc. Point…
Ali Asjad
  • 253
  • 1
  • 4
  • 11
14
votes
7 answers

String is read as number rather than reading it digit by digit when talk back is on in android

I have a string "9039662543", and when talk back is on, this string is read as "nine million...." in 4.3 android devices, above 4.3 devices its working fine, by reading "nine zero three...". What should I do to fix this?
13
votes
1 answer

How to listen to taps and get views using Accessibility in Android?

I want to implement an Accessibility service in my Android app which can do the following things: =>Get the onscreen taps/clicks across any apps. =>Get the view which was tapped/clicked. Initially I thought it would not be possible to do so because…
12
votes
5 answers

onAccessibilityEvent not called at all

I am trying to implement an AccessibilityService. I have shared my code below. When I turn on my accessibility service from settings menu then onServiceConnected() is called but onAccessibiltyEvent() is not called at all. Please guide me on…
11
votes
1 answer

Accessibility Service description

I wrote a very simple accessibilityService and i am trying to have the description of the service show up in Settings/accessibility/my app. Below is all my code which should set the description to "Hello!" but the settings still shows "no…
erik
  • 4,946
  • 13
  • 70
  • 120
11
votes
2 answers

AccessibilityService is started but does not receive AccessibilityEvents on JellyBean

I have a AccessibilityService that shall read out any incoming notification. It does work fine with ICS and below, but stopped working with JB. Below are the Manifest and the code:
Force
  • 6,312
  • 7
  • 54
  • 85
1
2 3
36 37