How to get files name from a specific path as Integer[] in java?

I am developing an android application. I have some image files stored in drawable folder and images in that folders are retrieved using

static Integer[] imageList = {R.drawable.cupcake, R.drawable.donut, 
R.drawable.eclair, R.drawable.froyo, R.drawable.gingerbread, 
R.drawable.honeycomb, R.drawable.ics, R.drawable.jellybean, 
R.drawable.kitkat, R.drawable.lollipop,R.drawable.marsh};//These are images that i have pasted into res->Drawable folder

Now I want to retrive all images stored in a specific path(“storage/emulated/0/MyImages/”).

instead of

static Integer[] imageList = {R.drawable.cupcake...etc} //These are images that i have pasted into res->Drawable folder

I want to retrive images form a directory in

Integer[] imageList = {images in the directory}

when i use the above code it is retriveing images properly.but i dont know how to retrive images from a directory.