Code example for Location

Methods: bearingTo

0
            int cx = w / 2;
            int cy = h / 2;
 
            canvas.translate(cx, cy);
            if (mValues != null) {
                canvas.rotate(-(mValues[0] - myLocation.bearingTo(theirLocation)) % CIRCLE_DEGREES);
            } 
            canvas.drawPath(mPath, mPaint);
        } 
    } 
 
	/** 
	 * Returns the string or "-" if null. 
	 * @param s the string 
	 * @return the string or "-" 
	 */ 
	private String cleanString(final String s) {
		if (s != null && !s.equals("null") && !s.equals("")) {
			return s;
		} 
		return "-";