title: How to use getActiveNetworkInfo() method with API less than 23?
body: <p>I'm trying to get NetworkInfo but it is possible only on API 23 and higher. What can I do to fix it?</p>
  
  <p><a href="https://i.stack.imgur.com/ZKTrA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZKTrA.png" alt="enter image description here"></a></p>