I found some block of code online,where the main aim of the snippet is to get image URI which is inside the res folder but when i changed the code to my apps path....the app crashes! I know the solution is simple n tricky,so please help me here is the method
public static SkyBox getSkyBox1() {
try {
return new SkyBox(new URI[]{
URI.create("com.habie.a3d_model/res/drawable/right.png"),
URI.create("com.habie.a3d_model/res/drawable/left.png"),
URI.create("com.habie.a3d_modelres/drawable/top.png"),
URI.create("com.habie.a3d_model/res/drawable/bottom.png"),
URI.create("com.habie.a3d_model/res/drawable/front.png"),
URI.create("com.habie.a3d_model/res/drawable/back.png")});
} catch (IOException e) {
throw new RuntimeException(e);
these are the images i want to use them....