extended application with a handle on FileObserver and removed onRestart() and changed onDestroy()