title: How to set wifi configuration priority?
body: <p>I need to programmatically register wifi configurations along with priorities (i.e if multiple registered wifi networks are available the system should connect to the one with the highest priority).</p>
  <p>The documentation says that <a href="https://developer.android.com/reference/android/net/wifi/WifiConfiguration#priority" rel="nofollow noreferrer">WifiConfiguration.priority</a> has been removed in API level 26 but doesn't provide any alternative.</p>
  <p>In API level 29 there is a new network API with a <a href="https://developer.android.com/reference/android/net/wifi/WifiNetworkSuggestion.Builder#setPriority(int)" rel="nofollow noreferrer">WifiNetworkSuggestion.Builder.setPriority</a> method, but it's only available for devices with Android &gt;= 10.</p>
  <p>Is it somehow possible to set priorities for wifi configurations ?</p>