Code example for GsmCellLocation

Methods: getCid, getLac

0
	} 
	 
	@Override 
	public void onCellLocationChanged (CellLocation location){
		GsmCellLocation loc = (GsmCellLocation) location;
		Log.e("Antenna Info:", loc.getCid()+"|"+loc.getLac());
	} 
	 
	public void initTypeOfService(Context context){
		 
		intentFilterNetwork = new IntentFilter();
		intentFilterNetwork.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
		broadcastReciever = new BroadcastReceiver(){
 
			@Override 
			public void onReceive(Context context, Intent intent) {
				// TODO Auto-generated method stub. 
				if( intent.getAction().equals(ConnectivityManager.CONNECTIVITY_ACTION)){
					typeOfService = intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
					Log.e("Type of service", typeOfService.getSubtypeName());
				}