Answer the question
In order to leave comments, you need to log in
How to check internet availability in LibGdx?
I am making an online game on LibGdx and NodeJS with a connection to a VPS and then I ran into a problem:
The first thing I decided to do is to check the availability of the Internet every time a client enters the game. Well, I turned on the Internet:
And I decided to check with this code:
Here is the interface that is used
and the class
And just a screen that appears if the Internet is available.
Well, on the computer it somehow works, but on the android it displays the program has completed its work.
Help solve the problem!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question