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 Intents and Multiple Activities Getting Resources from the Context

about resources

we are assigning the key to key variable and we had put key in put extra method so my doubt is why can't we use this key variable in getStringExtra method instead of again calling getstring(R.string.key_name). I have tried but it is giving me an error.., thank you...

1 Answer

Hi. Could you paste the part of the code you're referring to here and maybe also your code with the changes you'd like to make? It would make it easier to help you. Thanks