How to show notification number in Android Application Launcher icon [duplicate] - android

This question already has an answer here:
How to show Notification Count on My App Icon on Home Screen in Android
(1 answer)
Closed 9 years ago.
I want to show notification number icon in Android application launcher icon. I read about widgets.But how can I show that widget instead of application icon.

Here is a way to change launcher icon. You can use it for your purpose.
How to change an application icon programmatically in Android?

Related

Hide Android PWA title in splash screen [duplicate]

This question already has an answer here:
Remove name in PWA splash screen
(1 answer)
Closed 2 years ago.
I'm currently setting up my web app for progressive web app support but I can't seem to stop the name / short_name property from displaying in the Android splash screen.
Is there anyway to hide the text and only show the icon ?
You have to specify at least one of two - name or short name., Tricking with space chars is not an option as "Name" will be used in install prompt which is important for convincing the user to add to home screen. This is a space which is seeing some changes(like how Chrome treats name and short name changed in recent past). You can hope to see hiding options. But no luck for now.

How to disable home key in Activity programmatically Android [duplicate]

This question already has an answer here:
Intercepting home button on Android
(1 answer)
Closed 5 years ago.
How can I disable home key in android in activity programmatically
I tried by HomeKeyLocker.class and used in activity like this:
new HomeKeyLocker().lock(this);
But this is not working in any device.
You cannot disable the home key. It is user's choice is they want to leave your application.
See detailed explanation here.

Can an app icon be programmatically changed post-installation? [duplicate]

This question already has answers here:
How to change an application icon programmatically in Android?
(11 answers)
Closed 7 years ago.
For example, once the user launches the app (iOS and Android), s/he selects a local dealer. I would like the app icon to change to that dealer’s branding (or a second one to be added, as is possible with Windows’ pin to start).
This is not possible for android either. While you can install a shortcut, you cannot change the app's icon programmatically.

Is it possible to change launcher icon in android runtime with user selection? [duplicate]

This question already has answers here:
How to change an application icon programmatically in Android?
(11 answers)
Closed 6 years ago.
I want to use multiple launcher icon . what i want that user can change launcher icon with his selection
is it possible to change launcher icon run time?
Strictly speaking you can not change launcher icon at run time. However there are few workarounds available for this:
1. Activity alias:
Create multiple activity-alias tags in Manifest for your MAIN launcher activity and give a different icon drawable to it. You can then choose a particular activity-alias via your code as per your requirement.
2. Install/Uninstall Shortcuts: This approach won't change the your app's icon however you can update (read re-install) your app's shortcut-icon.
Hope this helps.

List shortcuts on my Android home screen [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Android: Get Installed Shortcuts
Is there a way to get the list of shortcuts the user has on his home screen?
From my Android app..
I doubt it - the home launcher does not have to be part of the Android system, it could even be a custom app that doesn't use shortcuts at all.
However, you could create a custom home screen launcher specifically designed to broadcast what shortcuts are contained, and it is possible one exists out there already. But this would obviously require everyone using your app to have this custom home screen.

Categories

Resources