List shortcuts on my Android home screen [duplicate] - android

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.

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.

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.

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.

android source code for home screen application [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How can I create a custom home-screen replacement application for Android?
What is the name of the application which appears when you press Home button? PhoneApplication?
Where would I find it in the source code? I need it because I want to see how items are dragged so smooth on the screen.
It's called a Launcher, and it's not necessarily the same app everywhere. This might be of interest - a (modified) stock launcher including the source code: http://forum.xda-developers.com/showthread.php?t=538871
See also this for inspiration: http://code.google.com/p/android-launcher-plus/
In android-sdk samples also you will find one application named Home. this is also a launcher application., but its not much implemented, if you interested check it once.
You can get good launcher source code here
Modified Launcher

Categories

Resources