Create NetworkDetection.java