some changed to fit to the "BackgroundWorkManager" and fixing the "Activity" life cycle.