I am trying to to use WiFi API to set priorities to created profiles.
I am using the priority field of WifiConfiguration to set this
information.

I have found out that no matter what priority I set, Android always
tries to re-connect to the latest access point that it was connected
to.

Here is what I do:

1) I create a profile A with a very low priority (0)
2) I create a profile B with high priority (100)
3) I connect to profile A
4) I turn Wi-Fi off
5) I turn Wi-Fi back on
6) In the scan Android sees both A & B
7) Android connects to A, even though its priority is much lower

Does anyone has a work around for this?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to