A simple for detecting and eventing whether an Android app is currently foreground or background
Just extends any Activity class with BaseActivity e.g. public class MainActivity extends BaseActivity
If you want to check current app status just call BaseActivity.isAppInForeGround returns true if Activity is in ForeGround or else returns false