First, we want to replace the default launcher icon that came with the generated Canyon Bunny Android project. There is a special directory called res
that resides in the Android CanyonBunny-android
project. It contains resource files that are exclusively available to the Android application.
You will see the following four folders starting with drawable
in their names:
drawable-ldpi
(low-density screen)drawable-mdpi
(medium-density screen)drawable-hdpi
(high-density screen)drawable-xdpi
(extra high-density screen)
These folders are used by Android to support different screen sizes and resolutions resulting in different screen densities. For the sake of simplicity, we will ignore the whole topic of screen support and create a special common folder called drawable
. Android will use the contents from this folder regardless of the screen density detected.
The following screenshot shows the default launcher icon called ic_launcher.png
that our application...