checks if network or gps provider is enabled