Code example for HashMap

Methods: put

0
    private static final File REPORT_DIR = new File("/sdcard/bugreports");
    private static final int SYSTEM_LOG_ID = 1;
    private static final int MEMORY_ID = 2;
    private static final int CPU_ID = 3;
    private static final int PROCRANK_ID = 4;
    private static final HashMap<Integer, String> ID_MAP = new HashMap<Integer, String>();
 
    static { 
        ID_MAP.put(SYSTEM_LOG_ID, "SYSTEM LOG");
        ID_MAP.put(MEMORY_ID, "MEMORY INFO");
        ID_MAP.put(CPU_ID, "CPU INFO");
        ID_MAP.put(PROCRANK_ID, "PROCRANK");
    } 
 
    private ArrayAdapter<String> mAdapter = null;
    private ArrayList<File> mFiles = null;
    private Handler mHandler = null;
    private FileObserver mObserver = null;
 
    @Override 
    public void onCreate(Bundle savedInstanceState) {