Code example for TelephonyManager

Methods: getNetworkOperator

0
	    	lac_semaphore.release();
		} 
	     
	    try 
	    { 
			String networkOperator = tm.getNetworkOperator();
		    if (networkOperator != null) 
		        mcc = Integer.parseInt(networkOperator.substring(0, 3));
		    else 
		    	mcc = 0;
	    }catch(Exception e)
	    { 
	    	mcc = 0;
	    } 
 
	    // NCC changed? 
	    if (mcc != oldNCC)
	    { 
	    	oldNCC = mcc;
	    	ncc_read = true;
Stop searching for code, let great code find you!  Add Codota to your java IDE