Reputation: 264
I'm building an android app with Visual Studio 15 Community, Ionic and Apache Cordova and I would like to update the icon of my ionic app. I'm emulating the app with Genymotion but I get the same result using the build-in android emulator from VS15.
Additionally, I used a blank ionic project.
I added the source of my icon in the config file (please note that I added the density myself, it has not been generated)
<icon src="resources/android/icon/icon.png" density="xxxhdpi" />
Created the app logo based on this blueprint: http://ionicframework.com/docs/cli/icon-splashscreen.html
Placed the .png file in the specific folder
$ ionic resources --icon
because I think that as soon as I build the app (pressing the play button in VS15) it does all the work for meMaybe I'm getting something wrong here because usually this isn't a big deal. I really appreciate all your answers, thank you for taking the time to deal with this!
Upvotes: 1
Views: 2923
Reputation: 3330
As of the latest updates. if the splash and the icon did not update. that is because the latest version of ionic creates 2 md5 files of the icon and the splash. which i guess is locking the updates.
just delete these 2 files: “icon.png.md5
” and “splash.png.md5
”.
then run the following command : ionic cordova resources
then splash and the icon should be updated. might be helpful to someone out there cheers!!
Upvotes: 1
Reputation: 264
As mentioned earlier by a user whos post has been deleted (why?), all I had to do was to
$ ionic resources
A quick note: I didn't know that I had to install the tools (Android SDK, Apache Cordova etc.) because I thought that Visual Studio downloads them due to the first build so why installing it locally. You must install them locally, it will not work without the tools installed on your machine.
Hope I could help
Upvotes: 0
Reputation: 479
Density is set to "xxxhdpi" density. Maybe you need to add another screen options? Try to refresh project, too.
Upvotes: 0