locked
Cannot change icon from default Xamarin icon. RRS feed

  • Question

  • User189612 posted

    Hey.

    So i have a HUGE problem, i have created an app in Xamarin.Forms. The time has now come to change the icon, to one I have designed, but the problem is that I cannot get the app to change from the default Xamarin icon.

    I have tried everything, but it simply will not change. Any ideas?

    Thursday, January 21, 2016 11:00 AM

Answers

  • User233175 posted

    @JorgeGarcia.2431 said: Be ensure that you don't have an Icon Activity definition in your Main Activity because this overrides the manifest. It a very common situation. ;)

    Thank you! This was the issue, drove me crazy for a bit! You can also change the app display name here, perfect.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, August 24, 2017 2:34 PM

All replies

  • User60257 posted

    Is this in the Android Player? I had a problem with changing an app name and had to uninstall the app and restart the player before it would pick it up.

    Thursday, January 21, 2016 11:10 AM
  • User189612 posted

    No, i run it straight on my phone.. I have tried cleaning the solution, uninstalling the app from my phone, deleting the bin and obj folders manually.. And i have run out of ideas right now..

    Thursday, January 21, 2016 11:27 AM
  • User189612 posted

    Okay, so i narrowed down the problem, it's on my phone the problem is.. Like the icon is cached in some way? Installed it on a friends phone, and i works fine...

    Thursday, January 21, 2016 12:53 PM
  • User171749 posted

    Go to Settings > Applications / Applications Manager > All Applications > Uninstall or Clear Cache and it should do the trick if its the phones problem.

    If not replace the files in the Resource folder which are 72x72, 72x72, 96x96, 144x144 and make sure all icons are replaced. It might render a different icon on your friends phone. Make sure they are .png images too.

    Thursday, January 21, 2016 1:01 PM
  • User189612 posted

    I did all of the above.. And it hasn't helped one tiny bit. I even tried unistalling it from adb, to see if thet would help.

    Thursday, January 21, 2016 1:06 PM
  • User29221 posted

    The solution of @SeanDavies.1435 it's correct. if you have some problem creating right icon size try with Android Asset Studio at this link: goo.gl/Dzs60V

    After you have added all icon in relatives folder, modify the Manifest and in the Application Icon choose your icon.

    Friday, April 1, 2016 4:40 PM
  • User240432 posted

    @ChristianGraabk said: I did all of the above.. And it hasn't helped one tiny bit. I even tried unistalling it from adb, to see if thet would help.

    Did you find a solution? I am having SAME issue! Thanks!

    Saturday, September 24, 2016 9:14 PM
  • User218608 posted

    I am also facing the same issue, any luck @JimTyminski?

    Monday, October 3, 2016 3:00 PM
  • User281102 posted

    I faced same problem, and this thread didn't help. But this one on StackOverflow did the trick Simply, there are several versions of drowable folder (e.g. drawable, drawable-hdpi, drawable-xhdpi, etc) to represent different sizes of your icons All you need is to replace icon file in all those folders

    Sunday, December 4, 2016 1:22 PM
  • User212396 posted

    Be ensure that you don't have an Icon Activity definition in your Main Activity because this overrides the manifest. It a very common situation. ;)

    Tuesday, July 4, 2017 9:19 AM
  • User284691 posted

    Jorge's solution worked for me. Thanks

    Friday, August 18, 2017 6:41 PM
  • User233175 posted

    @JorgeGarcia.2431 said: Be ensure that you don't have an Icon Activity definition in your Main Activity because this overrides the manifest. It a very common situation. ;)

    Thank you! This was the issue, drove me crazy for a bit! You can also change the app display name here, perfect.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, August 24, 2017 2:34 PM
  • User234295 posted

    Need to add: :) Icon = "@drawable/icon" If your code is =======================

    [Activity(Label = "My App", Theme = "@style/Theme.DesignDemo", MainLauncher = true)]

    The replace it by using below code.==============================================

    [Activity(Label = "My App", Theme = "@style/Theme.DesignDemo", MainLauncher = true, Icon = "@drawable/icon)]

    happy coding :smile: B)

    Saturday, October 14, 2017 9:08 PM
  • User377900 posted

    After I replaced the images icon.png the app icon was not changed, I finally deleted the obj and bin folders and built the project.

    Saturday, November 10, 2018 11:36 PM