author Sam Lantinga <>
Tue, 02 Apr 2013 07:55:25 -0700
changeset 7044 30b7b0f09c51
parent 6961 3ef29a1398ed
child 7165 f7fc1f0c3a08
permissions -rw-r--r--
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.

<?xml version="1.0" encoding="utf-8"?>
<!-- Replace with the identifier of your game below, e.g.
<manifest xmlns:android=""

    <!-- Create a Java class extending SDLActivity and place it in a
         directory under src matching the package, e.g.

         then replace "SDLActivity" with the name of your class (e.g. "MyGame")
         in the XML below.

         An example Java class can be found in
    <application android:label="@string/app_name"
        <activity android:name="SDLActivity"
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />

    <!-- Android 2.3.3 -->
    <uses-sdk android:minSdkVersion="10" /> 

    <!-- OpenGL ES 2.0 -->
    <uses-feature android:glEsVersion="0x00020000" /> 

    <!-- Allow writing to external storage -->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />