Check internet connection before showing graphURL
If there's no internet connection, the graphURL shows an empty activity. So before trying to show graphs, I check the internet connection. And if there's no connection, it just shows a toast instead of an empty activity, I think it's better.