title: Make my Android app connect to a Raspberry Pi 4 wifi using known ssid and password
body: <p>I would like my android application to automatically connect to my Raspberry Pi 4 stand alone access point, knowing the ssid and password. However, from what I can find its not secure and hard to force connection to a wifi without direct user consent.</p>
  <p>Can this be accomplished? Or is there a better way, like making Wifi Direct between the phone and Raspberry device?</p>
  <p>If so, can you guide me in the right direction?</p>
  <p>The stand alone access point is created as so:</p>
  <pre><code>ssid=&quot;RPiNet&quot;
  mode=2
  frequency=2437
  #key_mgmt=NONE   # uncomment this for an open hotspot
  # delete next 3 lines if key_mgmt=NONE
  key_mgmt=WPA-PSK
  proto=RSN WPA
  psk=&quot;password&quot;
  </code></pre>