CN105183524A - Application-font-selectable Android installation method and device - Google Patents
Application-font-selectable Android installation method and device Download PDFInfo
- Publication number
- CN105183524A CN105183524A CN201510639109.4A CN201510639109A CN105183524A CN 105183524 A CN105183524 A CN 105183524A CN 201510639109 A CN201510639109 A CN 201510639109A CN 105183524 A CN105183524 A CN 105183524A
- Authority
- CN
- China
- Prior art keywords
- font
- android
- loaded
- control
- word
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses an application-font-selectable Android installation method and device. The method comprises the steps that working processes of an installer in Android equipment are designed, when a user installs an application, a specific font can be selected, and therefore when the installed application is well installed and started, the displayed font is the set font. By means of the application-font-selectable Android installation method and device, all applications in a system can be set with different fonts, the font in each application is set by the user when the user installs the application, and therefore all third-party applications in the Android system are rich, varied and more personalized.
Description
Technical field
The present invention relates to android system application program installing area, be specifically related to a kind of can the Android installation method of selective gist font and device.
Background technology
Along with the development of mobile Internet, android system universal, user uses various Android of all shapes and colors to apply frequently, and apply various in android system, the user interface effect presented also is of a great variety, and various special efficacy emerges in an endless stream.But mostly existing application is the process to picture, the rare font to application does suitable modification, and generally all unify the font attribute using a kind of system default, such Long-Time Service, there is no new meaning concerning user.As patent of invention " a kind of font display optimization method and system of Android terminal ", the patent No.: 201310171292.0; Patent of invention " a kind of Tibetan font library configuration method of android system and device ", the patent No.: 201310436983.9.Only have the application that can change individually font in current Android application market, these application are also only writing styles all in system all changed, and do not have the individual character font of application.Therefore needing one that user can be allowed when installing third party application, just can select the application of this installation kit which kind of font attribute display work.
Summary of the invention:
In order to overcome the defect of above-mentioned background technology, the invention provides a kind of can the Android installation method of selective gist font and device, the font of each program display can be selected when installing Android application program.
In order to solve the problems of the technologies described above of the present invention adopted technical scheme be:
Can the Android installation method of selective gist font, comprising: decompiling is carried out to the Android installation kit to be installed in installation directory, obtain the control that wherein can be loaded into word and character; User selects a kind of font as font attribute to be placed; Font attribute to be placed is added to the control that can be loaded into word and character; To through decompiling and the Android installation kit of loaded font attribute to be placed repack.
Preferably, decompiling is carried out to the Android installation kit to be installed in installation directory, obtain the control that wherein can be loaded into word and character and specifically comprise: decompress(ion) is carried out to the Android installation kit copied into system data/app catalogue; Topology file is obtained from the file of decompress(ion); All controls being loaded into word and character are detected from topology file.
Preferably, from topology file, detect that all methods being loaded into the control of word and character are: from topology file, detect that form is that the topology file of xml is the control that can be loaded into word and character.
Preferably, from topology file, detect that all methods being loaded into the control of word and character are: from topology file, obtain the control that can be loaded into word and character with hierarchyviewer instrument.
Preferably, user selects a kind of font as being select from the font that android system carries during font attribute to be placed.
The present invention also carry a kind of can the Android erecting device of selective gist font, device comprises: decompiling module, for carrying out decompiling to Android installation kit to be installed, obtains the control that all classes are loaded into word and character; Font selects module, for being selected a kind of font as font attribute to be placed by user; Set font module, adds font attribute to be placed for each control obtained decompiling module; Packetization module, repacks for the Android installation kit each control having been added to font attribute to be placed.
Preferably, decompiling module comprises: decompression units, for carrying out decompress(ion) to the Android installation kit copied into system data/app catalogue; Topology file resolution unit, obtains topology file in the file that parsed from decompression units; Control detecting unit, detects all controls being loaded into word and character in the topology file that parses from topology file resolution unit.
Preferably, control detecting unit detects the control that can be loaded into word and character and refers to that obtaining form is the topology file of xml from topology file.
Preferably, control detecting unit application hierarchyviewer instrument obtains the control that can be loaded into word and character from topology file.
Preferably, the font that font selects module to provide user to select is the font that android system carries.
Beneficial effect of the present invention is: designed the workflow of erector in Android device by method of the present invention or device, make user can select specific font when installing application, the font set when the font that consequently mounted application program presents after installing startup is and installs.Method of the present invention or device can allow all application in system have and arrange different fonts, and the different fonts in each application is user just sets when mounted, make each third-party application in android system rich and varied and have more individual character.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the embodiment of the present invention 1;
Fig. 2 is the process flow diagram that Android installation kit to be installed in the embodiment of the present invention 1 pair of installation directory carries out decompiling;
Fig. 3 is the process flow diagram that Android installation kit to be installed in the embodiment of the present invention 2 pairs of installation directories carries out decompiling;
Fig. 4 is the structural representation of the embodiment of the present invention 3;
Fig. 5 is the structural representation of the embodiment of the present invention 3 decompiling module;
Fig. 6 display interface that to be the embodiment of the present invention 3 select font to carry out as font attribute to be placed for user.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described further.
Embodiment 1, a kind of can the Android installation method of selective gist font, as shown in Figure 1, comprise the following steps:
Step S1, carries out decompiling to the Android installation kit to be installed in installation directory, obtains the control that wherein can be loaded into word and character, as shown in Figure 2, specifically comprises the following steps:
Step S11, carries out decompress(ion) to the Android installation kit copied into system data/app catalogue;
Step S12, obtains topology file from the file of decompress(ion);
Step S13, detects all controls being loaded into word and character from topology file, specifically say to detect from topology file form be the topology file of xml namely
For the control of word and character can be loaded into.
Step S2, user selects a kind of font as font attribute to be placed; User selects a kind of font as being select from the font that android system carries during font attribute to be placed.
Step S3, adds font attribute to be placed to the control that can be loaded into word and character.
Step S4, to through decompiling and the Android installation kit of loaded font attribute to be placed repack.
The main working process of Android erector is: copy Android installation kit apk under the data/app catalogue in android system, decompress(ion) also scans installation kit, dex file (Dalvik bytecode) is saved in dalvik-cache catalogue, and under data/data catalogue, creates corresponding application data catalogue.Android installation kit apk inside comprises res file, wherein comprises the master file such as resource file, topology file, configuration file, AndroidManifest.xml, classes.dex and resources.arsc.
The setting of application programs font when the present embodiment mainly realizes user installation by Android erector, what relate generally to is topology file.
When Android installation kit apk is copied to after under the data/app catalogue of android system in application program installation process, namely decompress(ion) scanning is carried out to Android installation kit apk, the method described in the present embodiment is entered in this process, according to user-selected font, all layout resources of Android installation kit apk are resolved, and to Button all in topology file, TextView, EditView etc. can be loaded in the control of font font style android:typeface=" style of the font " attribute adding access customer and select, be repackaged into Android installation kit apk subsequently.
Embodiment 2, a kind of can the Android installation method of selective gist font, the difference of the present embodiment and embodiment 1 is: step S13, all controls being loaded into word and character are detected from topology file, specifically say and from topology file, obtain the control that can be loaded into word and character with hierarchyviewer instrument, as shown in Figure 3.The method content of other parts is identical with embodiment 1.
Embodiment 3, the present embodiment provide a kind of can the Android erecting device of selective gist font, as shown in Figure 4, this device comprises:
Decompiling module, for carrying out decompiling to Android installation kit to be installed, obtaining all controls being loaded into word and character, specifically comprising as shown in Figure 5:
Decompression units, for carrying out decompress(ion) to the Android installation kit copied into system data/app catalogue;
Topology file resolution unit, obtains topology file in the file that parsed from decompression units; Control detecting unit, detects all controls being loaded into word and character in the topology file that parses from topology file resolution unit.
Control detecting unit, detects the control that can be loaded into word and character and refers to that obtaining form is the topology file of xml from topology file.
Font selects module, for being selected a kind of font as font attribute to be placed by user; The font that font selects module to provide user to select is the font that android system carries.Given tacit consent to three kinds of fonts in android system to be respectively " sans ", " serif ", " monospace ", can certainly add more font by other means, the present embodiment is only using these three kinds of default fonts as options.
Set font module, adds font attribute to be placed for each control obtained decompiling module;
Packetization module, repacks for the Android installation kit each control having been added to font attribute to be placed.
The device described in the present embodiment is added in existing Android erector, user ejects after clicking apk and installs application interface, presents the selectable font option of this device, as shown in Figure 6 in interface, after user clicks one of them font style, click and determine the installation procedure entering application.Be copied in android system data/app catalogue by Android installation kit apk in installation, and carry out decompress(ion) scanning, described in the present embodiment, device adds at this.First decompiling is carried out to the Android installation kit apk just copied in data/app catalogue, can be applied after decompiling resource informations all in wrapping, resource information comprises the picture resource in application bag, audio resource, apply the layout resource etc. at each interface, these layout resources present with the form of xml form.After decompiling Android installation kit apk obtains each interface layout files, resolve to retrieve to the parsing module of xml topology file by Android and can be loaded into word in all topology files, the control of character, as Button, TextView, EditView etc., attribute that Android sets font is added as android:typeface=" style of font " in all controls detected, font style is herein the font style of user's selection as " sans ", control in application in all topology files is repackaged into apk after all adding the font style of user's selection, be exactly that all controls that can be loaded into word in topology file are extracted to the parsing object of xml topology file, after obtaining these controls, add Set font attribute wherein regenerate xml topology file, later by again application being packaged into apk, control now in application in each interface all adds the attribute of font style.Continue the installation procedure applied subsequently.After application installation procedure terminates, user clicks and enters application, the font selected when the font style at each interface of now applying has been set to this application of user installation.
As user have selected " monospace " font style when installing application, a lot of control such as TextView control in the xml topology file in Android installation kit apk, is had to be defined as follows:
After resolving xml topology file, add the font " monospace " that access customer is made by oneself, namely become as follows:
"@string/hello_world " word string now in TextView control all shows with the style of monospace.
Embodiment 4, the difference of the present embodiment and embodiment 3 is: control detecting unit application hierarchyviewer instrument obtains the control that can be loaded into word and character from topology file.
The present embodiment provides hierarchyviewer instrument in AndroidSDK, indexes out each control layout in interface and inheritance mainly through this instrument.Its effect with by being the same to the effect of its essence of index of xml topology file herewith instrument.The setting of other parts of the present embodiment is identical with embodiment 3.
Should be understood that, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.
Claims (10)
1. can the Android installation method of selective gist font, it is characterized in that, comprising:
Decompiling is carried out to the Android installation kit to be installed in installation directory, obtains the control that wherein can be loaded into word and character;
User selects a kind of font as font attribute to be placed;
Font attribute to be placed is added to the described control being loaded into word and character;
To through decompiling and the described Android installation kit of loaded font attribute to be placed repack.
2. according to claim 1 a kind of can the Android installation method of selective gist font, it is characterized in that, decompiling is carried out to the Android installation kit to be installed in installation directory, obtain the control that wherein can be loaded into word and character and specifically comprise:
Decompress(ion) is carried out to the Android installation kit copied into system data/app catalogue;
Topology file is obtained from the file of decompress(ion);
All controls being loaded into word and character are detected from described topology file.
3. according to claim 2 a kind of can the Android installation method of selective gist font, it is characterized in that, from described topology file, detect that all methods being loaded into the control of word and character are: from described topology file, detect that form is that the topology file of xml is the control that can be loaded into word and character.
4. according to claim 2 a kind of can the Android installation method of selective gist font, it is characterized in that, from described topology file, detect that all methods being loaded into the control of word and character are: from described topology file, obtain the control that can be loaded into word and character with hierarchyviewer instrument.
5. according to claim 1 a kind of can the Android installation method of selective gist font, it is characterized in that, user selects a kind of font as being select from the font that android system carries during font attribute to be placed.
6. can the Android erecting device of selective gist font, it is characterized in that, described device comprises:
Decompiling module, for carrying out decompiling to Android installation kit to be installed, obtains the control that all classes are loaded into word and character;
Font selects module, for being selected a kind of font as font attribute to be placed by user;
Set font module, each control for obtaining described decompiling module adds described font attribute to be placed;
Packetization module, repacks for the Android installation kit each control having been added to font attribute to be placed.
7. according to claim 6 a kind of can the Android erecting device of selective gist font, it is characterized in that, described decompiling module comprises:
Decompression units, for carrying out decompress(ion) to the Android installation kit copied into system data/app catalogue;
Topology file resolution unit, obtains topology file in the file that parsed from described decompression units;
Control detecting unit, detects all controls being loaded into word and character in the described topology file that parses from described topology file resolution unit.
8. according to claim 7 a kind of can the Android erecting device of selective gist font, it is characterized in that: described control detecting unit detects the control that can be loaded into word and character and refers to that obtaining form is the topology file of xml from described topology file.
9. according to claim 7 a kind of can the Android erecting device of selective gist font, it is characterized in that: described control detecting unit application hierarchyviewer instrument obtains the control that can be loaded into word and character from described topology file.
10. according to claim 6 a kind of can the Android erecting device of selective gist font, it is characterized in that: the font that font selects module to provide user to select is the font that android system carries.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510639109.4A CN105183524A (en) | 2015-09-29 | 2015-09-29 | Application-font-selectable Android installation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510639109.4A CN105183524A (en) | 2015-09-29 | 2015-09-29 | Application-font-selectable Android installation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105183524A true CN105183524A (en) | 2015-12-23 |
Family
ID=54905622
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510639109.4A Pending CN105183524A (en) | 2015-09-29 | 2015-09-29 | Application-font-selectable Android installation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105183524A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105893336A (en) * | 2016-03-30 | 2016-08-24 | 努比亚技术有限公司 | Text display method and terminal |
CN106168901A (en) * | 2016-06-23 | 2016-11-30 | 北京奇虎科技有限公司 | Application program font customizing method and control method and related device |
WO2017107572A1 (en) * | 2015-12-24 | 2017-06-29 | 北京大学 | Reconfiguration method for smart watch-oriented android application |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008234673A (en) * | 1997-10-24 | 2008-10-02 | Microsoft Corp | System and method for managing application installation for mobile device |
CN104216748A (en) * | 2014-09-03 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Application program installation method, device and system |
-
2015
- 2015-09-29 CN CN201510639109.4A patent/CN105183524A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008234673A (en) * | 1997-10-24 | 2008-10-02 | Microsoft Corp | System and method for managing application installation for mobile device |
CN104216748A (en) * | 2014-09-03 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Application program installation method, device and system |
Non-Patent Citations (2)
Title |
---|
ZDYGUNDAM: "修改apk,美化(字体颜色修改,背景透明等)", 《HTTP://BBS.ZHIYOO.COM/THREAD-8261110-1-1.HTML》 * |
希望之光: "状态栏字体颜色修改", 《HTTP://BBS.CNMO.COM/THREAD-12286944-1-1.HTML》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017107572A1 (en) * | 2015-12-24 | 2017-06-29 | 北京大学 | Reconfiguration method for smart watch-oriented android application |
CN105893336A (en) * | 2016-03-30 | 2016-08-24 | 努比亚技术有限公司 | Text display method and terminal |
CN105893336B (en) * | 2016-03-30 | 2019-04-26 | 努比亚技术有限公司 | A kind of text display method and terminal |
CN106168901A (en) * | 2016-06-23 | 2016-11-30 | 北京奇虎科技有限公司 | Application program font customizing method and control method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102946599B (en) | Realize method and mobile terminal that application program for mobile terminal is downloaded | |
US10540168B2 (en) | Mobile application webview modification | |
CN102779151B (en) | The searching method of application program, Apparatus and system | |
CN108664239B (en) | Cross-technology-stack web front-end development system and method based on micro-service | |
US20150331882A1 (en) | Redundant file deletion method, apparatus and storage medium | |
US10078709B2 (en) | Managing a display of results of a keyword search on a web page by modifying attributes of a DOM tree structure | |
CN103092665B (en) | Immediate updating device and immediate updating method | |
CN109522500B (en) | Webpage display method, device, terminal and storage medium | |
CN105354014A (en) | Application interface rendering display method and apparatus | |
US9594749B2 (en) | Visually differentiating strings for testing | |
CN108536451B (en) | Method and device for embedding embedded point of application program | |
US20150286743A1 (en) | Method, system, and device for marking web content | |
CN107679214B (en) | Link positioning method, device, terminal and computer readable storage medium | |
CN106686200B (en) | Mobile application program updating method, mobile terminal and updating system | |
CN111078221B (en) | Page color theme switching method and device, storage medium and electronic equipment | |
CN103888408B (en) | Upload the data to method and the device of social platform | |
CN105446739A (en) | UI interface setting method and apparatus | |
WO2015027846A1 (en) | Permission determining method and device for application program | |
CN105183524A (en) | Application-font-selectable Android installation method and device | |
US9513762B1 (en) | Static content updates | |
CN103019764B (en) | The detection method of Andriod resource bag installability and system | |
WO2018133772A1 (en) | Method, device, storage medium, and electronic device for obtaining webpage resources | |
CN102156650B (en) | Method and device capable of implementing automatic analysis of patch | |
CN104267921A (en) | Page display control method and server | |
KR20090115149A (en) | Unifying discoverability of a website's services |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151223 |
|
RJ01 | Rejection of invention patent application after publication |