Android Search String Replace
when i Search text with space it returned.. it used xmlParser
How i can Replace search qury " " to "+".
i want replace space to +


    public MusicDirectory parse(Reader reader, ProgressListener progressListener) throws Exception {
        if (progressListener != null) {
            progressListener.updateProgress("Reading from server.");
        }

        XmlPullParser parser = Xml.newPullParser();
        parser.setInput(reader);

        MusicDirectory dir = new MusicDirectory();
        int eventType;
        do {
            eventType = parser.next();
            if (eventType == XmlPullParser.START_TAG) {
                String name = parser.getName();
                if ("match".equals(name)) {
                    dir.addChild(parseEntry(parser));
                } else if ("error".equals(name)) {
                    handleError(parser);
                }
            }
        } while (eventType != XmlPullParser.END_DOCUMENT);

        if (progressListener != null) {
            progressListener.updateProgress("Reading from server.");
        }
        return dir;
    }

}
Android Search String Replace
===

when i Search text with space it returned.. it used xmlParser
How i can Replace search qury " " to "+".
i want replace space to +


    public MusicDirectory parse(Reader reader, ProgressListener progressListener) throws Exception {
        if (progressListener != null) {
            progressListener.updateProgress("Reading from server.");
        }

        XmlPullParser parser = Xml.newPullParser();
        parser.setInput(reader);

        MusicDirectory dir = new MusicDirectory();
        int eventType;
        do {
            eventType = parser.next();
            if (eventType == XmlPullParser.START_TAG) {
                String name = parser.getName();
                if ("match".equals(name)) {
                    dir.addChild(parseEntry(parser));
                } else if ("error".equals(name)) {
                    handleError(parser);
                }
            }
        } while (eventType != XmlPullParser.END_DOCUMENT);

        if (progressListener != null) {
            progressListener.updateProgress("Reading from server.");
        }
        return dir;
    }

}