I have made an Android application. It was done by Phonegap Build. Now I want to share it.
But whenever I go to Phonegap Build's page of my app (https://build.phonegap.com/apps/1539142) it doesn't show my app's icon. Rather it shows the phonegap's icon. Now it is not possible to share an app in this way. Image attached for showing.
I am talking about the icon just beside the name of app. What is the problem and a solution?
It should be enough to add this line to your config.xml:
<icon src="AppResources/icons/icon.png"/>
And make sure that the Icon file is in the same Directory.
#Abeer, You need to add all the icons sizes. I know that because I did it before with Android. When I added iOS, I marked the size of each icon on the icon. That way I could tell the size of the icon displayed. So when I added iOS to my Splash Screen Demo, Phonegap build used the 180x180 icon for iOS instead of the Android. In your case, I think you just have to make sure you add all the icons sizes. This is the reference I used.
Adendum - July 15, 2015
#Abeer,
Source:
https://github.com/jessemonroy650/Phonegap-Splashscreen-Test
All examples:
http://codesnippets.altervista.org/examples/phonegap/demos/PUBLIC.Apps.html
I did not use Eclipse or Android Studio either. I upload www. I use github.com, is same as www folder
Related
I created a new icon for my app and I used flutter launcher icons for generate the launcher icon.
In the midmap folders there is the ic_launcher.png and if I open it is my new launcher icon.
But if I install the app via android studio on my phone it shows the old icon.
It happened to me even when I created the first icon.
It went all well but the app had the default flutter icon.
It started to show the new one when I changed the app name but now I cannot change it again.
I already tried with the flutter-launcher-icons widget, to use flutter clean, ecc... but it doesn't change.
Why there is this problem? And where the app takes the old logo information?
UPDATE
I discovered a workaround for this problem.
If I delete all generated files (even the ones that looks right) and then I regenerate them when I install the app on the phone the icon looks right.
There will be 5 different mipmap files within android/app/src/res/main folder. Each mipmap consists icon launcher of different dimensions and pixels. Make sure you have replaced all 5 icon launchers with your generated Icon Launcher.
You can Generate Icon Launcher from here.
I see this issue still hasn't been resolved. I did find a workaround when I ran into the same problem. Just add
adaptive_icon_foreground: 'assets\logo.png'
adaptive_icon_background: '#000000'
in your pubspec.yaml under flutter_icons: where you can mention any suitable background color in hex for adaptive_icon_background.
I've had a similar problem, where the app icon would always be the androids default one. The way I fixed this, was by looking at the following Github thread: https://github.com/flutter/flutter/issues/59305
I noticed, that there was an error in my AndroidManifest.xml, where the android:icon="#mipmap/launcher_icon" was not inside the application-tag. After placing the ">" after android:icon="#mipmap/launcher_icon", it worked for me.
How it looked:
Not working
How it should look:
Working
I hope this helped
I added app-icons to my app for both iOS and Android. I watched this Tutorial and it is working so far. But the problem I have is that my Android Icon looks like this at the moment:
But the icon should fill the circle. In the tutorial it is shown how you can do it in Android Studio, but I am using VSCode.
I tried searching for it but couldn't find anything..
How can I get this done?
By the way, I am not using flutter_launcher_icons .
It seems that you can't do it from vs code, it has to be done in android studio...
I have searched for an answer as well as I was stuck with this and ended up doing it in android studio.
If someone has a solution please share.
Flutter has its own default icon for every app in its Android and Ios folder so there are few steps that I would like to show to change the app icon.
Head over to https://appicon.co/ and generate your own icon using icon image (the zip file contains two main folders android and Assets.xcassets)
For android: Go inside android\app\src\main\res in your flutter app and there paste the android folder content.
For IOS: Go inside ios\Runner in your flutter app and there paste the Assets.xcassets content
Restart your emulator or rebuild your application 😁
In my app I've changed all the image in the generated folder android\app\src\main\res\mipmap[...] with my app icon, but still I get the default image.
How is this possible?
The default image is not present anywhere....
Someone could give me some help?
thanks
Since you haven't mentioned how you change the icon in android, I can only suggest you try what I tried successful way.
Using the cordova-res plugin to generate the plugin, and using scripts below to copy them into IOS or Android folders.
https://capacitorjs.com/docs/guides/splash-screens-and-icons
Detail steps:
https://gist.github.com/dalezak/a6b1de39091f4ace220695d72717ac71
I am creating a mobile app in Intellij using actionscript 3 (and starling). I'm trying to add the app icon images, but I don't see how to do this. In Flash builder you can upload the images in the publish settings dialog box, but there doesn't seem to be a place for this anywhere in Intellij. I also don't see any help in the Intellij help documentation. Is there some secret understood knowledge that you just put them in the src folder and it works or somethinig like that?
Thanks.
I voted down your question since it's misleading. Whether using Flash Builder or IntelliJ is irrelevant in that case since underneath it's the Flex/AIR or AIR SDK going on so your question should have been simply about how to set icons since you obviously don't know how to do it with Flash Builder either.
With FB or IntelliJ you set hte icons by editing the project-app.xml that contains all the settings for that app. That file is usually at the root of the project. You'll find there the icons tag (commented out) so you can edit it and put the paths of your icons.
In this linked image , I see the button on the right quite often in a lot of apps. On my Moto Droid, it is used extensively in the settings app. It is also used as the default AlertDialog icon. Can I use this via a android.r.drawable?
The icon is built-in with the Android development, you can access the image by using R.drawable.ic_dialog_menu_generic
While it may be possible to use it via android.R.drawable, you may want to find the image in the resources that come with your SDK ($ANDROID_HOME/platforms/$VERSION/data/res, where $ANDROID_HOME is where you have the SDK installed and $VERSION is a relevant Android API level). So, per Mr. Forloney's answer, you'll find that in, say, drawable-hdpi/ic_dialog_menu_generic.png in the aforementioned directory. Then, copy that image into your project. While it will add 5K to your project size, it will mean that the icon does not change based upon OEM or Android changes.