{"id":97,"date":"2009-01-31T21:42:48","date_gmt":"2009-02-01T04:42:48","guid":{"rendered":"http:\/\/www.connorgarvey.com\/blog\/?p=97"},"modified":"2011-07-14T11:10:38","modified_gmt":"2011-07-14T18:10:38","slug":"android-application-icon-tutorial","status":"publish","type":"post","link":"https:\/\/connorgarvey.com\/blog\/?p=97","title":{"rendered":"Android application icon tutorial"},"content":{"rendered":"<p>Assigning an icon to your Android application just takes a minute.\u00a0 Actually creating the icon may take a bit longer. \ud83d\ude1b<\/p>\n<ol>\n<li>Create a 48&#215;48 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Portable_Network_Graphics\" target=\"_blank\">PNG<\/a> and drop it into \/res\/drawable.\u00a0 The name of this file is usually &#8220;icon.png&#8221;.<\/li>\n<li>Open your AndroidManifest.xml.<\/li>\n<li>Right under the root &#8220;manifest&#8221; node of the XML, you should see the &#8220;application&#8221; node.\u00a0 Add this attribute to &#8220;application&#8221;. (The &#8220;icon&#8221; in &#8220;@drawable\/icon&#8221; refers to the file name of the icon.)\n<pre>android:icon=\"@drawable\/icon\"<\/pre>\n<\/li>\n<\/ol>\n<p>Your app is now iconned.<\/p>\n<p>To support multiple resolutions, you can create icons of different resolutions and place them in the correct folders.<\/p>\n<ul>\n<li> Low density\n<ul>\n<li>res\/drawable-ldpi<\/li>\n<li>36&#215;36 resolution<\/li>\n<\/ul>\n<\/li>\n<li>Medium density\n<ul>\n<li>res\/drawable-mdpi<\/li>\n<li>48&#215;48 resolution<\/li>\n<\/ul>\n<\/li>\n<li>High density\n<ul>\n<li>res\/drawable-hdpi<\/li>\n<li>72&#215;72 resolution<\/li>\n<\/ul>\n<\/li>\n<li>Extra high density\n<ul>\n<li>res\/drawable-xhdpi<\/li>\n<li>96&#215;96 resolution<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Assigning an icon to your Android application just takes a minute.\u00a0 Actually creating the icon may take a bit longer. \ud83d\ude1b Create a 48&#215;48 PNG and drop it into \/res\/drawable.\u00a0 The name of this file is usually &#8220;icon.png&#8221;. Open your AndroidManifest.xml. Right under the root &#8220;manifest&#8221; node of the XML, you should see the &#8220;application&#8221; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[57],"tags":[3,11,8],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-android","tag-android","tag-icon","tag-mobile"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1ql2n-1z","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/connorgarvey.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/connorgarvey.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/connorgarvey.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/connorgarvey.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/connorgarvey.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=97"}],"version-history":[{"count":4,"href":"https:\/\/connorgarvey.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/97\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/connorgarvey.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/97\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/connorgarvey.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/connorgarvey.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/connorgarvey.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}