I found a badge on my Android device today and I'm wondering how they did this.
Look at the "Email" icon next to "Camera" and "Talk". How are they getting the number 2 on the corner of that icon?
Android doesn't support updating the app icon natively. I'm not familiar with TouchWiz, but I'm pretty sure Samsung didn't implement this either.
However you could create an AppWidget, that looks like an icon. This would give you the ability to dynamically update the icon.
Related
This is my first question on StackOverflow, so please bear with me if I fail to articulate my question.
I am working on an Android app that targets Android O, and I want the launcher to NOT show the icon adapted i.e. remove the white background.
I tried to use adaptive icons and they work, but the problem is that they change the icon itself making it rouned, square, squircle and tear-shaped.
At first I thought it's out of my hands, but some other apps (facebook, whatsapp and snapchat for example) have their icons unchanged.
tl;dr: How can I force an icon to be used by the launcher on Android O?
The other apps you mention (Facebook, Whatsapp, and Snapchat) don't yet target Android O. Once they do, they'll also be forced to have an adaptive icon as well.
Just remove the targetSdkVersion property from your app level build.gradle file. It will work.
I would like create app with custom badge number in app icon, like in facebook app: App icon in home screen shows pending/unread notifications. How to set custom badge number programatically in android. I've seen similar questions in stack with answers like it "doesn't support in stock android". Seen many answers and were old. I think they were for old versions. Is it possible in newer versions of android? If possible how to add customized badge number ? If the option is still doesn't support by android ignore this question and please let me know it. I'm developing kind of confidential app, so that i couldn't use third part libs. Is there any inbuilt methods to handle badges or possible to create badge?
There is popular github that works app icon badges for most Android devices. Sure still some platform, some devices didn't support that. But those libraries almost cover all of the devices that support app icon badges.
https://github.com/leolin310148/ShortcutBadger
So to your question, No.
Because Android framework didn't define the app notification badges before.(I am not sure if Android default framework have it now. I've been search the keyword of BADGE_COUNT_UPDATE in the ASOP android7 and nothing found) So all those custom badges are made by device manufacturer framework developer.
You can check how they setup badges numbers for each manufacturer here
https://github.com/leolin310148/ShortcutBadger/tree/master/ShortcutBadger/src/main/java/me/leolin/shortcutbadger/impl
To another question. I use keyword badge to search the ASOP source code and didn't find any noticeable part about app icon badges. And even there is one inbuilt framework method about this after certain version of android. The framework still cannot cover all the devices before the certain version. So not quite sure what do you mean by confidential app, but using libraries is the first choice to cover most android devices based on the real situation like this.
I recently designed an icon pack for Android and I've got the icons finished. I am now looking to start designing the app to actually apply them. I've looked around and most of the material I've found seems to be out of date or for Eclipse (I'm using Android Studio). I don't want anything fancy, just a button to auto apply my icons to a user's phone. Can anyone help me out or point me in the direction of more information on this? Thanks.
EDIT: For instance here are some of the icons I made myself and manually applied them to my phone http://i.imgur.com/EBc1o05.png
I'm looking to do that, except in an app and at the push of a button rather than manually setting ~200 app icons.
Try this: http://arnab.ch/blog/2013/08/how-to-write-custom-launcher-app-in-android
I haven't tested it myself but it looks promising.
I am building a desktop app using electron (formerly known as node atom, using html javascript and css).
I want to use (or create if there is no choice) a sliding notification bar, like the one on android OS.
I failed to find existing components for this purpose and not sure how to develop this component myself.
I would like to know if such component or something similiar exists or how I could write one for my own use.
Thanks alot in advance for the help
Update 1
I was requested, rightfully, to give more info and be more specific.
I will expand on exactly what I need from this status bar, and why I need it and the context in which I need it for. (maybe there are better options that i'm not aware of).
I am writing a desktop app using nodejs electron (so my UI doesn't follow the common browser ui&ux rules).
The template that I have written so far looks like the following:
as you one can see, im trying to make it look as much as "mobile" I can while following google material design (i'm using angular 2, so angular 1 material is not an option, most of the component i'm using are from polymer elements collection)
The heart of my app is about running some algorithms on the server. I want a central place to show which algorithms are currently running and their status (there cant be more then 5 at once usually), so the only idea I could think of that fits material design and is central enough was to use something that looks like the android notification bar. The problem is that I couldn't find any web component that can achieve that. The status bar which i'm talking about looks like the following (The way it looks change a bit when looking at numerious android version, I don't mind exactly like which version it looks like). It should slide down from the top when clicked or dragged down like in an android mobile phone:
The notifications show whats currently active, I could also use a setting shortcut in it as well (The marked in red areas are the relevant parts). The rest of the options are not relevant.
So that's what I was initially looking for. If someone has a better idea on how to show these running algorithms in a central place, that fits the material design guidelines, I am also open to suggestions :)
I created my own icon for my app using Eclipse (Manifest->Application->Icon etc) and this created the same icon for all different phone screens. However, I now need that same icon for the Google Play market and it needs to be 512x512. Is it even possible to enlarge that icon using Eclipse?? Thanks.
Eclipse creates it in your project root, name: ic_launcher-web.png or something like it.
Not that I know of, but you can use Android Asset Studio
I used it to make plenty of action bar icons, notification icons and just general icons. I think it is a great tool all android developers should be aware of :)