First, let's look at the Network Statement:
Android. Intent. Action. Main determines the applicationProgramThe first
Activity Android. Intent. Category. launcher determines whether the application is displayed in the program list. After the experiment, I found a problem?
Main and launcher are not independent tasks;
: bindWorkspace ---> LoaderTask: bindWorkspaceItems ---> Launcher: bindItems
[Edit] 1.3 Data Loading Problem During SIM card insertion 1. Launcher will execute onDestory () onCreate () on Launcher Activtiy because of low memory, and will execute again
StartLoader --> loadAndBindWorkSpace ----> loadAndBindAllApps
2. Launcher
The example in this article describes how Android implements the method of adding shortcuts to launcher. Share to everyone for your reference. Specifically as follows:
When we click on the launcher of the desktop in the application, a dialog box appears prompting you to select the desktop component to add, as shown in the following illustration
When you selec
Recently, the application just needs to add shortcuts. After referring to the source code and some other information on the Internet, it is done.
There were two problems at the same time,
1. After the program is uninstalled, the desktop shortcut still exists:
For this question, the old or current version of many online applications still exists. after referring to the source code, I found a solution: when creating the export cut, you need to set the extre_shortcut_intent action. and category to
Recently, I found it interesting to add shortcuts. I checked the information and wrote a demo-a simple example. There are two buttons in this example, click "add this program to shortcut". A shortcut is added to the desktop of the mobile phone, and a shortcut is added to the launcher. Click "Exit" and the prompt is displayed: the toast prompts "Exit program ". Knowledge sorting: There are two ways to add shortcuts to the
IntroductionIn its more basic form, a launcher is an application that does the following:
It represents the home screen of a device
It lists and launches applications that is installed on the device
In other words, it's the application that shows up when you press the home button. Unless you ' ve already installed a custom launcher and you're currently using the default
It adds some features to the android system launcher, and there is no problem, and then it needs to be used on the MTK simulator,Add a video window on the desktop, and add a video file for it. When the screen is sliding left and right, the video window will also scroll along with the desktop. After the playback ends, the window will disappear, however, when you do not play a video, dragging the desktop vide
Android operating system for In addition, if the user wants to add an app shortcut to the device's home screen, you can press and hold the app's icon in launcher, and the Android system will automatically add a shortcut to the app on the home screen. The name and icon are the same as in launcher.In addition to supporting shortcuts to apps (main activity),
Today the main analysis of the Android Launcher source code in the relationship between some important classes, the basic loading process. Take a look at a class diagram firstLauncher.java is the primary activity that initializes the Launchermode instance within the OnCreate method.Launcherapplication app = ((launcherapplication) getapplication ());Mmodel = App.setlauncher (this);The method of directly ente
It adds some functions to the Android system launcher, and there is no problem. Then, when using the MTK simulator, add a video window on the desktop and add a video file to it, when sliding the screen between the left and right, the video window will also scroll along with the desktop. After playing the screen, the window will disappear. However, when the video is not played, the desktop video window will
); dragController.setMoveTarget(workspace);
Setdockdraglistener is a user-defined function and is added to startdrag of dragcontroller. For details, see the source code.
//hmg25 add for dock { if(mDockListener!=null){ mDockListener.onDragStart(source, dragInfo, dragAction); } //hmg25 add for dock }
3,
// The order here is bottom to top. dragController.addDropTarget(workspace); dragController.addDropTarget(dockbar); // hmg25 add for dock
This series of articles will start the android lancher source code analysis. The example is the launcher3 source code that comes with Android 2.3. It is a http://download.csdn.net/detail/xianming01/4383598
In the previous article "android launcher source code parsing 01: Ui layout details 1", we introduced the theme UI
Android Custom Application drawer Launcher
You can sort the application by application name and installation time, and view the specific project code on my GitHub. The link is shown at the end of the article ,:
Core code:
Package com. zms. launcher; import java. util. arrayList; import java. util. hashMap; import java. util. list; import
Demand:1, using the Android system Launcher hide the main menu all the applications displayed on the desktop is workspace;2, hide launcher above the default Google search;3, switch A set of launcher theme.Implementation results:Analysis:1, hide the main menu, Google Default in the
Q: Nima Android 4.1 jelly bean has been released. You still have bb2.3, right?
A: Sorry, It is a feature of diaosi.
Q: What is the purpose?
A: It is very irresponsible to say that the launcher drag process has not changed since 2.2.
Q: What is the basic concept? There are still changes.
A: "Okay, you win ".
Bytes ----------------------------------------------------------------------------------------------
When there are multiple launcher desktops in the system, the default launcher can be set in the following ways:Method One:Lazy words, will not want to launcher, such as Launcher3 Androidmanifest.xml file in the home attribute removed, only to retain their own launcher can, if we have other
Preface:dear friends, please forgive me for so long to start writing this series of the second blog, no way to busy new product release, good nonsense not to say, first review: In my previous blog Android Metro style Launcher Development Series first Wrote how to configure the Android development environment, just with text and pictures to show the development of
Icon background and default configuration for android launcher development1: Then I checked the desktop icon loading process myself:When the desktop is loaded for the first time, an xml configuration file is read by default to complete the configuration. The configuration file is in the Launcher directory,Path: \ Launcher
These days there is a need to set their own application to the form of launcher, set after the OnCreate will be launched two times, in the Internet to find the data after the screen set the result of the first said: In the mainacitivity set up Android: Configchanges= "MCC|MNC" can solve the problem.Today, when I look at log, I find that Launcher activity is OnDes
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.