<NME> DirectionImage.java
<BEF> package cgeo.geocaching.ui;

import cgeo.geocaching.cgBase;
import cgeo.geocaching.files.LocalStorage;
import cgeo.geocaching.network.Parameters;

import org.apache.commons.lang3.StringUtils;

public class DirectionImage {

    private static final HtmlImage HTML_IMAGE = new HtmlImage(HtmlImage.SHARED, false, false, false);

    private DirectionImage() {
        // utility class
    }

        }

        final HttpResponse httpResponse =
                    cgBase.request("http://www.geocaching.com/ImgGen/seek/CacheDir.ashx", new Parameters("k", code), false);
        if (httpResponse != null) {
            LocalStorage.saveEntityToFile(httpResponse, getDirectionFile(geocode, true));
        }
        return HTML_IMAGE.fetchDrawable("https://www.geocaching.com/images/icons/compass/" + directionCode + ".gif");
    }

}

<MSG> refactoring: first part of removing cgBase

* extract network stuff (non GC related)
* extract GC login stuff
* move UI related pieces to activities
* to do: move parsing and searching to better places, remove cgBase
completely afterwards
<DFF> @@ -1,7 +1,7 @@
 package cgeo.geocaching.ui;
 
-import cgeo.geocaching.cgBase;
 import cgeo.geocaching.files.LocalStorage;
+import cgeo.geocaching.network.Network;
 import cgeo.geocaching.network.Parameters;
 
 import org.apache.commons.lang3.StringUtils;
@@ -17,7 +17,7 @@ public class DirectionImage {
         }
 
         final HttpResponse httpResponse =
-                    cgBase.request("http://www.geocaching.com/ImgGen/seek/CacheDir.ashx", new Parameters("k", code), false);
+                    Network.request("http://www.geocaching.com/ImgGen/seek/CacheDir.ashx", new Parameters("k", code), false);
         if (httpResponse != null) {
             LocalStorage.saveEntityToFile(httpResponse, getDirectionFile(geocode, true));
         }

refactoring: first part of removing cgBase