Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/sunnygoy/public_html/ on line 3

2G-3G toggle or the network icon does not refresh on changing data plan

This is a known issue. The refresh only happens after the mobile network has actually changed and not just after changing the settings.

This is the only way possible in android, as there is no way to get this setting directly. It has to be inferred from the current network in use.