Field[] ID_Fields = R.drawable.class.getFields();
int[] resArray = new int[ID_Fields.length];
for(int i = 0; i < ID_Fields.length; i++)
try {
resArray[i] = ID_Fields[i].getInt(null);
} catch (IllegalArgumentException e) {
e.printStackTrace();
}
}
i use this code by the help of this code we can get the name of all images means path but how we can create the integer array using this code