Basically I am trying to find my home key pressed event in my Service,
I used broadcast receiver with intent-filter "CLOSE_SYSTEM_DIALOGS" & I reached half a way... Now it works perfect with soft home key but not if device has hardware home key (example : in Samsung J7 I cant receive broadcast).
Anyone have any idea to solve this problem?
try this one .