Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by -RaganorK- · Dec 12, 2016 at 10:01 PM · iconsmipmap

Issues with mipmap icons

Hi all,

I got a mail from Google which stated

  • The app must have a xxxhdpi (192 x 192 px) launcher icon so that the newest class of devices with high-density displays are best supported. Please note that launcher icons should be placed in /res/mipmap-[density]/ folders and set android:icon="@mipmap/app_icon" in manifest file as outlined in the following: http://developer.android.com/guide/practices/screens_support.html#support

How can I generate the mipmap icons ?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AllanBishop · Dec 14, 2016 at 03:18 AM 0
Share

I am also facing the same problem (email from Google as well). I have tried modifying my Android$$anonymous$$anifest.xml but it seems adding @mipmap in the tag is not working. $$anonymous$$odifying permissions in the Android $$anonymous$$anifest does work but maybe when Unity generates @drawable it overwrites @mipmap? The other idea I had was to export to an Android Studio project to get more control over the build process but that lead to other problems with plugins having the same class name (which does not happen if I build in Unity).

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by tkamruzzaman · Dec 14, 2016 at 07:58 AM

Step 01: Replace 'drawable' with 'mipmap' in main AndroidManifest.xml (Assets\Plugins\Android)

 <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
   <application android:icon="@mipmap/game_icon" android:label="@string/app_name" android:debuggable="true">

Step 02: Make a folder called 'res'. Make six sub folders 'mipmap-ldpi', 'mipmap-mdpi', 'mipmap-hdpi', 'mipmap-xhdpi', 'mipmap-xxhdpi', 'mipmap-xxxhdpi' and put respective dpi icons in them and renamed them 'game_icon'.

alt text

Note:

a) From the PlayerSettings's icon Uncheck the 'Override for Android' checkbox.

b) Icon per folder should have following sizes:

mipmap-ldpi = 36*36

mipmap-mdpi = 48*48

mipmap-hdpi = 72*72

mipmap-xhdpi = 96*96

mipmap-xxhdpi = 144*144

mipmap-xxxhdpi = 192*192


screenshot-23.png (4.9 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AllanBishop · Dec 15, 2016 at 08:18 AM 0
Share

This worked for me but I had to modify my manifest file that is located in my Unity installation at C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\androidplayer ins$$anonymous$$d.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Assign gameobject icon dynamically 0 Answers

Why is this error occuring and how to resolve it ? please help !! 1 Answer

Mipmaps don't get blur on iOS 0 Answers

How can I turn off gameobjects icons in camera view? 0 Answers

Why won't my UI script work? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges