Delphi Android app – Detect if device has internet connection [duplicate]

  

This question already has an answer here:

How to check if network is available on Android and iOS ( Delphi XE5 )

3 answers

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

Comments are closed.