As mentioned in my previous blog, all the desktop item data of launcher is stored in the launcher. DB/favorites table.When launcher is started, the loadeworkspace function will query all the data in the database and display it. The data loading process of this desktop item is described in detail in my blog launcher-sta
Because of customization, the launcher package names of different mobile phones are different.
For example:
Miui: com. miui. home
Huawei: com. huawei. android. launcher
Moto and htc: com. android. launcher
Samsung: com. sec. android
Style and Theme are often used in projects, but they are never considered the difference. They only copy and copy them. Sometimes they are still confused. In order to say goodbye to confusion, the differences and usage of the two are summarized for your reference.
I. Scope
Theme is for the form level and changes the form style.
The Style is for the form Element level. It changes the Style of the specified c
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
1. First, let's take a look at the structural diagram of the launcher activity view (obtained by hierarchyviewer. BAT ):
2. Let's take a look at layout/launcher. XML, layout-Port/launcher. XML, and layout-land/launcher. xml.
Xmlns: Android = "http://schemas.android.com/
First, we will analyze the Launcher layout as a whole. Let's have an understanding of the overall structure of Launcher by viewing Launcher. xml and using the combination of hierarchyviewer layout viewing tool. Use hierarchyviewer to complete the entire desktop as follows:Zoom in as follows: You can see the elements contained in the entire desktop. The top is the
in theme skinning tells the system that this is a relative reference, and that the real resource reference is the assignment of the custom attribute in the list of topic style attributes for the current context.1. In the Res-value directory, create a new resource file for the Attr property, for example: custom_theme_attrs.xml .2. custom_theme_attrs.xml Create a new custom attribute in the file.Format:Example: A friend who has written a custom view m
In this section, let's take a look at the entire Laucher entry point. What did Laucher do when it loaded its layout file Laucher. xml.We can find the LauncherApplication in the source code, which inherits the Application class. When the entire Launcher is started, it is the entrance of the entire program. Let's first look at how they are configured in AndroidManifest. xml.1. 2. android: name = "com.
: 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
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;
in theme skinning tells the system that this is a relative reference, and that the real resource reference is the assignment of the custom attribute in the list of topic style attributes for the current context.1. In the Res-value directory, create a new resource file for the Attr property, for example: custom_theme_attrs.xml .2. custom_theme_attrs.xml Create a new custom attribute in the file.Format:Example: A friend who has written a custom view m
Http://www.cnblogs.com/zhouyou96/p/5323138.htmlSummarize the correct gameplay for Android themes (Theme)In the Androidmanifest.xml file there is It is important to note that as a beginner or a specialized topic (Theme), you'd better remove values-v11 and values-v14 and values-vxx to avoid being disturbed by these things.There are three sources of themes:1) from t
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
Delphi XE5 for Android Launcher no black screen wait summary from Embarcadero Official Technology forum to find the next reference, on the black screen processing should have a corresponding method, and this method has a good application value, so did a summary, Delphi XE5 No black screen is essentially the use of Android native development language Java, the pr
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
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 platform-defined theme styles: Android:theme= "@android: Style/theme.dialog" displays an activity as a dialog mode? android:theme= "@android: style/ Theme.notitlebar "Do not display the application title bar?" Android:theme= "@android: Style/theme.notitlebar.fullscre
Theme theme is used to set the UI style of the interface, you can set the entire application or an activity's interface style. The following theme are built into the Android SDK and can be categorized by title bar and status bar:[HTML]View Plaincopyprint?
•android:theme="@andro
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
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.