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

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.

Related

How to access Android hardware by pressing volume key [duplicate]

This question already has answers here:
Listen to volume buttons in background service?
(14 answers)
Closed 5 years ago.
I am making an application and I want to make app in such a way that user directly open that by using volume key, suppose user click twice the volume+ or volume- buttom and the app will directly open without home screen or without any interuption.
I want to add this functionality using the code in Android Studio. If anyone know how to add this, please help...
What you are asking for is not App/Code nor Android Studio related but device related, If the Original Equipment Manufacturer will allow a device to have a shortcut button it could be possible to achieve that on those devices.
Cheers.

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.

how to disable the HOME key in android4.0? [duplicate]

This question already has answers here:
How to disable the home key
(5 answers)
Closed 8 years ago.
I'd like to lock the screen. I want to disable the home key.How do I accomplish this?
And I wonder why some lockscreen apps ask for setting the Launcher?
How to shield the home key by implementing a custom Launcher.
getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD) does not work in android4.0.
So, what do I need to do in android4.0?
It is android security violation. Only way you can do this is to implement custom launcher.

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

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?

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