futureproofing is hard when getNetworkType() returns a magic number. 
ideally there would be a getNetwork() which returned a reference to 
an object which had all the good network knowledge.

(and magic numbers are unfortunately very common throughout the Android API.)



>Keep in mind that in the future there will be other network types, 
>such as on CDMA devices in the near future, and whatever new cell 
>network protocols appear even later.  Depending on comparing against 
>a fixed set of types is not robust.


-- 
jason.software.particle

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