Code example for LocationManager

Methods: removeGpsStatusListenerremoveUpdates

0
    } 
 
	private void unregisterListeners() { 
    	if(locationManager != null) 
			try { 
				locationManager.removeUpdates(surfaceView);
				locationManager.removeGpsStatusListener(surfaceView);
			} catch (Exception e) {
			} 
     
    	if(sensorManager != null) 
    		sensorManager.unregisterListener(surfaceView);		
	} 
 
/* 
	public void onGpsStatusChanged(int event) { 
//		m_SatInfo = new int[m_IntsPerSat*m_LocationManager.getGpsStatus(null).getMaxSatellites()]; 
//		onMessage(Log.ERROR, "Max. satellites: "+m_SatInfo.length);		 
 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE