<NME> UrlLoader.java
<BEF> ADDFILE
<MSG> Use FragmentActivity instead of Activity as base

Also, this requires the use of a Loader to visit a cache, since data
cannot be retained accross a configuration change.

<DFF> @@ -0,0 +1,35 @@
+package cgeo.geocaching.loaders;
+
+import cgeo.geocaching.network.Network;
+import cgeo.geocaching.network.Parameters;
+import cgeo.geocaching.utils.Log;
+
+import android.content.Context;
+import android.support.v4.content.AsyncTaskLoader;
+
+public class UrlLoader extends AsyncTaskLoader<String> {
+
+    final private String url;
+    final private Parameters params;
+
+    public UrlLoader(final Context context, final String url, final Parameters params) {
+        super(context);
+        this.url = url;
+        this.params = params;
+    }
+
+    @Override
+    protected void onStartLoading() {
+        forceLoad();
+    }
+
+    @Override
+    public String loadInBackground() {
+        try {
+            return Network.getResponseData(Network.getRequest(url, params));
+        } catch (final Exception e) {
+            Log.w("cgeovisit.UrlLoader.loadInBackground", e);
+            return null;
+        }
+    }
+}

Use FragmentActivity instead of Activity as base