CN109445890A - A kind of method for showing interface, device, terminal device and storage medium - Google Patents
A kind of method for showing interface, device, terminal device and storage medium Download PDFInfo
- Publication number
- CN109445890A CN109445890A CN201811173427.6A CN201811173427A CN109445890A CN 109445890 A CN109445890 A CN 109445890A CN 201811173427 A CN201811173427 A CN 201811173427A CN 109445890 A CN109445890 A CN 109445890A
- Authority
- CN
- China
- Prior art keywords
- showing interface
- interface
- class file
- markup language
- extensible markup
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the present application provides a kind of method for showing interface, this method comprises: reception interface shows instruction;In the software installation packet obtained in advance, searches the showing interface and instruct corresponding class file;Based on the class file found, generates and show that the showing interface instructs corresponding interface.In this programme, the class file of corresponding software is instructed to be added in installation kit showing interface in advance, and class file is the file that terminal device can be executed directly, after receiving showing interface instruction, it does not need to carry out dynamic analysis to extensible markup language, directly corresponding interface can be instructed to reduce the waiting time of user to accelerate interface loading velocity according to class file generated showing interface.
Description
Technical field
This disclosure relates to which software application field more particularly to a kind of method for showing interface, device, terminal device and storage are situated between
Matter.
Background technique
When opening software interface in the various terminal equipments such as mobile phone, computer, it will usually show content abundant, including text
Word, static images, dynamic picture, link etc..Relevant showing interface scheme generally comprises: receiving user to software circle
After the displaying instruction in face, interface to be presented corresponding XML (Extensible Markup is obtained from software installation packet
Language, extensible markup language) file, by corresponding interface being generated, to life to XML file progress dynamic analysis
At interface be shown.
But under some cases, showing interface content is more, and the time needed for carrying out dynamic analysis to XML file is longer,
In this way, will lead to interface is constantly in stress state, period of reservation of number is longer.
Summary of the invention
The embodiment of the present application is designed to provide a kind of method for showing interface, device, terminal device and storage medium, with
It realizes and accelerates interface loading velocity, reduce the waiting time of user.
Specific technical solution is as follows:
The embodiment of the present application provides a kind of method for showing interface, comprising:
Reception interface shows instruction;
In the software installation packet obtained in advance, searches the showing interface and instruct corresponding class file;
Based on the class file found, generates and show that the showing interface instructs corresponding interface.
Optionally, using following steps, the software installation packet is obtained:
Obtain the extensible markup language document that the showing interface instructs corresponding software;
The extensible markup language document is converted into class file;
Generate the software installation packet including the class file.
Optionally, the extensible markup language document for obtaining the showing interface and instructing corresponding software, comprising:
Obtain the original installation kit that the showing interface instructs corresponding software;
From the original installation kit, the extensible markup language text that the showing interface instructs corresponding software is obtained
Part;
It is described to generate the software installation packet including the class file, comprising:
The extensible markup language document that the showing interface instructs corresponding software is deleted from the original installation kit,
Obtain installation kit to be processed;
Class file is packaged, and the class file after packing is added to the installation kit to be processed, is obtained
The software installation packet.
It is optionally, described that the extensible markup language document is converted into class file, comprising:
The extensible markup language document is compiled, the corresponding java of the extensible markup language document is obtained
File;
The java file is compiled as class file.
Optionally, described that the extensible markup language document is compiled, obtain the extensible markup language text
The corresponding java file of part, comprising:
Using handling implement is explained, the extensible markup language document is compiled, the extensible markup is obtained
The corresponding Java file of language file.
The embodiment of the present application also provides a kind of showing interface devices, comprising:
Receiving unit is configured as reception interface and shows instruction;
Searching unit is configured as in the software installation packet obtained in advance, and it is corresponding to search the showing interface instruction
Class file;
Display unit is configured as being generated based on the class file found and being shown that the showing interface instruction corresponds to
Interface.
Optionally, the device further include:
Acquiring unit is configured as obtaining the extensible markup language document that the showing interface instructs corresponding software;
Converting unit is configured as the extensible markup language document being converted to class file;
Generation unit is configurable to generate the software installation packet including the class file.
Optionally, the acquiring unit is additionally configured to obtain the original peace that the showing interface instructs corresponding software
Dress packet;From the original installation kit, the extensible markup language document that the showing interface instructs corresponding software is obtained;
It is corresponding soft to be additionally configured to delete the showing interface instruction from the original installation kit for the generation unit
The extensible markup language document of part obtains installation kit to be processed;Class file is packaged, and by the class after packing
File is added to the installation kit to be processed, obtains the software installation packet.
Optionally, the converting unit is additionally configured to be compiled the extensible markup language document, obtains institute
State the corresponding java file of extensible markup language document;The java file is compiled as class file.
Optionally, the converting unit is additionally configured to using handling implement is explained, to the extensible markup language text
Part is compiled, and obtains the corresponding Java file of the extensible markup language document.
The embodiment of the present application also provides a kind of showing interface terminal devices, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, it the processor is configured to when executing the program stored on memory, realizes any of the above-described described
Method for showing interface.
The embodiment of the present application also provides a kind of non-transitorycomputer readable storage mediums, when in the storage medium
When instruction is executed by the processor of mobile terminal device, so that mobile terminal device is able to carry out a kind of method for showing interface, institute
The method of stating includes:
Reception interface shows instruction;
In the software installation packet obtained in advance, searches the showing interface and instruct corresponding class file;
Based on the class file found, generates and show that the showing interface instructs corresponding interface.
The embodiment of the present application also provides a kind of computer program products comprising instruction, when it runs on computers
When, so that computer executes any of the above-described method for showing interface.
The technical scheme provided by this disclosed embodiment can include the following benefits: receive showing interface instruction
Later, it in the software installation packet obtained in advance, searches showing interface and instructs corresponding class file, be then based on and find
Class file, generate and show that showing interface instructs corresponding interface.That is, in the present solution, in advance by showing interface
The class file of corresponding software is instructed to be added in installation kit, and class file is the text that terminal device can be executed directly
Part after receiving showing interface instruction, does not need to carry out dynamic analysis to extensible markup language, can be directly according to class
File generated showing interface instructs corresponding interface to reduce the waiting time of user to accelerate interface loading velocity.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of method for showing interface shown according to an exemplary embodiment.
Fig. 2 is the flow chart of another method for showing interface shown according to an exemplary embodiment.
Fig. 3 is a kind of block diagram of showing interface device shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of terminal device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
In general, terminal device is obtained from software installation packet after receiving user to the displaying instruction of software interface
Corresponding XML (Extensible Markup Language, the extensible markup language) file in interface to be presented, by this
XML file carries out dynamic analysis, generates corresponding interface, is shown to the interface of generation.Wherein, XML file is moved
State parsing needs to call corresponding function, such as setContentView function or LayoutInflater.inflate function
Deng.
But under some cases, showing interface content is more, and when carrying out dynamic analysis to XML file, IO time-consuming is more tight
Weight, the recursive calculation in resolving is also relatively time-consuming, and it is also more time-consuming that reflection generates object, in this way, causing to XML text
Time needed for part carries out dynamic analysis is longer, is constantly in stress state so as to cause interface, period of reservation of number is longer.
In order to solve the above-mentioned technical problem, the embodiment of the present application provides a kind of method for showing interface and device, this method
It can be applied in the various terminal equipments such as the mobile phone, the computer that are mounted with Android system with device.First below to the application
The method for showing interface that embodiment provides describes in detail.For the convenience of description, executing subject is known as in following embodiment
Terminal device.
Fig. 1 is a kind of flow chart of method for showing interface shown according to an exemplary embodiment, as shown in Figure 1, interface
Methods of exhibiting is for including the following steps in terminal device.
In S101, reception interface shows instruction.
In some scenes, terminal device can show corresponding interface according to the showing interface instruction received.
For example, in a kind of situation, showing interface instruction can be the instruction of user's sending, for example, when the user clicks
When the virtual key at a certain switching interface in software, that is, user has issued a showing interface instruction to terminal device.
Alternatively, in another case, showing interface instruction be also possible to the instruction that terminal device automatically generates, work as example, can set
When the displaying duration at a certain interface is more than preset duration, next interface is just automatically switched to, that is to say, that when the displaying at the interface
Duration is more than after preset duration, and terminal device can automatically generate a showing interface instruction, to show next interface.
In S102, in the software installation packet obtained in advance, searches showing interface and instruct corresponding class file.
After reception interface shows instruction, terminal device can search interface in the software installation packet obtained in advance
It shows and instructs corresponding class file.
It include that showing interface instructs corresponding class file in software installation packet in the embodiment of the present application, in this way, connecing
After receiving showing interface instruction, it can search showing interface directly from the software installation packet and instruct corresponding class file.
For example, terminal device can directly download software installation packet from network or other equipment, alternatively, terminal is set
It is standby to generate in accordance with the following steps software installation packet:
The first step obtains the extensible markup language document that showing interface instructs corresponding software.
Wherein, extensible markup language document i.e. XML (Extensible Markup Language) file, interface
It shows and the extensible markup language document of corresponding software is instructed to can be terminal device under in network or other equipment directly
It carries, is also possible to directly generate by the operation of the Code Edit of user;Alternatively, terminal device can be first in a kind of situation
The original installation kit for obtaining software obtains showing interface and instructs corresponding software then from acquired original installation kit
Extensible markup language document.
Extensible markup language document is converted to class file by second step.
For example, extensible markup language document is converted to class file may include: first to extensible markup language
Speech file is compiled, and is obtained the corresponding java file of extensible markup language document, is further compiled as java file
Class file.
Specifically, can use APT (Annotation when being compiled to extensible markup language document
Processing Tool explains handling implement), extensible markup language document is compiled, Java file is obtained, wherein
APT can parse the note in code when being compiled to software code, to generate new Java file, reduce manual
Code input.
Further, in compilation process, javapoet open source library can be called, javapoet open source library can delete software
Duplicate template code in code, to further increase the efficiency of compiling.Alternatively, may call upon the library Xstream,
Dom4j parsing packet etc., specifically without limitation.
Third step generates the software installation packet including class file.
For example, in a kind of situation, can directly showing interface be instructed the alternative document of corresponding software and is obtained
Class file be packaged, generate showing interface and instruct the software installation packet of corresponding software.
Alternatively, in another case, terminal device can obtain extensible markup language from acquired original installation kit
Say file.In this case, what terminal device can first delete that showing interface instructs corresponding software from original installation kit can
Extended markup language file obtains installation kit to be processed, then, is packaged to class file, by the class text after packing
Part is added to installation kit to be processed, obtains software installation packet.Wherein it is possible to which class file is added in a manner of bytecode
In original installation kit.
In this way, in above-mentioned implementation, it, can be directly from the software installation of generation after reception interface shows instruction
Bao Zhong searches showing interface and instructs corresponding class file.
In S103, based on the class file found, generates and show that showing interface instructs corresponding interface.
Specifically, class file i.e. Java class file, it is virtual to be that one kind may operate in any support Java
Binary file on the terminal device of machine, that is to say, that class file is not needed to be compiled and be parsed, so that it may at end
It is run in end equipment, generates showing interface and instruct corresponding interface, and then the interface of generation is shown.
As seen from the above, using method for showing interface provided by the embodiments of the present application, it is instructed receiving showing interface
Afterwards, it in the software installation packet obtained in advance, searches showing interface and instructs corresponding class file, be then based on and find
Class file generates and shows that showing interface instructs corresponding interface.That is, in the present solution, showing interface is referred in advance
The class file of corresponding software is enabled to be added in installation kit, and class file is the text that terminal device can be executed directly
Part after receiving showing interface instruction, does not need to carry out dynamic analysis to extensible markup language, can be directly according to class
File generated showing interface instructs corresponding interface to reduce the waiting time of user to accelerate interface loading velocity.
Fig. 2 is the flow chart of another method for showing interface shown according to an exemplary embodiment, as shown in Fig. 2, boundary
Face methods of exhibiting is for including the following steps in terminal device.
In S201, the extensible markup language document that showing interface instructs corresponding software is obtained.
Wherein, extensible markup language document i.e. XML (Extensible Markup Language) file, interface
It shows and the extensible markup language document of corresponding software is instructed to can be terminal device under in network or other equipment directly
It carries, is also possible to directly generate by the operation of the Code Edit of user;Alternatively, terminal device can be first in a kind of situation
The original installation kit for obtaining software obtains showing interface and instructs corresponding software then from acquired original installation kit
Extensible markup language document.
In S202, extensible markup language document is converted into class file.
For example, extensible markup language document is converted to class file may include: first to extensible markup language
Speech file is compiled, and is obtained the corresponding java file of extensible markup language document, is further compiled as java file
Class file.
Specifically, can use APT (Annotation when being compiled to extensible markup language document
Processing Tool explains handling implement), extensible markup language document is compiled, Java file is obtained, wherein
APT can parse the note in code when being compiled to software code, to generate new Java file, reduce manual
Code input.
Further, in compilation process, javapoet open source library can be called, javapoet open source library can delete software
Duplicate template code in code, to further increase the efficiency of compiling.Alternatively, may call upon the library Xstream,
Dom4j parsing packet etc., specifically without limitation.
In S203, the software installation packet including class file is generated.
For example, in a kind of situation, can directly showing interface be instructed the alternative document of corresponding software and is obtained
Class file be packaged, generate showing interface and instruct the software installation packet of corresponding software.
Alternatively, in another case, terminal device can obtain extensible markup language from acquired original installation kit
Say file.In this case, what terminal device can first delete that showing interface instructs corresponding software from original installation kit can
Extended markup language file obtains installation kit to be processed, then, is packaged to class file, by the class text after packing
Part is added to installation kit to be processed, obtains software installation packet.Wherein it is possible to which class file is added in a manner of bytecode
In original installation kit.
In this way, in above-mentioned implementation, it, can be directly from the software installation of generation after reception interface shows instruction
Bao Zhong searches showing interface and instructs corresponding class file.
In S204, reception interface shows instruction.
For example, in a kind of situation, showing interface instruction can be the instruction of user's sending, for example, when the user clicks
When the virtual key at a certain switching interface in software, that is, user has issued a showing interface instruction to terminal device.
Alternatively, in another case, showing interface instruction be also possible to the instruction that terminal device automatically generates, work as example, can set
When the displaying duration at a certain interface is more than preset duration, next interface is just automatically switched to, that is to say, that when the displaying at the interface
Duration is more than after preset duration, and terminal device can automatically generate a showing interface instruction, to show next interface.
In S205, in the software installation packet obtained in advance, searches showing interface and instruct corresponding class file.
After reception interface shows instruction, terminal device can search interface in the software installation packet obtained in advance
It shows and instructs corresponding class file.
It include that showing interface instructs corresponding class file in software installation packet in the embodiment of the present application, in this way, connecing
After receiving showing interface instruction, it can search showing interface directly from the software installation packet and instruct corresponding class file.
In S206, based on the class file found, generates and show that showing interface instructs corresponding interface.
Specifically, class file i.e. Java class file, it is virtual to be that one kind may operate in any support Java
Binary file on the terminal device of machine, that is to say, that class file is not needed to be compiled and be parsed, so that it may at end
It is run in end equipment, generates showing interface and instruct corresponding interface, and then the interface of generation is shown.
As seen from the above, using method for showing interface provided by the embodiments of the present application, it is instructed receiving showing interface
Afterwards, it in the software installation packet obtained in advance, searches showing interface and instructs corresponding class file, be then based on and find
Class file generates and shows that showing interface instructs corresponding interface.That is, in the present solution, showing interface is referred in advance
The class file of corresponding software is enabled to be added in installation kit, and class file is the text that terminal device can be executed directly
Part after receiving showing interface instruction, does not need to carry out dynamic analysis to extensible markup language, can be directly according to class
File generated showing interface instructs corresponding interface to reduce the waiting time of user to accelerate interface loading velocity.
As shown in figure 3, being a kind of structural schematic diagram of showing interface device provided by the embodiments of the present application, which includes
Receiving unit 301, searching unit 302 and display unit 303.Wherein:
Receiving unit 301 is configured as reception interface and shows instruction;
Searching unit 302 is configured as in the software installation packet obtained in advance, is searched the showing interface instruction and is corresponded to
Class file;
Display unit 303 is configured as being generated based on the class file found and being shown the showing interface instruction
Corresponding interface.
In a kind of implementation, the device further include:
Acquiring unit 304 is configured as obtaining the extensible markup language text that the showing interface instructs corresponding software
Part;
Converting unit 305 is configured as the extensible markup language document being converted to class file;
Generation unit 306 is configurable to generate the software installation packet including the class file.
In a kind of implementation, the acquiring unit 304 is additionally configured to obtain the showing interface instruction corresponding soft
The original installation kit of part;From the original installation kit, the extensible markup that the showing interface instructs corresponding software is obtained
Language file;
The generation unit 306 is additionally configured to delete the showing interface instruction correspondence from the original installation kit
Software extensible markup language document, obtain installation kit to be processed;Class file is packaged, and will be after packing
Class file is added to the installation kit to be processed, obtains the software installation packet.
In a kind of implementation, the converting unit 305 is additionally configured to carry out the extensible markup language document
Compiling, obtains the corresponding java file of the extensible markup language document;The java file is compiled as class file.
In a kind of implementation, the converting unit 305 is additionally configured to expand using handling implement is explained described
Exhibition making language document is compiled, and obtains the corresponding Java file of the extensible markup language document.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
As seen from the above, using showing interface device provided by the embodiments of the present application, it is instructed receiving showing interface
Afterwards, it in the software installation packet obtained in advance, searches showing interface and instructs corresponding class file, be then based on and find
Class file generates and shows that showing interface instructs corresponding interface.That is, in the present solution, showing interface is referred in advance
The class file of corresponding software is enabled to be added in installation kit, and class file is the text that terminal device can be executed directly
Part after receiving showing interface instruction, does not need to carry out dynamic analysis to extensible markup language, can be directly according to class
File generated showing interface instructs corresponding interface to reduce the waiting time of user to accelerate interface loading velocity.
Fig. 4 is a kind of block diagram of terminal device 400 for showing interface shown according to an exemplary embodiment.Example
Such as, terminal device 400 can be mobile phone, computer, digital broadcast terminal equipment, messaging devices, game console,
Tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 4, terminal device 400 may include following one or more components: processing component 402, memory 404,
Electric power assembly 406, multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414,
And communication component 416.
The integrated operation of the usual controlling terminal equipment 400 of processing component 402, such as with display, call, data are logical
Letter, camera operation and record operate associated operation.Processing component 402 may include one or more processors 420 to hold
Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more moulds
Block, convenient for the interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, with
Facilitate the interaction between multimedia component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in terminal device 400.These data
Example include any application or method for being operated on terminal device 400 instruction, contact data, telephone directory
Data, message, picture, video etc..Memory 404 can by any kind of volatibility or non-volatile memory device or it
Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable
Except programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, fastly
Flash memory, disk or CD.
Power supply module 406 provides electric power for the various assemblies of terminal device 400.Power supply module 406 may include power supply pipe
Reason system, one or more power supplys and other with for terminal device 400 generate, manage, and distribute the associated component of electric power.
Multimedia component 408 includes the screen of one output interface of offer between the terminal device 400 and user.
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface
Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding
The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments,
Multimedia component 408 includes a front camera and/or rear camera.When equipment 400 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike
Wind (MIC), when terminal device 400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone
It is configured as receiving external audio signal.The received audio signal can be further stored in memory 404 or via logical
Believe that component 416 is sent.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 414 includes one or more sensors, for providing the state of various aspects for terminal device 400
Assessment.For example, sensor module 414 can detecte the state that opens/closes of equipment 400, the relative positioning of component, such as institute
The display and keypad that component is terminal device 400 are stated, sensor module 414 can also detect terminal device 400 or terminal
The position change of 400 1 components of equipment, the existence or non-existence that user contacts with terminal device 400,400 orientation of terminal device
Or the temperature change of acceleration/deceleration and terminal device 400.Sensor module 414 may include proximity sensor, be configured to
It detects the presence of nearby objects without any physical contact.Sensor module 414 can also include optical sensor, such as
CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which can be with
Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between terminal device 400 and other equipment.
Terminal device 400 can access the wireless network based on communication standard, such as WiFi, carrier network (such as 2G, 3G, 4G or 5G),
Or their combination.In one exemplary embodiment, communication component 416 receives via broadcast channel and comes from external broadcasting management
The broadcast singal or broadcast related information of system.In one exemplary embodiment, the communication component 416 further includes that near field is logical
(NFC) module is believed, to promote short range communication.For example, radio frequency identification (RFID) technology, infrared data association can be based in NFC module
Meeting (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 400 can be by one or more application specific integrated circuit (ASIC), number
Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of terminal device 400 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
As seen from the above, using showing interface terminal device provided by the embodiments of the present application, showing interface is instructed in advance
The class file of corresponding software is added in installation kit, and class file is the file that terminal device can be executed directly,
After receiving showing interface instruction, do not need to carry out dynamic analysis to extensible markup language, it can be directly according to class file
Generating showing interface instructs corresponding interface to reduce the waiting time of user to accelerate interface loading velocity.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, terminal device embodiment, storage medium embodiment, since it is substantially similar to the method embodiment, so description
Fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (12)
1. a kind of method for showing interface characterized by comprising
Reception interface shows instruction;
In the software installation packet obtained in advance, searches the showing interface and instruct corresponding class file;
Based on the class file found, generates and show that the showing interface instructs corresponding interface.
2. method for showing interface according to claim 1, which is characterized in that use following steps, obtain the software peace
Dress packet:
Obtain the extensible markup language document that the showing interface instructs corresponding software;
The extensible markup language document is converted into class file;
Generate the software installation packet including the class file.
3. method for showing interface according to claim 2, which is characterized in that described to obtain the showing interface instruction correspondence
Software extensible markup language document, comprising:
Obtain the original installation kit that the showing interface instructs corresponding software;
From the original installation kit, the extensible markup language document that the showing interface instructs corresponding software is obtained;
It is described to generate the software installation packet including the class file, comprising:
The extensible markup language document that the showing interface instructs corresponding software is deleted from the original installation kit, is obtained
Installation kit to be processed;
Class file is packaged, and the class file after packing is added to the installation kit to be processed, is obtained described
Software installation packet.
4. method for showing interface according to claim 2, which is characterized in that described by the extensible markup language document
Be converted to class file, comprising:
The extensible markup language document is compiled, the corresponding java text of the extensible markup language document is obtained
Part;
The java file is compiled as class file.
5. method for showing interface according to claim 4, which is characterized in that described to the extensible markup language document
It is compiled, obtains the corresponding java file of the extensible markup language document, comprising:
Using handling implement is explained, the extensible markup language document is compiled, the extensible markup language is obtained
The corresponding Java file of file.
6. a kind of showing interface device characterized by comprising
Receiving unit is configured as reception interface and shows instruction;
Searching unit is configured as in the software installation packet obtained in advance, is searched the showing interface and is instructed corresponding class
File;
Display unit is configured as being generated based on the class file found and being shown that the showing interface instructs corresponding boundary
Face.
7. showing interface device according to claim 6, which is characterized in that the device further include:
Acquiring unit is configured as obtaining the extensible markup language document that the showing interface instructs corresponding software;
Converting unit is configured as the extensible markup language document being converted to class file;
Generation unit is configurable to generate the software installation packet including the class file.
8. showing interface device according to claim 7, which is characterized in that
The acquiring unit is additionally configured to obtain the original installation kit that the showing interface instructs corresponding software;From described
In original installation kit, the extensible markup language document that the showing interface instructs corresponding software is obtained;
The generation unit, is additionally configured to delete the showing interface from the original installation kit and instructs corresponding software
Extensible markup language document obtains installation kit to be processed;Class file is packaged, and by the class file after packing
It is added to the installation kit to be processed, obtains the software installation packet.
9. showing interface device according to claim 7, which is characterized in that
The converting unit is additionally configured to be compiled the extensible markup language document, obtains the expansible mark
Remember the corresponding java file of language file;The java file is compiled as class file.
10. showing interface device according to claim 9, which is characterized in that
The converting unit is additionally configured to be compiled the extensible markup language document using handling implement is explained,
Obtain the corresponding Java file of the extensible markup language document.
11. a kind of showing interface terminal device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to when executing the program stored on memory, realize that claim 1-5 is any described
Method and step.
12. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by mobile terminal device
When processor executes, so that mobile terminal device is able to carry out a kind of method for showing interface, which comprises
Reception interface shows instruction;
In the software installation packet obtained in advance, searches the showing interface and instruct corresponding class file;
Based on the class file found, generates and show that the showing interface instructs corresponding interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811173427.6A CN109445890A (en) | 2018-10-09 | 2018-10-09 | A kind of method for showing interface, device, terminal device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811173427.6A CN109445890A (en) | 2018-10-09 | 2018-10-09 | A kind of method for showing interface, device, terminal device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109445890A true CN109445890A (en) | 2019-03-08 |
Family
ID=65546152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811173427.6A Pending CN109445890A (en) | 2018-10-09 | 2018-10-09 | A kind of method for showing interface, device, terminal device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109445890A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112287097A (en) * | 2019-07-25 | 2021-01-29 | 腾讯科技(深圳)有限公司 | Markup language text analysis method and device, storage medium and electronic equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101005681A (en) * | 2006-01-17 | 2007-07-25 | 大唐移动通信设备有限公司 | Interface automatic forming method and interface automatic forming system |
CN100478879C (en) * | 2006-12-15 | 2009-04-15 | 中兴通讯股份有限公司 | Method for service logic mapping onto applied language discribed by XML language |
CN103049260A (en) * | 2012-12-10 | 2013-04-17 | 上海斐讯数据通信技术有限公司 | Method and system for displaying user interface of software at client |
CN103176807A (en) * | 2011-12-22 | 2013-06-26 | 盛乐信息技术(上海)有限公司 | Method and system for acceleration of Webpage application execution |
CN103309659A (en) * | 2013-05-24 | 2013-09-18 | 天津市天安怡和信息技术有限公司 | User interface dynamic generation method and device based on rich client platform |
CN104317587A (en) * | 2014-10-22 | 2015-01-28 | 中国人民解放军国防科学技术大学 | Automatic android mobile device oriented application generation method |
US8954998B1 (en) * | 2008-12-17 | 2015-02-10 | Cisco Technology, Inc. | Application of an embedded instrumentation interface definition language |
CN105022619A (en) * | 2014-04-25 | 2015-11-04 | 无锡物联网产业研究院 | Code processing method and device |
CN105095348A (en) * | 2015-06-09 | 2015-11-25 | 北京织星科技有限公司 | Method for dynamically configuring website through XML (Extensive Markup Language) |
CN108170430A (en) * | 2017-12-26 | 2018-06-15 | 阿里巴巴集团控股有限公司 | A kind of method and system of showing interface |
-
2018
- 2018-10-09 CN CN201811173427.6A patent/CN109445890A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101005681A (en) * | 2006-01-17 | 2007-07-25 | 大唐移动通信设备有限公司 | Interface automatic forming method and interface automatic forming system |
CN100478879C (en) * | 2006-12-15 | 2009-04-15 | 中兴通讯股份有限公司 | Method for service logic mapping onto applied language discribed by XML language |
US8954998B1 (en) * | 2008-12-17 | 2015-02-10 | Cisco Technology, Inc. | Application of an embedded instrumentation interface definition language |
CN103176807A (en) * | 2011-12-22 | 2013-06-26 | 盛乐信息技术(上海)有限公司 | Method and system for acceleration of Webpage application execution |
CN103049260A (en) * | 2012-12-10 | 2013-04-17 | 上海斐讯数据通信技术有限公司 | Method and system for displaying user interface of software at client |
CN103309659A (en) * | 2013-05-24 | 2013-09-18 | 天津市天安怡和信息技术有限公司 | User interface dynamic generation method and device based on rich client platform |
CN105022619A (en) * | 2014-04-25 | 2015-11-04 | 无锡物联网产业研究院 | Code processing method and device |
CN104317587A (en) * | 2014-10-22 | 2015-01-28 | 中国人民解放军国防科学技术大学 | Automatic android mobile device oriented application generation method |
CN105095348A (en) * | 2015-06-09 | 2015-11-25 | 北京织星科技有限公司 | Method for dynamically configuring website through XML (Extensive Markup Language) |
CN108170430A (en) * | 2017-12-26 | 2018-06-15 | 阿里巴巴集团控股有限公司 | A kind of method and system of showing interface |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112287097A (en) * | 2019-07-25 | 2021-01-29 | 腾讯科技(深圳)有限公司 | Markup language text analysis method and device, storage medium and electronic equipment |
CN112287097B (en) * | 2019-07-25 | 2023-10-27 | 腾讯科技(深圳)有限公司 | Method and device for analyzing markup language text, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107423106B (en) | Method and apparatus for supporting multi-frame syntax | |
CN104679599A (en) | Application program duplicating method and device | |
CN113065591B (en) | Target detection method and device, electronic equipment and storage medium | |
CN105094830B (en) | A kind of method and apparatus of performance objective function | |
EP3239858A1 (en) | Method and apparatus for searching resource | |
CN105468410A (en) | System upgrading method and device | |
CN105094904A (en) | Application program installation method and device | |
CN109358933A (en) | The creation method and device applied fastly | |
CN107463372B (en) | Data-driven page updating method and device | |
CN105183571A (en) | Function calling method and device | |
CN105930151A (en) | Application compilation method and apparatus as well as terminal | |
CN111061452A (en) | Voice control method and device of user interface | |
CN105335200A (en) | System upgrading method and device | |
CN109344051A (en) | Method, apparatus, electronic equipment and the storage medium of data processing | |
JP2017520877A (en) | SEARCH METHOD, SEARCH DEVICE, PROGRAM, AND RECORDING MEDIUM | |
JP2017520877A5 (en) | ||
EP3173949A1 (en) | Method and device for pushing user information | |
CN111552688A (en) | Data export method and device and electronic equipment | |
CN109445890A (en) | A kind of method for showing interface, device, terminal device and storage medium | |
CN108427568B (en) | User interface updating method and device | |
CN111814797A (en) | Picture character recognition method and device and computer readable storage medium | |
CN110457084A (en) | A kind of loading method and device | |
CN104793847A (en) | Picture showing method and device | |
CN104166698A (en) | Data processing method and device | |
CN110347394B (en) | Software code analysis method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |