Add the internet connection condition
Merge branch 'master' of https://github.com/DonLiangGit/android_functions_collection