Code example for GpsStatus

Methods: getTimeToFirstFix

0
GpsStatus gpsStatus = locationManager.getGpsStatus(null);
    	 
    	if (gpsStatus != null)
    	{ 
    		return gpsStatus.getTimeToFirstFix();
    	} 
    	 
    	return -1; 
    } 
     
    public static GpsStatus getGPSStatus()
    { 
    	return locationManager.getGpsStatus(null);
    }   
     
    /* Private methods */ 
     
    private static Location getLastKnownLocation()
    { 
Contextual code suggestions in your IDE  Get Codota for Java