Code example for Location

Methods: bearingTo

0
        paint.setAntiAlias(true);
        paint.setStyle(Paint.Style.FILL);
 
        drawDials(canvas);
 
        float bearing = mCurrLoc.bearingTo(mDestLoc);
        canvas.rotate(bearing);
        paint.setColor(mNeedleColor);
        canvas.drawPath(mNeedlePath, mPaint);
    } 
 
    @Override 
    public void surfaceChanged(SurfaceHolder holder, int format, int width,
            int height) {
        // TODO Auto-generated method stub 
    } 
 
    @Override 
    public void surfaceCreated(SurfaceHolder holder) {
        if (mThread == null) {
            mThread = new CompassThread(holder, mContext, new Handler() {