I have an Android app that uses the NotificationManager to inform the user of certain events. When I call .notify(), the icon I specify is shown in the status bar. It works fine on various Android 2.2 and 2.3 phones. But on a Galaxy Tab 10.1 running Android 3.1 the notification icon on the status bar is so dim it can barely be seen. I've seen one other app that has a similar problem, but all the other apps I'm using that do notifications look OK. I've followed the Guidelines at http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html, including creating Android 2.3+ style icons and putting them in the drawable-hdpi-v9, drawable-mdpi-v9, etc. folders. The icons all look OK when I look at them on my development machine; they are the right colors and are not dim. What could I be doing wrong that is causing my notification icon to be shown so dim on the Honeycomb status bar?
As of today there is updated documentation available at the android developers web site:
http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html
Related
I am working on an Android application in which I face an issue in Android push notification icon.
The notification icon does not display its content instead displaying in grey colour.
After the research, I could understand that there is a change required in icon for adding transparent and/or white backgrounds since the Android version 5.0
But, my problem now is that I am unable to strongly convey my client about this issue as he shared a screenshot of his Realme X2 Pro device.
It seems that sometimes the device displays in right manner but sometimes not. Please help me find out the solution.
The MediaStyle Notification introduced in Android 10 works but is however black and doesn't display duration either.
Here is a link to the code: https://github.com/ryanheise/audio_service/blob/master/android/src/main/java/com/ryanheise/audioservice/AudioService.java
Reference another question: android 10 seek bar on notification
This only appears to happen to certain devices where on other devices the seek bar will display perfectly fine.
Additionally on the same device other media players have perfectly fine displaying seek bars, such as Youtube, Youtube Red, Google Play Music, etc.
I followed the hints reported in this bug report and I solved the problem. I successfully tested it on Samsung and Huawei devices with Android 10.
The trick is:
As per Google's Material Design guidelines, the small icon in the
notification should be monochrome white, and have a transparent
background. If you follow those guidelines, the slider displays
correctly.
Some people report also that you have to set a non transparent color (like Color.BLACK) using setColor() method to make it work on some devices.
I am using Pushwoosh Android SDK for push notification,
I am facing issue with the small icon color when expanding the notification bar, it should be in dark color, check screenshot with the affected devices with Android 7.0, and it's working fine on other devices
please advise,
For those who will come here with the same problem.
I met this issue when used one big icon for all screen sizes, the problem disappeared when i added to project smaller icons for different screen sizes. May be the problem is the system not able to handle too big icon.
From what I know, the translucide status bar was added in the KitKat version of Android, but my phone, which uses 4.4.2, has the normal (black) one. Why is that happening. Do I need to do something to activate this function?
I believe that depends on the app you have opened as opposed to simply changing the color of the status bar via your phone's settings. That said, the developer is in control as mentioned here in Android docs.
Im using parse to send push notifications, The problem is that when I send push notifications the top bar in the emulator shows only a white square and not the icon, when I get the notification on the real device, samsung s6, samsung nexus, this is working great(I have tested only on this two devices).
any ideas?
Due to the new design changes introduced in Android 5.0, you need to use to the notifications only white icons. You can read more about it here: https://developer.android.com/design/patterns/notifications.html#guidelines
The system will automatically convert your icons to white. My suggestion is to you create white notification icons.
You can find more information about it here: https://stackoverflow.com/a/29207365/3482000