Android: Show Notifications on launcher icon - android

How to show notifications on launcher icon(such as native Messages,email app) in android like iphone.

Android doesnt provide a way to do this. It always references the same app launcher icon when you compile your project into an apk. There is no way to change this later on. A widget can be an alternative.

Related

How do I change Recent screen icon in Ionic Framework?

Hi I just noticed the icons provided for app is shown properly in the launcher , but when it comes to the "Recent screen" I am able to see the android head(default) icon only. Is there a way to change this icon in Ionic framework like modifying config.xml? Help would be much appreciated.
This question answers for android native apps- How do I change the app icon in the 'Recents' Screen?
but I want a similar solution for Ionic (web apps)

How to disable adaptive icon in my project? [duplicate]

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.

Android: get a handler to the app's icon from an SDK

I am building an Android SDK which sometimes need to display notifications to the user in the notification drawer:
Naturally, I would like to use the app icon when setting the setSmallIcon() property of the NotificationCompat.Builder. The problem is that an SDK does not know in advance what is the icon of its embracing app.
Is there a way to get a reference to the app icon asset programatically, in run time?

How to block an app from launching in android at system level?

I want to know the exact method which invokes/starts all the apps. I basically want to block a certain set of apps using xposed module. Its ok if the app icon is visible but the app should not be launched after clicking on it. To be precise nothing should happen when the user clicks on the app icon.
So I want to know where the source code which invokes the apps.
PS : I would also like to know if there is any way to hide the icon of the app as well.
Make your own launcher app and replace it with the ones running on mobile phones.
You can check the sources of Laucher and Laucher2 currently running on Android system.

Getting App/Widget on Homescreen?

I was wondering if it's possible to get the icon (shortcut) of your app on the home screen during installation instead of inside the standard apps folder ?
And I did find out that Android has AppWidgets but I was wondering if it supports "standard" widgets as well (javascript/html/css) ?
At the moment it doesn't support "standard" widgets (javascript/html/css), but you should take a look at the Titanium Project
And there is no way to automatically put a shortcut on the homescreen when the application is installed. Not sure if most users would like that either.

Categories

Resources