I am new in android and trying to find solution to track android application termination events like
when we remove application from application stack, application is closed but i could't find any method that track closing event
when device got shutdown because of law battery application is closed but event could't be tracked