Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build an Interactive Story App (Retired) The Model-View-Controller Pattern Creating the Story

luis martinez
luis martinez
2,480 Points

android page0 color red

im using android development 1.1.0 and when i type in mPages[0].setImageId(R.drawable.page0);

it shows the (page0) in red color

on the side where it shows all the little folders it shows

β–Όminimap >Thumbs.db

ic_launcher maint_title.png page0.png(4) page1.png(1) etc.

1 Answer

Seth Kroger
Seth Kroger
56,414 Points

When you copied the files over for the pages, did you you copy along the drawable-??dpi folders or did you copy the files into the mipmap-??dpi folders instead? The files need to be in the drawable-???? folders to be accessible from R.drawable.

luis martinez
luis martinez
2,480 Points

i copied the pictures from the folder that i was suppose to download and just paste them on the minimap folders

luis martinez
luis martinez
2,480 Points

i fixed it. I had to replace the folders with the folders that i downloaded. Thank you for the help.