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

Ricky Sparks
Ricky Sparks
22,249 Points

I cant paste icon share photo in android studio xhdpi folder

The course is in eclipse and i am using android studio

4 Answers

Caleb Kester
Caleb Kester
1,710 Points

Make sure your icon is out of the zip. I tried pasting the icon from a zip and it didn't work. Once I unzipped it worked.

David Hope
David Hope
19,876 Points

Hi Ricky, are you using a PC or Mac? If you're a PC user, here's what you need to do: First, right click directly on the share icon for xhdpi and select copy. Second, go into Android Studio and right-click paste directly on the drawable_xhdpi file. You will next need to rename it if you're using the social share icon whose file name begins with a number. I hope this helps Ricky!

Ricky Sparks
Ricky Sparks
22,249 Points

Still cant paste it and i also have these errors heres a picture of it http://imgur.com/oXRyubG

David Hope
David Hope
19,876 Points

Is your issue with the icon confined solely to the xhdpi version Ricky or did you have issues with hdpi and mdpi as well? Does your code for the Log Exception method look anything like the following:

private void logException(Exception e) { Log.e(TAG, "Exception caught!", e); }

Boris Vukobrat
Boris Vukobrat
4,248 Points

I think this is known bug in Android Studio. Although there is a solution (holding alt key I think), you could use regular File manager to store res files within project.

Boris Vukobrat
Boris Vukobrat
4,248 Points

Ricky James -

I consider dragging as luxury and risky option : ). I often drop it somewhere wrong. So I stick to good ole cut/paste.