title: Android API to Connect to Wifi Network
body: <p>I'm totaly lost in the versions of WiFi APIs.
  I want to connect to a configured WiFi Network programmaticaly.
  As decribed in this question:
  <a href="https://stackoverflow.com/questions/38691846/connect-to-wifi-network-android-programmatically">Connect to wifi network Android programmatically</a></p>
  <p>I develop on Android 10 and want to write a code that is also compatible with older Android Versions.</p>
  <p>On my android 10 the code described does not work.
  What code do I need to implement the functionality on Android 10?</p>
  <p>What do I do to write an application that also runs on my other Android 9 phone?</p>
  <p>Regards Jürgen</p>