0

How I can detect if Android device has internet connection (WiFi or mobile internet) from my FireMonkey application. I know I can use Indy components ... try Ping google.com ... and wait for exceptionon on timeout but I want to know If exist some "nice" native solution for Android,

I using Delphi XE10.1 Berlin

Danilo Casa
  • 506
  • 1
  • 9
  • 18
milenjao
  • 93
  • 5
  • 18
  • 1
    personnaly i didn't find a better solution, simply put try .. except around all the http call to catch no internet exception and show message to end user, because anyway even if the mobile say it's connected to the wifi, it's not mean the internet is working, or the mobile network can be so much slow that it's not work ... if you find better solution, please write it :) – zeus Sep 30 '16 at 12:01
  • I tested it and it works fine ! – milenjao Oct 01 '16 at 06:12
  • If only there was a "dial tone" on the internet :) – ByteArts Oct 05 '16 at 18:07

0 Answers0