Check Internet connection

New permission is required: ACCESS_NETWORK_STATE