title: How to check in foreground service if the app is running?
body: <p>In my app I have foreground service which works differently depending on existance of the application it belongs to. </p>
  
  <p>User can switch to the Recent screen and kick the application out of memory. Since <code>Application</code> class doesn't have <code>onDestroy</code> method, I won't know if it is running.</p>
  
  <p>Is there a way to check in foreground service if application is running? </p>