Android snippet: Check if the device is connected to the internet | Hacker News Reader