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 trialbohot hard
405 Pointsabout 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
Lauren Moineau
9,483 PointsHi. 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