Fixed bug 1779 - SDL's Android project template has old default icons from Android.
authorSam Lantinga
Tue, 02 Apr 2013 07:55:25 -0700
changeset 704430b7b0f09c51
parent 7043 fb7b426ab660
child 7045 4be2c24b7de1
Fixed bug 1779 - SDL's Android project template has old default icons from Android.

Philipp Wiesemann

SDL's Android project template has old default icons from Android while iOS project template has custom icons with SDL's logo.

There is a Wizard in the Android Developer Tools to create "Android Icon Sets". As an example I created icons from the iOS loading screen and attached them in a ZIP archive. They are named "ic_launcher.png" instead of "icon.png" because that is the new name used in Android projects. To use them the AndroidManifest.xml needs to be changed to have "@drawable/ic_launcher" instead of "@drawable/icon". I do not know why there was no icon created for ldpi. Maybe it is deprecated.
     1.1 --- a/android-project/AndroidManifest.xml	Tue Apr 02 07:51:23 2013 -0700
     1.2 +++ b/android-project/AndroidManifest.xml	Tue Apr 02 07:55:25 2013 -0700
     1.3 @@ -18,7 +18,7 @@
     1.4           An example Java class can be found in
     1.5      -->
     1.6      <application android:label="@string/app_name"
     1.7 -                 android:icon="@drawable/icon"
     1.8 +                 android:icon="@drawable/ic_launcher"
     1.9  	         android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
    1.10          <activity android:name="SDLActivity"
    1.11                    android:label="@string/app_name">
     2.1 Binary file android-project/res/drawable-hdpi/ic_launcher.png has changed
     3.1 Binary file android-project/res/drawable-hdpi/icon.png has changed
     4.1 Binary file android-project/res/drawable-ldpi/icon.png has changed
     5.1 Binary file android-project/res/drawable-mdpi/ic_launcher.png has changed
     6.1 Binary file android-project/res/drawable-mdpi/icon.png has changed
     7.1 Binary file android-project/res/drawable-xhdpi/ic_launcher.png has changed
     8.1 Binary file android-project/res/drawable-xxhdpi/ic_launcher.png has changed