isAppForegrounded  
  Determines if the application is in the foreground.
Return
true if the application is in the foreground, otherwise false.
Determines if the application is in the foreground.
true if the application is in the foreground, otherwise false.