Create ConnectionDetector.java

This class is only check internet connection is available or not on your device only..