Listen/register 2G 3G change on android

1.3k views Asked by At

I know how know network type with :

TelephonyManager telManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
int network_type = telManager.getNetworkType();

But I want to register when the phone switch into 2G to 3G or 3G to 2G...

Anyway to do this ?

Thanks for helping me. Regards Jim

1

There are 1 answers

0
Pasha On BEST ANSWER

You should use PhoneStateListener class. He contains method onDataConnectionStateChanged (int state, int networkType).

Hope its help.