A kind of method of accelerating to customize Android system desktop shortcut iconTechnical field
The present invention relates to a kind of method of accelerating to customize the embedded system of Portable intelligent terminal, particularly a kind of method of accelerating to customize Android system desktop shortcut icon.
Background technology
Adopt the electronic product of Android system as equipment such as mobile phone, panel computers, for can be more directly perceived and embody UI interface (user interface) or due to user's customization requirement with having a distinct theme, conventionally need to be on the desktop of the software that dispatches from the factory of equipment the shortcut icon of more preset application programs.
And will be on the desktop of software that dispatches from the factory the shortcut icon of preset application program, need to obtain bag name and the class name of this application program, and this bag name and class name are write in the xml file of an appointment, could realize.Wherein, the bag name of application program embodies the accessed path of this application program, and the class name of application program embodies the operation homepage of this application program when clicked.Existingly obtain the bag name of application program and the mode of class name has two kinds, a kind of is by the method for decompiling, to obtain bag name and the class name of application program, and another kind is bag name and the class name that the method for printing log (daily record) by employing is obtained application program.For existing the first scheme, when application program, taked to obscure measure, while causing normally decompiling, will make the difficulty of obtaining bag name and class name greatly increase, and then the work efficiency of impact customization; Existing first scheme is complex operation, need to move one by one corresponding application program, can search, and is therefore unfavorable for equally carrying out fast of the work that customizes.
Summary of the invention
The object of the invention is to overcome the deficiency of prior art, a kind of method of accelerating to customize Android system desktop shortcut icon is provided, by making full use of the database of launcher, come, bag name and the class name of the application program that will customize can be obtained easily and accurately, and then customization work efficiency can be improved.
The technical solution adopted for the present invention to solve the technical problems is: a kind of method of accelerating to customize Android system desktop shortcut icon, comprises the steps:
1), in the development phase, the shortcut icon of the application program that will customize is manually dragged to the desktop of this Android system from the application list of the Android system developed;
2) extract the database of launcher in this Android system, and described in finding, being drawn to the corresponding bag name of shortcut icon and the class name of the desktop of this Android system in this database;
3) these bag names and class name are write in the xml file of an appointment in this Android system, then, by the burned Portable intelligent terminal of this Android system, complete customization.
Further, described Portable intelligent terminal comprises mobile phone or panel computer.
From the above-mentioned description of this invention, compared with prior art, the present invention has following beneficial effect:
A kind of method of accelerating to customize Android system desktop shortcut icon of the present invention, by making full use of the database of launcher, can obtain easily and accurately bag name and the class name of the application program that will customize, and then can improve customization work efficiency, and there is good novelty.
Embodiment
Embodiment,
The invention provides a kind of method of accelerating to customize Android system desktop shortcut icon, comprise the steps:
1), in the development phase, the shortcut icon of the application program that will customize is manually dragged to the desktop of this Android system from the application list of the Android system developed; At the described Android system of having developed, comprise and can realize the android operating system of normal operation and be arranged on a plurality of application programs in this android operating system, and these application programs have formed a application list;
2) extract the database of launcher in this Android system, and described in finding, being drawn to the corresponding bag name of shortcut icon and the class name of the desktop of this Android system in this database; In the database of described launcher, each record includes: the projects such as title (apply names), intent (bag name and class name), screen (being positioned at which screen), cellx/celly (coordinate position), spanX/spanY (occupied area), icon (application icon);
When step 1) in, when developer is manually dragged to the desktop of this Android system by the shortcut icon of the application program that will customize from the application list of the Android system developed, in the launcher database of this Android system, produces immediately with these and being drawn to the corresponding record of the shortcut icon of this Android system desktop; Therefore can, in the database of this launcher, according to the icon of each record (application icon) project, find corresponding bag name and class name;
3) these bag names and class name are write in the xml file of an appointment in this Android system, then, by the burned Portable intelligent terminal of this Android system, complete customization.
As a kind of preferred, described Portable intelligent terminal comprises mobile phone or panel computer.
Above-described embodiment is only used for further illustrating a kind of method of accelerating to customize Android system desktop shortcut icon of the present invention; but the present invention is not limited to embodiment; any simple modification, equivalent variations and modification that every foundation technical spirit of the present invention is done above embodiment, all fall in the protection domain of technical solution of the present invention.