public static Context wrap(final Context ctx) {
        return wrap(ctx, R.style.cgeo);
    }
If given context is or wraps an Activity, this activity is returned,
Otherwise null is returned
main/src/main/java/cgeo/geocaching/ui/ViewUtils.java