Get Images From File In Android Directory As Integers : Am storing some images in `List` Initialized by `Integer`. I want to add images from the user directory in the same manner but I have trouble converting the files to `int`.

    List<Integer> ids = new ArrayList<>();
    ids.add(R.drawable.pic1);
    ids.add(files[i].getName()) //change this to an int from path-string
    ids.add(R.drawable.pic2);

Help me out


