The mipmap folders are for placing your app/launcher icons (which are shown on the homescreen) in only. Any other drawable assets you use should be placed in the relevant drawable folders as before.
According to this Google blogpost:
It’s best practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions different from the device’s current density.
When referencing the mipmap- folders ensure you are using the following reference:
android:icon="@mipmap/ic_launcher"
The reason they use a different density is that some launchers actually display the icons larger than they were intended. Because of this, they use the next size up.
Related Posts:
- Android getResources().getDrawable() deprecated API 22
- How to convert a Drawable to a Bitmap?
- ‘App not Installed’ Error on Android
- What exactly is “com.google.android.packageinstaller”
- How to display Toast in Android?
- How to use adb command to push a file on device without sd card
- Exception : AAPT2 error: check logs for details
- Flutter pageview : Find first and last page and swipe directions
- How can I find and run the keytool
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- because an app is obscuring a permissions request, Settings can’t verify your response
- Android: adb pull file on desktop
- ADB No Devices Found
- adb shell su works but adb root does not
- Why fragments, and when to use fragments instead of activities?
- Session ‘app’: Error Installing APK
- adb shell su works but adb root does not
- MediaStore.Images.Media.insertImage deprecated
- Android ADB device offline, can’t issue commands
- Android SDK location
- Android Studio Run/Debug configuration error: Module not specified
- IllegalArgumentException: Unable to locate adb in Android Studio v2.3
- How to set the text color of TextView in code?
- What is the “AdMob Offline Notifications” notification channel?
- Why am I seeing net::ERR_CLEARTEXT_NOT_PERMITTED errors after upgrading to Cordova Android 8?
- A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
- How to change background color in android app
- Intel HAXM is required to run this AVD
- Unsupported method: BaseConfig.getApplicationIdSuffix()
- Font size of TextView in Android application changes on changing font size from native settings
- Android: How to handle right to left swipe gestures
- No tests found for given includes Error, when running Parameterized Unit test in Android Studio
- “cannot resolve symbol R” in Android Studio
- Session ‘app’ error while installing APK
- PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT (in windows 10)
- How to build a horizontal ListView with RecyclerView
- Emulator for Amazon Kindle
- What is difference between SQLite and SQL
- I am getting this error “your cpu doesn’t support vt-x or svm, android studio 2.1.1 in AMD 6300 processor”
- Getting activity from context in android
- Adding an onclicklistener to listview (android)
- Change status bar text color when primaryDark is white
- Android – Listen For Incoming SMS Messages
- How can you make a custom keyboard in Android?
- What does “Failure [INSTALL_FAILED_OLDER_SDK]” mean in Android Studio?
- How to give persiomission com.sec.android.provider.badge.permission.READ or WRITE in android 6.0
- java.lang.RuntimeException: Unable to start activity ComponentInfo
- Android LinearLayout Gradient Background
- Why emulator is very slow in Android Studio?
- “ArrayAdapter requires the resource ID to be a TextView” XML problems
- Android Studio SDK location
- Android Studio SDK location
- How to remove title bar from the android activity?
- android.content.ActivityNotFoundException: Unable to find explicit activity class
- Application Installation Failed in Android Studio
- What is INSTALL_PARSE_FAILED_NO_CERTIFICATES error?
- How to convert int to Integer
- ADB stopping at (waiting for devices)
- How can I get the android-support-v4.jar file (from Android Support Library) on Linux?
- What is the meaning of android.intent.action.MAIN?
- Disable back button in android
- Is there a way to get the source code from an APK file?
- How to clear gradle cache?
- Converting pixels to dp
- ViewText in Android
- Android SDK location should not contain whitespace, as this cause problems with NDK tools
- How can I open a URL in Android’s web browser from my application?
- ‘dependencies’ cannot be applied to ‘(groovy.lang.Closure)’
- Is it possible to use published instant apps(BuzzFeed, Wish, etc) on the emulator?
- Why this line xmlns:android=”http://schemas.android.com/apk/res/android” must be the first in the layout xml file?
- Difference between getContext() , getApplicationContext() , getBaseContext() and “this”
- Android Studio – No Target Device Found
- Android Overriding onBackPressed()
- adb socket not working and daemon
- Installation error: INSTALL_FAILED_OLDER_SDK
- Unable to load script from assets index.android.bundle on windows
- Default FirebaseApp is not initialized
- How can I create simple accordion with Angular 2?
- Error inflating class android.support.design.widget.FloatingActionButton
- How to change the color of a button?
- How do I parse JSON in Android?
- Cannot resolve symbol ‘AppCompatActivity’
- Change the project theme in Android Studio?
- setBackgroundDrawable() deprecated
- Your CPU does not support VT-x
- Android – border for button
- How to disable Instant Run for Android Studio 3.0
- Determining if an Android device is rooted programmatically?
- installation app blocked by play protect
- C2DM: How to use C2D_MESSAGE permission?
- I can’t find adb_usb.ini file in .android folder?
- Android; Check if file exists without creating a new one
- How to open adb and use it to send commands
- Unable to add window — token null is not valid; is your activity running?
- INSTALL_FAILED_NO_MATCHING_ABIS when install apk
- Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
- HAXM is not installed on this machine
- How to remove title bar from the android activity?
- Android: remove or disable programmatically the Lock Screen on Samsung Galaxy S2 device
- Could not find method android() for arguments