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 trialLiz Goldston
32 PointsAndroid - passing a value between apps
I have an app that has two users running on two different devices at the same time, a Rider and a Driver. The app is one app with the same package name. I can't seem to pass a value from an activity where the driver is signed into TO an activity where the rider is signed into.
Can this be done? What I am trying to do is, if the rider sends a ride request to the driver and on the driver side, accepts the request, I want an alert to show up in the activity on the riders side. I thought maybe if I declared a String "status" and if btnAccept is clicked,, status = "accepted" and if btnDeny is clicked, status = "denied". Once the button is clicked, the status variable should be passed to the Rider's activity so that the alert will show.
How can I do this?