How about you use:
TelephonyManager c=(TelephonyManager) Context.getSystemService
(Context.TELEPHONY_SERVICE);
switch (c.getNetworkType())
{
case TelephonyManager.NETWORK_TYPE_UNKNOWN:
Log.i("CONNECTION", "UNKNOWN");
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
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
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
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
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
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
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()=
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
9 matches
Mail list logo