having a class with a function runInMainThread(Handler mainHandler), which execute something it a runable\'s run():
runInMainThread(Handler mainHandler)
class AppLifecycleObserver implem