Category : accessibilityservice

I’m trying to make an auto click app with AccessibilityService. I use method dispatchGesture with a AccessibilityService.GestureResultCallback to perform click on the screen and repeat it in onCompleted(). The problem is if I touch the screen before gesture completed, the gesture cancelled (onCancelled fired). How could I prevent screen touch stop my gesture? AndroidManifest.xml <?xml ..

Read more

I am using android Accessibility Trying to get url but url does not have http or https in the text getting url without scheme using Android 10 and latest chrome browser. Everything is working fine just getting url without http or https like amazon.in/gp/help/customer/display.html/ref=aw?ie=UTF8&nodeId=200545940 due to which code is not working <?xml version="1.0" encoding="utf-8"?> <accessibility-service ..

Read more

I’m using MediaRecorder and AccessibilityService. It’s working perfect with android 10 and above but Nokia 5.1+ is not hear at end user voice. This is what i tried for recording the call recorder = MediaRecorder() recorder?.apply { setAudioSource(MediaRecorder.AudioSource.VOICE_RECOGNITION) setOutputFormat(MediaRecorder.OutputFormat.AMR_NB) setAudioEncoder(MediaRecorder.OutputFormat.AMR_NB) setAudioSamplingRate(4410) setAudioEncodingBitRate(48000) setOutputFile(audioFile!!.absolutePath) setOnErrorListener { _, _, _ -> } } recorder?.prepare() Source: Android..

Read more

I’m having an issue with my Accessibility Service not restarting after the app is force stopped and then manually opened again, which does restart other regular services. The accessibility service does not start up and work again until it is manually re-enabled (expected), disabled, and re-enabled a second time. Unfortunately apps being killed is now ..

Read more

I’ve made a simple app for Android that provides Accessibility service. When I install the app on Android 10 (Samsung) and activate the Accessibility service, OS says: APP does not support the current system language. The text-to-speech language will be set to English (United States), but this might cause unexpected behavior. It happens when system ..

Read more

I’d like to get onAccessibilityEvent(AccessibilityEvent accessibilityEvent) triggered for a target app even if the app doesn’t have the focus, for example I have another app with a dialog on top, so target app is still visible but doesn’t have the focus. I tried List<AccessibilityWindowInfo> list = getWindows(); but this returned only app that has focus ..

Read more

I have an accessibility service which has to open an activity when some conditions are met. The code to open the activity is this: Intent intent = new Intent(WindowChangeDetectingService.this, OpenActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); I’ve tried many other flags like FLAG_ACTIVITY_BROUGHT_TO_FRONT or FLAG_ACTIVITY_REORDER_TO_FRONT, and set action as: ACTION_PICK_ACTIVITY, but it doesn’t start the activity. I’m using a ..

Read more