question: public void addNewNumberToStringEntry ( String strId ) { if ( mNumberToIDMap == null ) return ; int baseId = 0x10000000 ; java . util . Random random = new java . util . Random ( ) ; int id = baseId | random . nextInt ( 0x1000 ) ; Integer intId = Integer . valueOf ( id ) ; while ( mNumberToIDMap . containsKey ( intId ) ) { id = baseId | random . nextInt ( 0x1000 ) ; intId = Integer . valueOf ( id ) ; } mNumberToIDMap . put ( intId , strId ) ; }
target:  add ad new numeric to string ID map.  A unique numeric number will be allocated. We use this method to add new mapping for unnamed and duplicate entries in xml