question: public static final void writeBooleanArrayXml ( boolean [ ] val , String name , XmlSerializer out ) throws XmlPullParserException , java . io . IOException { if ( val == null ) { out . startTag ( null , "null" ) ; out . endTag ( null , "null" ) ; return ; } out . startTag ( null , "boolean-array" ) ; if ( name != null ) { out . attribute ( null , "name" , name ) ; } final int N = val . length ; out . attribute ( null , "num" , Integer . toString ( N ) ) ; for ( int i = 0 ; i < N ; i ++ ) { out . startTag ( null , "item" ) ; out . attribute ( null , "value" , Boolean . toString ( val [ i ] ) ) ; out . endTag ( null , "item" ) ; } out . endTag ( null , "boolean-array" ) ; }
target:  Flatten a boolean[] into an XmlSerializer.  The list can later be read back with readThisBooleanArrayXml().