CN104965722B - A kind of method and device of display information - Google Patents
A kind of method and device of display information Download PDFInfo
- Publication number
- CN104965722B CN104965722B CN201410368034.6A CN201410368034A CN104965722B CN 104965722 B CN104965722 B CN 104965722B CN 201410368034 A CN201410368034 A CN 201410368034A CN 104965722 B CN104965722 B CN 104965722B
- Authority
- CN
- China
- Prior art keywords
- event
- executable code
- shared component
- information
- intended application
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method and devices of display information, belong to field of computer technology.Method includes:It detects when showing that the event of information is triggered in intended application, determines the event operation to be triggered;Obtain the shared component for realizing the operation;It will be loaded onto in the corresponding process space of the intended application for realizing the executable code of the shared component;Obtaining and show in the event of the display information by the executable code needs information to be shown.When the present invention shows that the event of information is triggered in intended application, the executable code of the shared component for the operation for realizing event triggering is loaded onto in the process space of intended application, being obtained and being shown according to the executable code needs information to be shown.The function of being called in intended application is realized to start other application, save the expense of system, improve the operational efficiency of system without creating new process.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and device of display information.
Background technology
The function itself not having is realized using other application can be called in use, such as:Instant messaging
The event of display webpage is triggered in, then the instant messaging application can call third party's browser application to open the webpage.
After the event for the display webpage that instant messaging application triggers in examples detailed above, sends intent to operating system and disappear
It ceases, is carried in the message and need the order for calling third party's browser application and need to be transferred to third party's browser application
Network address, operating system opens the message according to message initiated third party's browser application by third party's browser application
The network address of middle carrying.After third party's browser application end of run, final data are returned into instant messaging application, at this time
Complete above-mentioned calling process.
The inventor finds that the existing technology has at least the following problems:
Calling process needs to create a new process to start called application, and which can increase the negative of system
Load, influences the service efficiency of terminal.
Invention content
In order to solve problems in the prior art, an embodiment of the present invention provides a kind of method and devices of display information.Institute
It is as follows to state technical solution:
On the one hand, a kind of method of display information is provided, the method includes:
It detects when showing that the event of information is triggered in intended application, determines the event operation to be triggered;
Obtain the shared component for realizing the operation;
It will be loaded onto in the corresponding process space of the intended application for realizing the executable code of the shared component;
Obtaining and show in the event of the display information by the executable code needs information to be shown.
On the other hand, a kind of device of display information is provided, described device includes:
Determining module when showing that the event of information is triggered in intended application for detecting, determines that the event is wanted
The operation of triggering;
Acquisition module, for obtaining the shared component for realizing the operation;
First load-on module, for the intended application will to be loaded onto for realizing the executable code of the shared component
In the corresponding process space;
Display module needs to show for obtaining and showing in the event of the display information by the executable code
Information.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
When showing that the event of information is triggered in intended application, the shared component of the operation of event triggering will be realized
Executable code is loaded onto in the process space of intended application, and being obtained and being shown according to the executable code needs letter to be shown
Breath.The function of being called in intended application is realized to start other application, save the expense of system without creating new process,
Improve the operational efficiency of system.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the method flow diagram for the display information that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of display information provided by Embodiment 2 of the present invention;
Fig. 3 is the apparatus structure schematic diagram for the display information that the embodiment of the present invention three provides;
Fig. 4 is the terminal structure schematic diagram that the embodiment of the present invention four provides.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
An embodiment of the present invention provides a kind of methods of display information, and referring to Fig. 1, method flow includes:
101:It detects when showing that the event of information is triggered in intended application, the operation to be triggered of the event of determination;
102:Obtain the shared component for realizing operation;
103:It will be loaded onto in the corresponding process space of intended application for realizing the executable code of shared component;
104:Obtaining and show in the event of display information by executable code needs information to be shown.
When the embodiment of the present invention shows that the event of information is triggered in intended application, the operation of event triggering will be realized
The executable code of shared component be loaded onto in the process space of intended application, obtained according to the executable code and show need
Information to be shown.The function of being called in intended application is realized to start other application, save without creating new process
The expense of system improves the operational efficiency of system.
Embodiment two
An embodiment of the present invention provides a kind of methods of display information, and referring to Fig. 2, method flow includes:
201:It detects when showing that the event of information is triggered in intended application, the operation to be triggered of the event of determination.
Optionally, comprising the mark for needing information to be shown in the event of display information, for being shown according to the mark
Need information to be shown.
Wherein, it before step 201 execution, needs that host's application is installed in terminal in advance, wherein in host's application
Include to realize the corresponding shared component of event for showing information.
In embodiments of the present invention, the operating system of terminal is illustrated by taking android system as an example.Android system
Belong to linux system, and in the file permission management of linux system, file permission is according to the affiliated person of file, the affiliated person of file
Group and other groups distribute permission.
In android system, due to applying after being installed to android system, give tacit consent to the affiliated person of the file of application
Open read-write and executable permission, and other users are not opened with any permission, therefore other users can not call the application
File in executable code.And in embodiments of the present invention, it needs host's application comprising shared component being installed on end
In end, component is shared so that other application is obtained when triggering the corresponding operation of event of display information, and then by shared
Executable code in component, which obtains in the event for showing information, needs information to be shown.
For will include that the process that is installed in terminal of host's application of shared component is:Change android system acquiescence
The flow for installing application shares the designated mounting path where the file of the corresponding executable code of component in applying host,
Readable and executable permission is opened to other users.Wherein, the file for sharing component corresponding executable code include jar packets with
And the file of dynamic link bank code.By host's application installation to after terminal, intended application pass through in the process of running by
The event of the display information of triggering, you can call the shared component in host's application.Wherein, include that shared component is corresponding can
Executing host's application of code can jointly issue with intended application and install into terminal, so that this shares holding in component
Line code update upgrading.
Show that the event of information can include but is not limited in step 201:Show the event of webpage information;Show file
The event of information;Show the event etc. of multimedia messages.
Wherein, the trigger process of various above-mentioned events can be:For showing the event of webpage information, user can be passed through
Network address is clicked in the application or is clicked the contents such as the picture with network address and is triggered.Wherein, information to be shown is needed
The network address for being identified as webpage.
For showing the event of webpage information, shows the event of fileinfo, can in the application be clicked by user pre-
If the file of the first kind and trigger, wherein the default first kind can include but is not limited to:The file types such as pdf, doc.Its
In, need the network address of information to be shown being identified as where file path or file.
It, can be by user clicks the file of default Second Type in the application for showing the event of multimedia messages
Triggering, wherein default Second Type file can include but is not limited to:The file fingerprints such as avi, mkv can also pass through
User clicks the link of multimedia messages and triggers in the application.Wherein, need information to be shown is identified as multimedia messages
File path or multimedia messages network address.
The process that the operation to be triggered is determined according to the event of display information is according to the event for obtaining display information
Event type, and the operation to be triggered is determined in event type and the correspondence of operation according to the event type.
Correspondingly, the event of above-mentioned various display information can correspond to respective event type respectively, for display webpage letter
The event of breath corresponds to web page browsing type;For showing that the event of fileinfo corresponds to parsing file type;For showing more matchmakers
The event of body information corresponds to multimedia decoding type.
Preserve the corresponding operation of each event type respectively in correspondence of the event type with operation.For above-mentioned each
Kind shows that the corresponding operation of event type of the event of information can be:
The shared component for browsing webpage is realized to call for the corresponding operation of web page browsing type in browser application
Operation;
It is the shared component of realization resolution file in calling Document Editing application for the corresponding operation of resolution file type
Operation;
Multimedia letter is played to be realized in calling multimedia player application for the corresponding operation of multimedia decoding type
The operation of the shared component of breath.
Therefore, the process of the step 201 determination event operation to be triggered can be obtained by following implementation:
According to the event type of the event of display information, the operation to be triggered of the corresponding event of event type is determined.
202:Obtain the shared component for realizing operation.
Wherein, it is previously stored with the correspondence of specified operation and shared component in terminal, is stored in the correspondence
The state parameter of the specified installation path and shared component for operating corresponding shared component.
Wherein, installation path is the installation path of the corresponding executable file of shared component;State parameter is to include realization
Show that the existence of host's application of the corresponding shared component of event of information in the terminal, the state parameter may include:
It is existing or do not exist.
By the correspondence of specified operation and shared component, the installation path for operating corresponding shared component is obtained, both
The file of the executable code comprising shared component can be obtained.
For obtain share component process be by call preset SDK (Software Development Kit, it is soft
Part development kit) interface completion, its major function is to provide interface for third-party application, is reflected by reflecting call-by mechanism
Penetrate the corresponding executable code of shared component in host's application.Intended application by the SDK inquire shared component and
Call the operation for sharing the corresponding executable code of component.Wherein, reflection call-by mechanism is:Before calling first in executable code
The function for needing to call is searched, is just called after finding.The advantages of this mode is dynamic, and flexibility is high.Shared component pair
The executable code answered is the process space that intended application is loaded into just being applied from host when intended application needs, mesh
Mark application only can just find the corresponding executable code of shared component at runtime.
Wherein, if the state parameter for finding shared component in above-mentioned correspondence is existing, pass through the SDK
The file for sharing the corresponding executable code of component is obtained according to the installation path in correspondence;If in above-mentioned correspondence
In the state parameter for finding shared component be do not exist, then follow the steps 205.
The specific implementation mode of step 202 can be realized by step 2021- steps 2022:
2021:In correspondence of the specified operation with shared component, the corresponding shared component of selection operation;
2022:Designated mounting path where shared component, obtains the file for sharing the corresponding executable code of component.
Wherein, the process that the corresponding executable code of component is shared in above-mentioned acquisition is intended application dynamic during operation
What load obtained, when the event of the shared component provided in host's application is called in intended application triggering, just dynamic execute adds
Carry the process step of the shared component.And it applies with host in intended application and is not interfered with each other in other operating process.
203:It will be loaded onto in the corresponding process space of intended application for realizing the executable code of shared component.
Wherein, the specific implementation mode of step 203 can be realized by step 2031- steps 2032:
2031:The file of the corresponding executable code of component is shared in parsing, verifies the signature legitimacy in executable code.
After the file for getting the corresponding executable code of shared component, it is necessary first to it is shared component is corresponding can
The verification that code carries out signature legitimacy is executed, this calls the procedure failure of shared component not if if verification, and holds
The executable code of the determining corresponding system component of operation is loaded onto the corresponding process space of intended application in row step 205
In.
2032:Executable code is loaded onto in the corresponding process space of intended application after legitimate verification passes through.
The process space that the jar packets of executable shared code and dynamic link bank code are loaded into intended application is initial
Change.Wherein, the loading procedure that jar packets are is loaded by the DexLoader components of android system, dynamic link library
Code is then loaded using the LoadLibary components of android system.
204:The mark of the information shown as needed is obtained by executable code and is shown in the event of display information
Need information to be shown.
Wherein, it is executed using reflection call-by mechanism and shares the corresponding executable code of component, instantiated shared component and correspond to
Object, and by the corresponding object of shared component of instantiation come execute display information event.Wherein instantiate towards
In the programming of object, usually the process for creating object with class is known as instantiating.
For showing the event of webpage information, then calls and instantiate the shared component after sharing component in intended application
After be created that the corresponding navigation mechanism of browser application, by the navigation mechanism open display information mark in network address,
So that user browses the corresponding webpage of the network address.
For showing the event of fileinfo, then calls and instantiate the shared component after sharing component in intended application
After be created that Document Editing apply corresponding resolution component, by the resolution component to file path in the mark of the information of display
Corresponding file is parsed and is shown;Or this document is obtained according to the network address of file in the mark of the information of display,
And it is parsed and is shown.
For showing the event of multimedia messages, then calls and instantiate the shared group in intended application after sharing component
The corresponding player module of player application is created that after part, by the player module according to multimedia in the mark of the information of display
The corresponding multimedia file of file path of information is parsed and is played;Or believed according to multimedia in the mark of the information of display
The network address of breath obtains media stream and is parsed and played, so that user listens to or watch multimedia messages.
205:If corresponding with determining operation is not inquired in the correspondence of shared component shared in specified operation
The executable code of the determining corresponding system component of operation is then loaded onto in the corresponding process space of intended application by component.
It is executed after failed calling shares component in this step, passes through above-mentioned SDK and call the thing for showing information
The corresponding system component of operation to be performed needed for part shows the event of information to execute.
When the embodiment of the present invention shows that the event of information is triggered in intended application, the operation of event triggering will be realized
The executable code of shared component be loaded onto in the process space of intended application, obtained according to the executable code and show need
Information to be shown.The function of being called in intended application is realized to start other application, save without creating new process
The expense of system improves the operational efficiency of system.
Embodiment three
An embodiment of the present invention provides a kind of devices of display information, and referring to Fig. 3, which includes:
Determining module 301, when showing that the event of information is triggered in intended application for detecting, the event of determination to be touched
The operation of hair;
Acquisition module 302, for obtaining the shared component for realizing operation;
First load-on module 303 is corresponded to for will be loaded onto intended application for realizing the executable code of shared component
The process space in;
Display module 304 needs letter to be shown for obtaining and showing in the event of display information by executable code
Breath.
Wherein it is determined that module 301 is used for:
According to the event type of the event of display information, the operation to be triggered of the corresponding event of event type is determined.
Wherein, acquisition module 302, including:
Selection unit is used in the correspondence in specified operation with shared component, the corresponding shared component of selection operation;
Acquiring unit, in the designated mounting path where shared component, obtaining and sharing component corresponding executable generation
The file of code.
Wherein, the first load-on module 303, including:
Authentication unit, the file for parsing the corresponding executable code of shared component verify the label in executable code
Name legitimacy;
Loading unit, it is empty for executable code to be loaded onto the corresponding process of intended application after legitimate verification passes through
Between in.
Wherein, place device further includes:
Second load-on module 305, if for not inquiring determination in the correspondence of specified operation and shared component
The corresponding shared component of operation, then the executable code of the corresponding system component of determining operation is loaded onto intended application pair
In the process space answered.
Wherein, include the mark for needing information to be shown in event,
Correspondingly, display module 304 is used for:
The mark of the information shown as needed, by executable code obtain and show display information event in need
The information of display.
When the embodiment of the present invention shows that the event of information is triggered in intended application, the operation of event triggering will be realized
The executable code of shared component be loaded onto in the process space of intended application, obtained according to the executable code and show need
Information to be shown.The function of being called in intended application is realized to start other application, save without creating new process
The expense of system improves the operational efficiency of system.
Example IV
Referring to FIG. 4, it illustrates the terminal structure schematic diagram with touch sensitive surface involved by the embodiment of the present invention, use
In the method for implementing to provide in above-described embodiment.Specifically:
Terminal 900 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters
The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160,
WiFi (wireless fidelity, Wireless Fidelity) module 170, include there are one or more than one processing core processing
The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 4 is not constituted pair
The restriction of terminal may include either combining certain components or different component cloth than illustrating more or fewer components
It sets.Wherein:
RF circuits 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use
Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex
Device etc..In addition, RF circuits 110 can also be communicated with network and other equipment by radio communication.Wireless communication, which can use, appoints
(Global System of Mobile communication, the whole world are moved for one communication standard or agreement, including but not limited to GSM
Dynamic communication system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code
Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple
Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short
Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation
Software program and module, to perform various functions application and data processing.Memory 120 can include mainly storage journey
Sequence area and storage data field, wherein storing program area can storage program area, the application program (ratio needed at least one function
Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created number according to terminal 900
According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap
Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory
120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include touching
Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used
Family on it or neighbouring touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table
Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional
, touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically,
Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
It is one or more in trace ball, mouse, operating lever etc..
Display unit 140 can be used for showing information input by user or the information and terminal 900 that are supplied to user
Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination.
Display unit 140 may include display panel 141, optionally, LCD (Liquid Crystal Display, liquid crystal may be used
Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel
141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects on it or neighbouring touches
After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event
Corresponding visual output is provided on display panel 141.Although in Fig. 4, touch sensitive surface 131 and display panel 141 are conducts
Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display
Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 900 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 900 is moved in one's ear
Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally
Three axis) acceleration size, size and the direction of gravity are can detect that when static, can be used to identify mobile phone posture application (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely
In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 900 can also configure, herein
It repeats no more.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 900.Audio
The transformed electric signal of the audio data received can be transferred to loud speaker 161 by circuit 160, and sound is converted to by loud speaker 161
Sound signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160
Audio data is converted to, then by after the processing of audio data output processor 180, through RF circuits 110 to be sent to such as another end
End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack,
To provide the communication of peripheral hardware earphone and terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user's transceiver electronics by WiFi module 170
Mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 4 is shown
WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 900, completely it can exist as needed
Do not change in the range of the essence of invention and omits.
Processor 180 is the control centre of terminal 900, utilizes each portion of various interfaces and connection whole mobile phone
Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120
Interior data execute the various functions and processing data of terminal 900, to carry out integral monitoring to mobile phone.Optionally, processor
180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor,
Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing
Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 900 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event
Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal 900 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality
It applies in example, the display unit of terminal 900 is touch-screen display, and terminal 900 further includes having memory and one or one
Above program, one of them either more than one program be stored in memory and be configured to by one or one with
Upper processor execution states one or more than one program includes the instruction for being operated below:
When detecting that the event of the display information in intended application is triggered, the operation to be triggered of the event of determination, event
In include the mark for needing information to be shown;
Obtain the shared component for realizing determining operation;
It will be loaded onto in the corresponding process space of intended application for realizing the executable code of shared component;
The mark of the information shown as needed, being obtained and being shown by executable code needs information to be shown.
Optionally, the event operation to be triggered is determined, including:
According to the event type of the event of display information, the operation to be triggered of the corresponding event of event type is determined.
Optionally, the shared component for realizing determining operation is obtained, including:
In correspondence of the specified operation with shared component, the corresponding shared component of determining operation is chosen;
Designated mounting path where shared component, obtains the file for sharing the corresponding executable code of component.
Optionally, it will be loaded onto in the corresponding process space of intended application for realizing the executable code of shared component,
Including:
The file of the corresponding executable code of component is shared in parsing, verifies the signature legitimacy in executable code;
Executable code is loaded onto in the corresponding process space of intended application after legitimate verification passes through.
Optionally, the specified operation in place in the correspondence of shared component, the corresponding shared component of determining operation it
Afterwards, method further includes:
If in specified operation shared component corresponding with determining operation is not inquired in the correspondence of shared component,
Then the executable code of the determining corresponding system component of operation is loaded onto in the corresponding process space of intended application.
When the embodiment of the present invention shows that the event of information is triggered in intended application, the operation of event triggering will be realized
The executable code of shared component be loaded onto in the process space of intended application, obtained according to the executable code and show need
Information to be shown.The function of being called in intended application is realized to start other application, save without creating new process
The expense of system improves the operational efficiency of system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of method of display information, which is characterized in that the method includes:
It detects when showing that the event of information is triggered in intended application, determines the event operation to be triggered;
In correspondence of the specified operation with shared component, the corresponding shared component of the operation is chosen;
Designated mounting path where the shared component obtains the file of the corresponding executable code of the shared component;
It will be loaded onto in the corresponding process space of the intended application for realizing the executable code of the shared component;
Obtaining and show in the event of the display information by the executable code needs information to be shown.
2. according to the method described in claim 1, it is characterized in that, the operation to be triggered of the determination event, including:
According to the event type of the event of the display information, determine what the corresponding event of the event type to be triggered
Operation.
3. according to the method described in claim 1, it is characterized in that, described will can hold for realizing described in the shared component
Line code is loaded onto in the corresponding process space of the intended application, including:
The file for parsing the corresponding executable code of the shared component verifies the signature legitimacy in the executable code;
The executable code is loaded onto in the corresponding process space of the intended application after legitimate verification passes through.
4. according to the method described in claim 1, it is characterized in that, the correspondence in specified operation and shared component
In, after choosing the corresponding shared component of the operation, the method further includes:
If in corresponding with the operation is not inquired in the correspondence of the shared component shared component of the specified operation,
The executable code of the corresponding system component of the operation is loaded onto in the corresponding process space of the intended application.
5. according to the method described in claim 1, it is characterized in that, comprising the mark for needing information to be shown in the event,
Correspondingly, it is described by the executable code obtain and show it is described display information event in need letter to be shown
Breath, including:
According to the mark of the need information to be shown, the thing of the display information is obtained and shown by the executable code
Information to be shown is needed in part.
6. a kind of device of display information, which is characterized in that described device includes:
Determining module when showing that the event of information is triggered in intended application for detecting, determines that the event to be triggered
Operation;
Acquisition module, for obtaining the shared component for realizing the operation;
First load-on module is corresponded to for will be loaded onto the intended application for realizing the executable code of the shared component
The process space in;
Display module needs letter to be shown for obtaining and showing in the event of the display information by the executable code
Breath;
Wherein, the acquisition module, including:
Selection unit, in the correspondence of specified operation and shared component, choosing the corresponding shared component of the operation;
Acquiring unit, in the designated mounting path where the shared component, obtaining, the shared component is corresponding to be held
The file of line code.
7. device according to claim 6, which is characterized in that the determining module is used for:
According to the event type of the event of the display information, determine what the corresponding event of the event type to be triggered
Operation.
8. device according to claim 6, which is characterized in that first load-on module, including:
Authentication unit, the file for parsing the corresponding executable code of the shared component, is verified in the executable code
Signature legitimacy;
Loading unit, for after legitimate verification passes through by the executable code be loaded onto the intended application it is corresponding into
In journey space.
9. device according to claim 6, which is characterized in that described device further includes:
Second load-on module, if for not inquiring the operation in the correspondence of the specified operation and shared component
It is corresponding to be then loaded onto the intended application by corresponding shared component for the executable code of the corresponding system component of the operation
In the process space.
10. device according to claim 6, which is characterized in that include the mark for needing information to be shown in the event,
Correspondingly, the display module is used for:
According to the mark of the need information to be shown, the thing of the display information is obtained and shown by the executable code
Information to be shown is needed in part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410368034.6A CN104965722B (en) | 2014-07-29 | 2014-07-29 | A kind of method and device of display information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410368034.6A CN104965722B (en) | 2014-07-29 | 2014-07-29 | A kind of method and device of display information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104965722A CN104965722A (en) | 2015-10-07 |
CN104965722B true CN104965722B (en) | 2018-09-18 |
Family
ID=54219757
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410368034.6A Active CN104965722B (en) | 2014-07-29 | 2014-07-29 | A kind of method and device of display information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104965722B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106095423B (en) * | 2016-06-02 | 2020-12-01 | 腾讯科技(深圳)有限公司 | Method, terminal and server for providing browsing service |
CN107463395B (en) * | 2016-06-03 | 2020-10-09 | 腾讯科技(深圳)有限公司 | Component calling method and device |
CN107643954B (en) * | 2016-07-20 | 2020-08-04 | 平安科技(深圳)有限公司 | SDK access system and method |
CN107766093B (en) * | 2016-08-18 | 2021-04-23 | 腾讯科技(深圳)有限公司 | Function module sharing method and client |
CN106598662B (en) * | 2016-12-08 | 2020-04-10 | 蓝信移动(北京)科技有限公司 | Android-based application loading method and device |
CN108399541A (en) * | 2018-02-09 | 2018-08-14 | 上海米飞网络科技有限公司 | A kind of plug-in unit mobile phone applies interior payment system and its method of payment |
CN111400068B (en) * | 2020-03-17 | 2023-09-22 | 北京字节跳动网络技术有限公司 | Interface control method and device, readable medium and electronic equipment |
CN115269214A (en) * | 2021-04-30 | 2022-11-01 | 北京字跳网络技术有限公司 | Method and device for displaying information in application program |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102194003A (en) * | 2011-05-26 | 2011-09-21 | 重庆猪八戒网络有限公司 | Web page popup window method and device |
CN103019538A (en) * | 2012-11-19 | 2013-04-03 | 北京奇虎科技有限公司 | Method and system for implementing application interface in terminal |
CN103631592A (en) * | 2013-11-29 | 2014-03-12 | 小米科技有限责任公司 | Configuration method, calling method, device and equipment for displaying resources |
-
2014
- 2014-07-29 CN CN201410368034.6A patent/CN104965722B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102194003A (en) * | 2011-05-26 | 2011-09-21 | 重庆猪八戒网络有限公司 | Web page popup window method and device |
CN103019538A (en) * | 2012-11-19 | 2013-04-03 | 北京奇虎科技有限公司 | Method and system for implementing application interface in terminal |
CN103631592A (en) * | 2013-11-29 | 2014-03-12 | 小米科技有限责任公司 | Configuration method, calling method, device and equipment for displaying resources |
Also Published As
Publication number | Publication date |
---|---|
CN104965722A (en) | 2015-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104965722B (en) | A kind of method and device of display information | |
CN104780164B (en) | A kind of method and apparatus of running game client | |
US10853437B2 (en) | Method and apparatus for invoking application programming interface | |
CN105278937B (en) | A kind of method and device showing pop-up box message | |
CN104636047B (en) | The method, apparatus and touch screen terminal operated to the object in list | |
CN104618217B (en) | Share method, terminal, server and the system of resource | |
CN106502906B (en) | A kind of method and apparatus of test application program | |
CN106933525B (en) | A kind of method and apparatus showing image | |
CN106502703B (en) | Function calling method and device | |
CN104915091B (en) | A kind of method and apparatus for the prompt information that Shows Status Bar | |
CN106126411B (en) | The method and apparatus that a kind of pair of tested program code is tested | |
WO2015007232A1 (en) | Method, device and mobile terminal for checking message | |
WO2018214748A1 (en) | Method and apparatus for displaying application interface, terminal and storage medium | |
CN104077184B (en) | A kind of course control method and computer system of application program | |
CN106371749A (en) | Method and device for terminal control | |
KR101621637B1 (en) | Method, apparatus device, client computer, server, mobile terminal, program and storage medium for processing mobile terminal resource | |
CN106713608A (en) | Application function state modifying method and apparatus, and terminal | |
CN108090345A (en) | Linux system external command performs method and device | |
CN106708555B (en) | A kind of method and apparatus loading plug-in unit | |
CN106919458B (en) | Method and device for Hook target kernel function | |
CN107423050A (en) | A kind of method and apparatus for penetrating operation | |
CN109145598B (en) | Virus detection method and device for script file, terminal and storage medium | |
JP5976233B2 (en) | APP PROTECTION METHOD, DEVICE, TERMINAL, PROGRAM, AND RECORDING MEDIUM | |
US20150070360A1 (en) | Method and mobile terminal for drawing sliding trace | |
CN105282628B (en) | A kind of method and apparatus of video playing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |