In my application I need to react on APN changes (including going back
and forth between WiFi and GSM connections) and change proxy settings
in case it needs to be taken into account to connect with the network.
I'm listening for ConnectivityManager.CONNECTIVITY_ACTION broadcasts
to check for APN changes which contains 'reason' extra among others.
Unfortunately the 'reason' for APN change is not documented, maybe it
should not be used? I was using (with limited success)
reason:apnChanged and reason:apnSetupComplete as indicators of APN
change being done but that does not work well with going back and
forth between WiFi and mobile connection. What is the correct way of
listening for changes of current network APN/Interface?

-- 
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

Reply via email to