threads notify main activity of connectivity