@Override
    public void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        if (--instances == 0) {
            compassArrow.recycle();
        }
    }
pixel size of the square arrow bitmap
main/src/main/java/cgeo/geocaching/ui/CompassMiniView.java