title: How to get current wifi connection name in android pie(9) devices?
body: <p>I know it is very simple for you. Here I am just tried to get WiFi name in android pie devices. I am able to get WiFi name till Nogout devices with the help of below line of code.</p>
  
  <pre><code> String ssid = wifiInfo.getSSID();
  </code></pre>
  
  <p>I have tried lots of answer and Android developer docs but unfortunately, I can not get a WiFi name on my mobile(Nokia 6.1 plus). I Know I am doing mistakes.</p>
  
  <p>I just want a code there I can get a wifi name from my mobile to my android studio logcat.</p>