Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by Hotshot10101 · Sep 13, 2014 at 10:29 PM · androidpluginicon

Unity3D Android Plugin App Icon Issue

I wrote an Android plugin. Since I have to ask for GPS permissions I exported the AndroidManifest.xml file from exporting the project as and Android project. I then fixed the naming issues so that it will run (the package name and activity name needs to match Unity's internal naming).

Now the problem is that the app icon is blank when the app is on my android device. I didn't change that part. It still says android:icon="@drawable/app_icon"

I am assuming that something needs to change in relation to this for it to work when I am not building in the Android SDK. I just have the manifest file in my plugins/android folder.

Can someone help me please?

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 liortal · Sep 27, 2014 at 06:20 PM 0
Share

did you just place the manifest in Assets/Plugins/Android or did you also export some library? (e.g: your plugin)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Hazzanger · Sep 26, 2016 at 12:47 AM

@Hotshot10101

I've actually been spending forever figuring out how to do this. It seems there's not much information out there about this topic.

  • What I did was rename my icon.png image to app_icon.png

  • I imported it as a sprite in Unity

  • The manifest.xml file in whatever IDE you're using doesn't matter. Unity overrides it

  • Within your plugins/android/manifest.xml file in Unity, under the application tag change it to say the following under the < application > tag:

    < application android:icon="@drawable/app_icon" android:label="@string/app_name" >

The most important part is that it says : android:icon="@drawable/app_icon" app_icon being the name of your icon within Unity minus the extension. I don't know why it isn't mipmap, but drawable worked for me. Let me know if you have questions or concerns

Comment
Add comment · 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

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

25 People are following this question.

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

Related Questions

Access app_icon from an Android Plugin 2 Answers

How to use AndroidJavaObject/AndroidJavaClass 0 Answers

Android Unity Plugin - UnityPause(bool pause) 0 Answers

Android plugin breaks when using receiver. 1 Answer

Using two Unity Android Plugins that want to be the main activity? 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