Code example for TelephonyManager

Methods: isNetworkRoaming

0
						reading[5] = (byte)(oldcellLac & 0xff);			
					} 
					break; 
				case 'R': 
					// try reading GSM cell info 
			        if (tm.isNetworkRoaming()==true)
			        	roaming = 1;
			        else 
			        	roaming = 0;
					// any change? 
					if (roaming != oldroaming)
					{ 
						oldroaming = roaming;
						reading = new byte[6];
						reading[0] = (byte)sensor.charAt(0);
						reading[1] = (byte)sensor.charAt(1);
						reading[2] = (byte)((roaming>>24) & 0xff);
						reading[3] = (byte)((roaming>>16) & 0xff);
						reading[4] = (byte)((roaming>>8) & 0xff);
						reading[5] = (byte)(roaming & 0xff);			
					}