7
votes

I've read about the mipmap folders for launcher icons in Managing Launcher Icons as mipmap Resources and How should we use the mipmap folders added with android 4.4?.

Is there a minimum SDK version required to use this? Is there a specific target sdk below which this won't work? I'd like to support:

<uses-sdk
   android:minSdkVersion="10"
   android:targetSdkVersion="19"/>

Usage of mipmap launcher icons before Android 4.2? has a similar question, but no definitive answer. If I need to support Android 2.3.4 should I put launcher icons in the mipmap folders and in the drawable folders?

1
So I have the same question, as I need to publish update to users, did you notice any crashes with 2.3.4 while using mipmap for launher icons ? I need to support from 2.2 onwardsAhmed

1 Answers

3
votes

Since R.mipmap was added in SDK 11 or Honeycomb as seen in Android docs, I would say that the minimum SDK to use Mipmap folders in Android is SDK 11. This means you will need to keep using the drawable folders if you wish to keep supporting Android 2.3.

Edit: So I have been doing some digging into AOSP and it seems to come with a MipmapDrawable class since Android 2.1. The class was then hidden for Honeycomb's more integrated Mipmap resource system.