Android Question Standard Android search - Intercepting exit


Licensed User
I'm using the android standard search. Everythink works well except when user exit from search without doing anythink.
In this case the caller activity doesn't intercept rhe end of the search: Activity_Resume in not affected
I tried to use Activity_WindowFocusChanged. It works but I have many problems in debug mode (there are some posts for this case).
Then the question: Is there another way to capture exit from search when user doesn't write a search string ?