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 a Blog Reader Android App Using Intents to Display and Share Posts Easy Sharing with Intents

Dylan Merritt
Dylan Merritt
15,682 Points

Share button not working.

I have looked over my code several times, comparing it with Ben's code, and yet it still won't work. The share button is in my action bar, but nothing happens when I click on it. Can anyone help? Here is my code.

Take a picture of the code, so we can see where the red lines are at. Also, can you link to the xml file too?

Dylan Merritt
Dylan Merritt
15,682 Points

There are no red lines. Android Studio shows that everything is working, but nothing happens when the share button is clicked. Here is my XML code.

I can't seem to get mine to work either on the emulator. Only on my phone