Android Question Trap Close App - Home Key

MarcoRome

Expert
Licensed User
Longtime User
Hi all.
I have my app when exit ( because example i press BACK key ) destroy also alarm service (Activity_pause - UserClosed).. and all work fine.
Question: When i press Home key isn't possible trap this. "...You can trap the Back key with Activity_KeyPress but you cannot trap the Home key".
Can i trap when close the application ????
Because if i close the app in this way the service is still pending :(

image-test-BF3C_538F07B4.png


Thank you
 

MarcoRome

Expert
Licensed User
Longtime User
Thank Erel for your response.
Yes i know this but if you look at the picture, i can move the app out and kill the same free and releasing the memory.
Now the question is: Can i intercept this event ?
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Thank Erel for your response.
Yes i know this but if you look at the picture, i can move the app out and kill the same free and releasing the memory.
Now the question is: Can i intercept this event ?

I believe no you can´t.
 
Upvote 0
Top