accessibilityservice

How to perform multiple swipe using AccessibilityService

白昼怎懂夜的黑 提交于 2021-02-11 14:56:31
问题 I want to perform multiple swipe when "Clicked" using AccessibilityService . I already tried this but it doesn't perform multiple swipe. Any help is much appreciated. It is working but only one swipe is registered. public void onAccessibilityEvent(AccessibilityEvent accessibilityEvent) { final int eventType= accessibilityEvent.getEventType(); switch (eventType) { case 1: if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) { DisplayMetrics displayMetrics = getResources()

Overlay of type “TYPE_ACCESSIBILITY_OVERLAY” hides navigation buttons

别等时光非礼了梦想. 提交于 2021-02-10 14:24:57
问题 I'm adding a view to windows manager using these layout parameters: WindowManager.LayoutParams params = new WindowManager.LayoutParams( WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY, WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM | WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH, PixelFormat.TRANSLUCENT

Overlay of type “TYPE_ACCESSIBILITY_OVERLAY” hides navigation buttons

本秂侑毒 提交于 2021-02-10 14:24:01
问题 I'm adding a view to windows manager using these layout parameters: WindowManager.LayoutParams params = new WindowManager.LayoutParams( WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY, WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM | WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH, PixelFormat.TRANSLUCENT

How to find dimensions for status bar, navigation bar and screen in Android AccessibilityService

早过忘川 提交于 2021-01-29 09:02:07
问题 I have a Java app (API 23). In it I have a MainActivity and an AccessibilityService . In the AccessibilityService: @Override public void onServiceConnected() { oView = new LinearLayout(this); oView.setBackgroundColor(0x88ff0000); // The translucent red color WindowManager.LayoutParams params = new WindowManager.LayoutParams( width, height, xPos, yPos, WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY, WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE | WindowManager.LayoutParams.FLAG_NOT

How to perform a touch and hold gesture using AccessibilityService?

回眸只為那壹抹淺笑 提交于 2021-01-28 05:13:13
问题 Path clickPath = new Path(); clickPath.moveTo(x, y); GestureDescription.StrokeDescription clickStroke = new GestureDescription.StrokeDescription(clickPath, 0, 1); GestureDescription.Builder clickBuilder = new GestureDescription.Builder(); clickBuilder.addStroke(clickStroke); dispatchGesture(clickBuilder.build(), null, null); With this code I can perform clicks anywhere on the screen. Is there any way to perform touch and hold gesture using AccessibilityService? 回答1: Is there any way to

Get view of AccessibilityNodeInfo to create overlay

杀马特。学长 韩版系。学妹 提交于 2021-01-20 20:13:58
问题 I'm writing a AccessibilityService and I want to create view overlays on the views from the current activity that the accessibility service can retrieve. I have no problems to retrieve all AccessibilityNodeInfo objects from the current activity, but I have no idea how to get the views from these objects to create overlays. Unfortunately there are only few examples regarding accessibility services. Maybe some of you already have experience with this topic. I hope you can help me! Thanks! EDIT:

Get view of AccessibilityNodeInfo to create overlay

给你一囗甜甜゛ 提交于 2021-01-20 20:12:31
问题 I'm writing a AccessibilityService and I want to create view overlays on the views from the current activity that the accessibility service can retrieve. I have no problems to retrieve all AccessibilityNodeInfo objects from the current activity, but I have no idea how to get the views from these objects to create overlays. Unfortunately there are only few examples regarding accessibility services. Maybe some of you already have experience with this topic. I hope you can help me! Thanks! EDIT:

Get view of AccessibilityNodeInfo to create overlay

我怕爱的太早我们不能终老 提交于 2021-01-20 20:12:28
问题 I'm writing a AccessibilityService and I want to create view overlays on the views from the current activity that the accessibility service can retrieve. I have no problems to retrieve all AccessibilityNodeInfo objects from the current activity, but I have no idea how to get the views from these objects to create overlays. Unfortunately there are only few examples regarding accessibility services. Maybe some of you already have experience with this topic. I hope you can help me! Thanks! EDIT:

Auto Reply to WhatsApp message in background

↘锁芯ラ 提交于 2020-12-30 07:50:57
问题 I just checking out the Application, is doing auto reply to WhatsApp message in background. I also trying to doing so, but can't get success in it. I had tried : Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send."); sendIntent.setType("text/plain"); sendIntent.setPackage("com.whatsapp"); startActivity(sendIntent); But it opening the WhatsApp application :(, not sending the message. I go through with