How to use Leakcanary for Service (like InputMethodService)

52 Views Asked by At

My application is Keyboard IME Service, with some UI for config and testing.

D/LeakCanary: LeakCanary is currently disabled: Waiting for debugger to detach. comes first. Then

D/LeakCanary: Watching instance of .... (UI's Activity) comes second as I also have an activity for UI testing.

However, when I open the keyboard, there is no watching message.

How to "install" it into the Service?

A log message shall be shown for watching my Service

0

There are 0 best solutions below