networking - Listen/register 2G 3G change on android -
i know how know network type :
telephonymanager telmanager = (telephonymanager) context.getsystemservice(context.telephony_service); int network_type = telmanager.getnetworktype();
but want register when phone switch 2g 3g or 3g 2g...
anyway ?
thanks helping me. regards jim
you should use phonestatelistener class. contains method ondataconnectionstatechanged (int state, int networktype)
.
hope help.
Comments
Post a Comment