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 trialEleni Minadaki
3,687 PointsHow to set a preview icon on my app?
Hi!i am starting to make my first app and i would like to buy an icon and set it as preview but i don't know how.Any help appreciated!
Nizam Uddin GM Sikder
Courses Plus Student 865 PointsNizam Uddin GM Sikder
Courses Plus Student 865 PointsIf you intend on your application being available on a large range of devices, you should place your application icon into the different res/drawable... folders provided. In each of these folders, you should include a 48dp sized icon:
drawable-ldpi (120 dpi, Low density screen) - 36px x 36px drawable-mdpi (160 dpi, Medium density screen) - 48px x 48px drawable-hdpi (240 dpi, High density screen) - 72px x 72px drawable-xhdpi (320 dpi, Extra-high density screen) - 96px x 96px drawable-xxhdpi (480 dpi, Extra-extra-high density screen) - 144px x 144px drawable-xxxhdpi (640 dpi, Extra-extra-extra-high density screen) - 192px x 192px You may then define the icon in your AndroidManifest.xml file as such:
<application android:icon="@drawable/icon_name" android:label="@string/app_name" > .... </application>