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!
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
Matthew Williams3,103 Points
How exactly does intent extra work?
In Stage 3 video 4 (Working with Intent Extras) Ben passed data to another class using an intent. The only problem for me is that when he passes the intent it's a totally new variable. If that's the case how will the name be remembered if it's a new variable outside the scope (This question will require you to watch the video)?
I thought that working with extras was more out of that scene from Star Wars VI when Han Solo and the gang have a passcode to go Jakuu but it's an 'older clearance, so it checks out'. So will our intents inside a scope work like that or will it not be remembered when that data is passed?