Added Network State check on Main1Activity.java