How do I disable the Internet connection in Android Emulator?

后端 未结 11 1703
执念已碎
执念已碎 2020-12-29 01:33

I am trying to check Internet connectivity on Android using the following method. I have a Wi-Fi connection.

private boolean checkInternetConnection() {
             


        
11条回答
  •  一个人的身影
    2020-12-29 01:41

    You can disable the Internet connection by pressing F8 in any Android emulator. It is a toggle button, so if it doesn't have Internet connection then it will start the Internet connection and if it already has an Internet connection then it will dis-connect it.

提交回复
热议问题