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

Build an interactive story (help!)

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.

Andrew Pritykin
Andrew Pritykin
6,574 Points

Can you take a screen shot? It sounds like your image resources are pasted in the wrong directory.

4 Answers

Solved it. Androids new version uses "R.mipmap.yourPicture" instead of drawable. I used it before and completely forgot haha.

luis martinez
luis martinez
2,480 Points

what did you do i am reviewing this part and i forgot how to do it

luis martinez
luis martinez
2,480 Points

i don't know how to post a screen shot. but what i did was i copied the pictures from the files that i was suppose to download and paste them on the mini map folders

luis martinez
luis martinez
2,480 Points

i got it fix thank you for the help

I'm having this same problem, how did you fix it? Thanks