I made an image in photoshop for my application, but when I go to add a new Image Asset, the icon is black. Here is an example
In the previous version from Android Studio launcher icons had the real color. Is it a bug?
It could be the format of the image, have you looked at the Android Api and made sure it meets the specs?
Related
I've added a custom launcher (adaptive and legacy) icon by building it in Image Asset Studio, but cannot figure out how to change the "running apps" view icon. New projects have the green icon, while the app I created a custom launcher now has a blue icon (which is not the custom icon I built) in the running apps view. How is this icon changed?
This appears to be an emulator problem. I tested on a physical device and the blue icon was replaced with my custom icon. For those in the future that have built an icon with Image Asset Studio and are running into this problem, either test again on a physical device or create a new AVD.
Once I changed an icon of my app by right clicking on res folder and going to New>Image asset, app started to crash on my Android 6.0 device. Then I watched a video that says that the 1st option "Launcher icon (Adaptive and Legacy)" is for Android 8.0 and I didn't understand what he said. And he said that "Launcher icon (Legacy only)" is for Android 7.1.1 and below. So, then I thought that the problem was that I used "Launcher icon (Adaptive and Legacy)" and my device is Android 6.0. Fortunately, I had backed up "mipmap" folders of default icon. But once I changed to default icon, my app is still crashing. Where a problem could be?
I want to use the square version of my launcher icon but somehow android keeps forcing use the rounded version.
I read forcing square app icon and although the explanation makes sense it is not true:
in this screenshot you can see that most of icons are rounded but you have
contacts, widget preview and terminal emulator
And before someone say "they are special apps" terminal emulator is a shit app i downloaded from play store... In my cellphone 80% of apps are rounded but instagram, booking and some others are square...
how to force android use my square launcher?
There is a solution for this which i have tried and its works for me.
What we have to do is take the app icon and keep in res -> drawable.
App icon should be in all formats:-
mdpi
, hdpi
, xhdpi
, xxhdpi
, xxxhdpi
with same name for example-
ic_app_icon.png(mdpi)
ic_app_icon.png(hdpi)
ic_app_icon.png(xhdpi)
ic_app_icon.png(xxhdpi)
ic_app_icon.png(xxxhdpi)
Then in Android Menifest file do this change
android:roundIcon="#drawable/ic_app_icon"
by this we can get app icon square.
First, please understand that there are hundreds of different launcher implementations in use across the ~10,000 Android device models and ~2 billion Android devices. How a launcher chooses to represent your activity is up to the developer of the launcher. For example, there is no requirement for the launcher to use any icon at all (e.g., a launcher optimized for screen readers and visually impaired users). A launcher that does use some sort of graphical element might use your icon or not, and if if it does use your icon, it might modify it (crop it to a shape, apply a color filter, cause it to spin, whatever).
Your screenshot appears to be of the Android emulator. In that case, temporarily, you can set your targetSdkVersion to be 25 or lower, and that particular launcher will not attempt to adapt your launcher icon.
However, please bear in mind that you will not be able to ship your app on the Play Store with that low of a targetSdkVersion starting in a few months. So, if the Play Store is your planned distribution channel, you will need to get used to Android's adaptive icon system and deal with the fact that the shape of your icon will be changed on most Android 8.0+ devices.
I have created a logo for my app in android. The logo is in oval shape as given below.
As you can see that there are no black portions in the logo which I have created using an online editor from internet. I have created a simple splash screen for my app while it starts the app upon tapping the app icon. In the manifest I have given as below in my splash screen actiivity:
android:theme="#android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="portrait"
Now when I try to run the app on emulator, the logo is displaying as fine in my app splash screen. I will show a screen shot of it below:
Now when I run this on the real device, the same logo becomes like this:
How does this happen? There is some black colour alongside the oval shape of the logo. Why is this much difference in the same logo which is shown in both emulator and real device? Can someone suggest me to remove the black colour from the logo.? I didn't find out the black colour portion in the logo image when the logo image is viewed using windows photo viewer. Then how does this black colour comes in real device where as it is invisible in emulator. By the way my emulator is jelly bean version and real device is kitkat version of android.
Now I got the answer, the image which I have used is actually a gif which has been converted from an online website. I used it and just converted into png by renaming the extension to png from gif using another small software on my pc. That was the problem. When I tried saving the image as png itself from the server to my pc, the problem solved.
As stated by harism, I think this is a problem in KitKat (Android 4.4) only. As this problem is not there in other android versions. So if there exists any black portions in your images in your project, then convert the image from gif to png using any software or online editor. Or check this link out..
https://code.google.com/p/android/issues/detail?id=62016, which was mentioned by harism.
When I run an app on my android emulator after following a tutorial, my app always looks different than it is supposed to. My default background is white with black text but every other emulator I see on the internet has a default black background with white text. Also when I create a Spinner it doesn't have the green selection circles that seem to be default on all the other emulators. I'm using eclipse Juno with android sdk rev 20. It looks like I didn't install something or enable something but I don't know what I'm missing. Here are some pics to show what I mean.
My emulator where I have a Spinner being clicked:
What other emulators seem to look like when Spinner is clicked:
It's not an emulator issue but the theme that you have applied to your application and the target SDK that you are running your application. Please change target SDK in the manifest file to 10 or lower and comment or remove the line that applies theme: android:theme="..." Then you should achieve desired effect.
It's not the emulator. It's the Android Version you are running on them. By default a Spinner will look like the second image in Android 2.0-2.3.3 and the first picture shows a spinner on Android 4.0+, which in normally like a dropdown menu.