@NonNull
        public Builder setUrl(@NonNull final String url, @Nullable final String defaultScheme) {
            if (StringUtils.isEmpty(url)) {
                uri = Uri.EMPTY;
                return this;
            }

            // Assume uri has a scheme
            uri = Uri.parse(url);
            if (uri.isRelative()) {
                // If not the case use default
                if (defaultScheme != null) {
                    uri = uri.buildUpon().scheme(defaultScheme).build();
                } else {
                    //if defaultScheme is null, then assume file
                    uri = Uri.fromFile(new File(url));
                }
            }
            return this;
        }
Set image url from String.

@param url The image url from String
main/src/main/java/cgeo/geocaching/models/Image.java