Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a minimum SDK required for using Mipmap folders for launcher icons?

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?

like image 300
Michael Levy Avatar asked Apr 28 '15 15:04

Michael Levy


1 Answers

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.

like image 120
Hassaan Avatar answered Oct 20 '22 20:10

Hassaan