android-internet tag

1 questions


1 answers
81 views
0
How to check if a device is connected to the Internet

I want to make sure the device is connected to the Internet.There is a method called isAvailable() in the NetworkInfo class, and I think you can use this.NetworkInfo ni = new NetworkInfo();if (!ni.isA...


© 2024 OneMinuteCode. All rights reserved.