public static PersistableBundle restoreFromXml(XmlPullParser in) throws IOException,
            XmlPullParserException {
        final int outerDepth = in.getDepth();
        final String startTag = in.getName();
        final String[] tagName = new String[1];
        int event;
        while (((event = in.next()) != XmlPullParser.END_DOCUMENT) &&
                (event != XmlPullParser.END_TAG || in.getDepth() < outerDepth)) {
            if (event == XmlPullParser.START_TAG) {
                return new PersistableBundle((Map<String, Object>)
                        XmlUtils.readThisMapXml(in, startTag, tagName, new MyReadMapCallback()));
            }
        }
        return EMPTY;
    }
public static PersistableBundle restoreFromXml ( XmlPullParser in ) throws IOException , XmlPullParserException { final int outerDepth = in . getDepth ( ) ; final String startTag = in . getName ( ) ; final String [ ] tagName = new String [ 1 ] ; int event ; while ( ( ( event = in . next ( ) ) != XmlPullParser . END_DOCUMENT ) && ( event != XmlPullParser . END_TAG || in . getDepth ( ) < outerDepth ) ) { if ( event == XmlPullParser . START_TAG ) { return new PersistableBundle ( ( Map < String , Object > ) XmlUtils . readThisMapXml ( in , startTag , tagName , new MyReadMapCallback ( ) ) ) ; } } return EMPTY ; }
@hide