I've gone through all the search results in Google to find a working code snippet for checking if my android device is connected to the Internet, but there seem to be no working ones.
Thus, I'm looking for an example of code for checking android device internet connectivity status. I only need the code to output a bool
.