title: Android - How to know the Wi-Fi icon status with the Exclamation mark programmatically
body: <p>I am developing an Android app. 
  I have a logic to make certain action work only while the WiFi internet connection is working properly.</p>
  
  <p>So I'd like to exclude the state of WiFi icon with an exclamation mark.</p>
  
  <p>Is there a programmatic way to find out if the WiFi icon has the exclamation mark?</p>
  
  <p><a href="https://i.stack.imgur.com/3G8oM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3G8oM.png" alt="WiFi icon with Exclamation mark"></a></p>