How to change AppIcon and Splashscreen in Titanium Appcelerator? - android

I am using Alloy framework. I want to know:
How can I change the splash screen and app icon image?
I tried to change the appicon.png and default.png in app>assets>android folder but it didn't work and new ERROR appeared Package build failed.

As suggested you should check the documentation. It actually describes everything involved pretty well.
Then I suggest that you use TiCons by Fokke Zandbergen to generate the splash screens. It's a very handy service :-)
/John

Related

Flutter doesn't update launcher icon

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

Flutter Android application icon when app is minimized

I've been trying to find a way to change that icon by many ways but that didn't work - I still get this white android on the blue background.
I tried:
using Android Assets Studio where I configured all assets (app icon and everything else looks good except that minimized icon)
changing AndroidManifest.xml icon and round icons
using flutter_launcher_icons plugin
And everything is without luck. How can I manually change that specific minimized icon?
Apparently, this is only an issue when working in the debugging mode on an emulator. I've tried the same application on the physical mobile device and it had the correct image up there. Perhaps, it's a Flutter bug.
that is regular ic_launcher.png the one under "round" that is selected in picture above.
When using flutter_launcher_icons package, try giving your new icon set a new config name like 'new_launch' and providing image_path and adaptive_icon_background for android.
Running flutter pub run flutter_launcher_icons:main in terminal got my icon in the minimized screen as well.
Here's an example

App's icon not visible in Phonegap Build's page

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

drawables not in app directory and not adressable

i recently started the android tutorial from android.com, after downloading and installing Android Studio and the sdk. I made the first app and all, working directory is on a Flashdrive, Android Studio and sdk are on the HDD.
I'm currently stuck at the "Adding action bar buttons" tutorial, as android studio doesnt find "#drawable/ic_action_search".
I understand that it should be in the MyfirstApp/app/src/res/drawable- folders, but those are practically empty (see picture below).
I did find an answer on here that states to simply copy the required drawables from sdk/platforms/android-/data/res/drawables-.
Another one states, I can adress "standard" pictures (like the search action icon in my case) by using "#android:drawable/ic_action_search", but that doesnt work at all.
Is there a good workaround, easier then putting every icon in every corresponding folder, every time i need one? The tutorial doesnt have that, it seems the guy writing the tutorial relied on the icons just being there?
(May solve itself with 1.)
In that other folder, there are many, many drawables, but the one folder I searched (drawable-hdpi) doesnt even have an icon called ic_action_search.png so...where do I usually get that?
Thanks for helping, I'm still hoping this is a common mistake so there's an easy solution here^^
Edit: manually starting the gradle build task doesn't work either, same problem.
()
Does your project build? Try running the gradle build task manually.
screenshot

Confusing Cordova icons and splash screens directory

The Cordova docs, regarding the use of icons and splash screens for Android, states that they should be placed in www/res/icons and www/res/screens directories respectively.. But afterwards, in the same page, it says;
you'll need to copy the png files from
platforms/android/www/res/screen/android to
platforms/android/res/drawable/*
So; if the icons and splash screens should be copied to to the drawable folder, what is the use of having them on www/res/icons* and www/res/screens
This is confusing (#_#) Especially when the docs add more ambiguity;
..When working in the CLI...
After some researches and trial/error I got it fixed and wrote a tutorial about my process;
Cordova Icons and Splash Screens
Hope it helps somebody else :)
When working in the CLI means if you are building with the Command-Line Interface of Cordova/PhoneGap and does not apply if you say are using PhoneGap Build (http://build.phonegap.com) to build for you. Which version are you working on?

Categories

Resources