title: Android - Wifi Direct / p2p not able to find peers on Android 8
body: <p>I started creating an Android app wifi Wifi direct functionality. 
  I do a peer discover and I like to see the peers in a listview. </p>
  
  <p>I now have a app which tries to discover peers and shows the peers in a list. </p>
  
  <p>But I'm facing the problem that this works fine on my Android 5 device. Here I can see my Android 8 device, but not the other way around. I cannot see my Android 5 device on my Android 8 device. </p>
  
  <p>I followed steps from here: 
  <a href="https://developer.android.com/training/connect-devices-wirelessly/nsd" rel="noreferrer">https://developer.android.com/training/connect-devices-wirelessly/nsd</a></p>
  
  <p>And also discovered this post: <a href="https://stackoverflow.com/questions/46097660/android-o-issues-with-wifi-peer-discovery">Android O issues with WiFi Peer Discovery</a> which says that I need to ask for permissions before continuing. </p>
  
  <p>My manifest: </p>
  
  <pre><code>&lt;uses-permission
      android:required="true"
      android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
  &lt;uses-permission
      android:required="true"
      android:name="android.permission.ACCESS_WIFI_STATE"/&gt;
  &lt;uses-permission
      android:required="true"
      android:name="android.permission.CHANGE_WIFI_STATE"/&gt;
  &lt;uses-permission
      android:required="true"
      android:name="android.permission.INTERNET"/&gt;
  </code></pre>
  
  <p>What could be the problem? Maybe I can provide more information if needed to solve the problem?</p>