This question already has answers here:
Android use a different icon for recent apps
(2 answers)
Closed 6 years ago.
I have 2 activities and they must be run separately.
Now, I'm starting second activity using FLAG_ACTIVITY_MULTIPLE_TASK and FLAG_ACTIVITY_NEW_TASK.
.
QUESTION: How can I change icons of the activities?
As I remember, it's possible, as Google Chrome used them before. How this feature called?
UPDATE: Icons are dynamic, so I need to change them programmatically
This is handled by ActivityManager.TaskDescription
https://stackoverflow.com/a/28100891/3815843
PS: On Android running applications are called "Recent Apps". I always googled Task manager, Intent manager. That's why I didn't found any info
I think you question is duplicated. See other same question.
This, for example!
Just set android:icon for each activity separately in manifest. Works for me.
Related
This question already has an answer here:
Android - YouTube Api player on floating window using service
(1 answer)
Closed 3 years ago.
Want to realize same functionality(mini-player in-app only)
currently, I realized it using fragment on the foreground. But it works only when 1 activity. And if use many activities fragment will be recreated and it's not ok when user watching the video.
So, maybe someone can recommend a better solution/example.
I have checked the solution with widgets(Not for this case).
I realise that you discarded the widget possibility but i would still recommend you check it again in this example.
It shows and updates data on one xml which you could expand on screen and reuse or discard if needed.
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.
This question already has answers here:
Overlay image to make tutorial in Android app
(4 answers)
Closed 8 years ago.
I am developing an App for which I want to create a help screen like one which comes when we setup an Android Device for the very first time.
Something like these:
There are two libraries you can use to achieve this effect which are:
ShowcaseView
Robodemo
Try going through their samples and read about how to use them on their respective pages. If you still need any help, do let me know.
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
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.