Allows android application to have background task that is tied to fragment's lifecycle