Quantcast
Channel: Everyday I'm coding » networking
Viewing all articles
Browse latest Browse all 10

How do I know whether my iPhone/iPad is connected to 2G or 3G?

$
0
0

I was trying to check wether the device is connected via 2G (GPRS, EDGE) or 3G (UMTS, HSDPA).

I only found the Reachability example class from here (Apple Dev Example)

This example only check wether its Wifi or WWAN. I wanna use it to decide wether I download the small data or the huge files. As it is big different between GRPS and UMTS.

Is it possible to distinguish 2G and 3G?


Solution:

Since you can not get this information the official way, how about taking a screenshot and make some parser / image processing for the status bar network connectivity icon. Ugly, but would work. And would be fun :)


Viewing all articles
Browse latest Browse all 10

Trending Articles