Unfortunately, this isn't documented: Setting a priority to higher than 99,999 (or less than 0) will allow that network to be omitted from the most-recent-network-is-highest-priority. Could you try setting your priority to 100000 and letting us know if it works? If you're curious, this logic is in http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob_plain;f=src/com/android/settings/wifi/WifiLayer.java;hb=cupcake .
jason On Wed, May 20, 2009 at 9:31 AM, [email protected] <[email protected]> wrote: > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

