accessibilityservice

how to open Accessibility Settings of my app directly?

泄露秘密 提交于 2020-01-12 02:25:47
问题 As mentioned here: How can I start the Accessibility Settings Page of my APP in Android? I can open my app Accessibility Settings directly with this code: Intent intent = new Intent(); intent.setClassName("com.android.settings", "com.android.settings.Settings"); intent.setAction(Intent.ACTION_MAIN); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT, "the fragment

how to open Accessibility Settings of my app directly?

ぃ、小莉子 提交于 2020-01-12 02:25:09
问题 As mentioned here: How can I start the Accessibility Settings Page of my APP in Android? I can open my app Accessibility Settings directly with this code: Intent intent = new Intent(); intent.setClassName("com.android.settings", "com.android.settings.Settings"); intent.setAction(Intent.ACTION_MAIN); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); intent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT, "the fragment

Is possible remove an overlay with WindowManager when press back or home button in android?

两盒软妹~` 提交于 2020-01-07 03:00:10
问题 I'm trying to find some answer to my question in the site but I don't found anything, and I'm not sure if is possible remove or hide the overlay with windowManager when press back or home button. This is that I have now. I put an overlay using accessibility service that cover all the screen when the user go to setting screen of my app. WindowManager show the overlay, but when I try to press back button or home button it doesn't work. Seems like is blocked. Only disappear the overlay when the

stopping Android Accessibility UI Component on softKey “HOME” Button pressed

一世执手 提交于 2020-01-02 20:29:47
问题 Created "AccessibilityService" and am able to show Hints based on the Text Entered.The Problem is i want to stop the activity service when the Host application Home Pressed. I have tried Adding <accessibility-service xmlns:android="http://schemas.android.com/apk/res/android" android:accessibilityEventTypes="typeAllMask|typeViewClicked|typeViewFocused" android:canRequestFilterKeyEvents="true" android:accessibilityFlags="flagRequestFilterKeyEvents" android:description="@string/accessibility

How perform a drag (based in X,Y mouse coordinates) on Android using AccessibilityService? [Still Without Solution]

我的未来我决定 提交于 2019-12-31 10:19:44
问题 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 able of make is simulate touch (with dispatchGesture() and also AccessibilityNodeInfo.ACTION_CLICK ). I found these relevants links, but not know if they can be useful: Perform swipe on screen using AccessibilityService Example 1 Continued gestures

Get share content through accessibility in android app

浪子不回头ぞ 提交于 2019-12-25 02:58:52
问题 I have an android app, which lets people share content from other apps to it. When it receives the shared data, it looks for the URL in the shared text and fetches the page and does processing on the data fetched. This is designed with specific purpose and not a generic for all apps. It works fine, except that people have to click the share icon and then choose our app name. With accessibility we can reduce this work for the users. We are able to get the text displayed in the app. Is it

Accessibility Service is unable to read all of the screen content

杀马特。学长 韩版系。学妹 提交于 2019-12-24 01:23:41
问题 Issue : Not getting every text on screen in android pie, checked till nougat the code was working fine. Device : Xiomi MiA1(Android One), Version- 9.0 Xml Settings : <?xml version="1.0" encoding="utf-8"?> <accessibility-service xmlns:android="http://schemas.android.com/apk/res/android" android:accessibilityEventTypes="typeAllMask" android:accessibilityFlags="flagIncludeNotImportantViews|flagReportViewIds" android:canRetrieveWindowContent="true" android:canRequestTouchExplorationMode="true"

Accessibility Service is turned off automatically on each Run since Android studio 3.5

匆匆过客 提交于 2019-12-23 15:29:36
问题 Since I update Android Studio to 3.5, when I launch a Run to build and deploy my app, my custom accessibility service is turn off automatically (not a crash, just turn off within the settings). Can you help me please ? 回答1: What's happening is that Studio force-stops the service before reinstalling the new version. I don't think it's possible to disable that unfortunately. Command-line installation doesn't follow the same process, so it doesn't disable the service. 来源: https://stackoverflow

Restart Accessibility Service After Crash

不羁岁月 提交于 2019-12-23 12:55:31
问题 In my Application there is a Service and an AccessibilityService . Now the Service is bound by the accessibility Service in order to receive information. My Service periodically checks if the AccessibilityService is enabled, and if it is not, it sends a notification to the user that it has to enable it. Once enabled, AccessibilityService starts to work. First it binds to my Service , and after, it begins to send information. The problem is if AccessibilityService crashes. It remains enabled

Restart Accessibility Service After Crash

心不动则不痛 提交于 2019-12-23 12:54:59
问题 In my Application there is a Service and an AccessibilityService . Now the Service is bound by the accessibility Service in order to receive information. My Service periodically checks if the AccessibilityService is enabled, and if it is not, it sends a notification to the user that it has to enable it. Once enabled, AccessibilityService starts to work. First it binds to my Service , and after, it begins to send information. The problem is if AccessibilityService crashes. It remains enabled