Wifi Priority For Android

Eren uz 21 Reputation points
2022-02-22T06:15:42.427+00:00

I made an app in android that lists wifi's and can connect to them. I also want to prioritize my phone so that it always connects to the network I have selected as priority. How can I do it.

Developer technologies .NET Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-02-23T02:27:18.88+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    If your android target framework version is Android 10 (API level 29), you can use WifiNetworkSuggestion.Builder.setPriority method to set the Wi-Fi Priority for Android.

    If you use WifiConfiguration to connect Wi-Fi in API level 26, you can set the priority directly.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.