[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-18 Thread Moto
How about you use: TelephonyManager c=(TelephonyManager) Context.getSystemService (Context.TELEPHONY_SERVICE); switch (c.getNetworkType()) { case TelephonyManager.NETWORK_TYPE_UNKNOWN: Log.i("CONNECTION", "UNKNOWN");

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-18 Thread Dianne Hackborn
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. On Sat, Apr 18, 2009 at 4:11 PM, Moto wrote: > > How about

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-18 Thread Moto
I believe what you are saying is true, but as of now this is the best and fastest way to achieve a "guess" as of how fast the users data connection is... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-20 Thread Tyler Havlicek
what is 3G network??? Thanks, Have a great day! Tyler. On Sat, Apr 18, 2009 at 7:41 PM, Dianne Hackborn wrote: > 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. Depend

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-20 Thread Moto
I believe GPRS is 3G --~--~-~--~~~---~--~~ 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 an

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-04-20 Thread Dianne Hackborn
They aren't magic numbers, they are enumerations. Just often implemented as static constants, because that is way way more efficient than a Java enumeration. True, having an additional API to get all kinds of information about the current network is a good idea and would be nice. A patch would p

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-03-02 Thread Kather Jailani
Try getActiveNetworkInfo or getNetwokInfo methods On Mar 2, 2009 3:13 PM, "rycerz1411" wrote: Is there a way to distinguish between Edge and 3G network? I have looked at the ConnectivityManager getType method but all it returns is MOBILE or WI_FI. For 3G i want to show user different UI that I

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-03-02 Thread rycerz1411
That's exactly what I have tried ConnectivityManager c=(ConnectivityManager) getSystemService (Context.CONNECTIVITY_SERVICE); Log.i(TAG, "c.getActiveNetworkInfo()="+c.getActiveNetworkInfo ()); NetworkInfo info=c.getActiveNetworkInfo(); Log.i(TAG,"info.getTypeName()=

[android-developers] Re: Distinguishing Between Edge and 3G network

2009-03-05 Thread rycerz1411
Well I created a workaround for this, by testing network download speed. Here is a link to the source code http://www.gregbugaj.com/?p=47";>Source This is not perfect but it works, maybe they are using one of their internal packages that are not available via SDK. On Mar 2, 1:39 pm, rycerz1411