未调用OnUnbind of Accessibility Service

时间:2016-07-13 06:39:56

标签: android accessibilityservice

我创建了一个辅助功能服务,但是如果我从设置面板关闭辅助功能服务(对于我的应用),并且应用程序未处于活动状态,则不会调用onUnbind服务。如果应用程序处于活动状态,则每次都会调用onUnbind

07-13 11:47:24.327 10974-10974/com.example.tarun.myappforkeyevent I/dalvikvm: Could not find method android.content.Context.getSystemService, referenced from method service.MyAccessibilityService.access$super
07-13 11:47:24.327 10974-10974/com.example.tarun.myappforkeyevent W/dalvikvm: VFY: unable to resolve virtual method 502: Landroid/content/Context;.getSystemService (Ljava/lang/Class;)Ljava/lang/Object;
07-13 11:47:24.329 10974-10974/com.example.tarun.myappforkeyevent D/dalvikvm: VFY: replacing opcode 0x6f at 0x0035
07-13 11:47:24.329 10974-10974/com.example.tarun.myappforkeyevent I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method service.MyAccessibilityService.access$super
07-13 11:47:24.330 10974-10974/com.example.tarun.myappforkeyevent W/dalvikvm: VFY: unable to resolve virtual method 484: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
07-13 11:47:24.331 10974-10974/com.example.tarun.myappforkeyevent D/dalvikvm: VFY: replacing opcode 0x6f at 0x004f
07-13 11:47:24.331 10974-10974/com.example.tarun.myappforkeyevent I/dalvikvm: Could not find method android.accessibilityservice.AccessibilityService.getWindows, referenced from method service.MyAccessibilityService.access$super
07-13 11:47:24.332 10974-10974/com.example.tarun.myappforkeyevent W/dalvikvm: VFY: unable to resolve virtual method 25: Landroid/accessibilityservice/AccessibilityService;.getWindows ()Ljava/util/List;
07-13 11:47:24.333 10974-10974/com.example.tarun.myappforkeyevent D/dalvikvm: VFY: replacing opcode 0x6f at 0x0080
07-13 11:47:24.333 10974-10974/com.example.tarun.myappforkeyevent I/dalvikvm: Could not find method android.content.ContextWrapper.getCodeCacheDir, referenced from method service.MyAccessibilityService.access$super
07-13 11:47:24.334 10974-10974/com.example.tarun.myappforkeyevent W/dalvikvm: VFY: unable to resolve virtual method 555: Landroid/content/ContextWrapper;.getCodeCacheDir ()Ljava/io/File;
07-13 11:47:24.335 10974-10974/com.example.tarun.myappforkeyevent D/dalvikvm: VFY: replacing opcode 0x6f at 0x00e6

为什么显示这些错误而不是调用onUnbind

0 个答案:

没有答案