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);
}

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 ) ; }
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
