android source code for home screen application [duplicate] - android

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

Related

How to implement Open with menu in flutter app? [duplicate]

This question already has answers here:
Flutter: how to let a file be opened by an external app (like Android's implicit intent)?
(2 answers)
Closed 2 years ago.
I have seen many music players or other applications written using flutter but none of them have a open with menu.
To be clear, I mean how to make my music player/ other app to show in that open with menu, like if I want to access a music from files and my app comes in that menu.
Is there any way to do that, cause I can't find it, nor can I found any issues related to it.
Above is the open with menu displayed in Samsung, similar type of menu are their on other android devices.
The Open with menu is a native function provided by the OS. The menu looks the same in different apps on the same phone, but it looks differently on other phones.
To trigger this menu within a Flutter app, we could use a package like open_file, which invokes the native OS method to open a file:
import 'package:open_file/open_file.dart';
OpenFile.open("/sdcard/example.txt");
If more than one app is assigned to that specific file extension, the Open with menu will appear and prompt the end-user with the app selection.
That said, based on your scenario, it's totally possible to create a custom Open with menu for your app, although it's recommended to use what the OS natively offers to us.

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.

Activity change icon programmatically [duplicate]

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.

How can I develop an app able to actually replace lockscreen? [duplicate]

I know that there is already some apps can do this, such as:
WidgetLocker Lockscreen
Flyscreen
I want to know how to do this in my app? What classes I can use? Or what articles I should read? I don't want to change the Android's source code.
And I wonder if it will be different to deal with when the screen is locked by draw pattern?
Have a look at this answer. You need to write your own home screen app which will implement the lockscreen behaviour that you require. There is sample code for writing your own home screen app in the Android SDK.

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