CN104965722A - Method and apparatus for displaying information - Google Patents

Method and apparatus for displaying information Download PDF

Info

Publication number
CN104965722A
CN104965722A CN201410368034.6A CN201410368034A CN104965722A CN 104965722 A CN104965722 A CN 104965722A CN 201410368034 A CN201410368034 A CN 201410368034A CN 104965722 A CN104965722 A CN 104965722A
Authority
CN
China
Prior art keywords
event
information
executable code
shared unit
display
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.)
Granted
Application number
CN201410368034.6A
Other languages
Chinese (zh)
Other versions
CN104965722B (en
Inventor
李龙彬
郭辛华
饶孟良
罗坤
王璟瑶
李英各
苏可
何飞
方敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410368034.6A priority Critical patent/CN104965722B/en
Publication of CN104965722A publication Critical patent/CN104965722A/en
Application granted granted Critical
Publication of CN104965722B publication Critical patent/CN104965722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and apparatus for displaying information, belonging to the field of computer technology. The method comprises: upon detecting an event which displays information in a target application is triggered, determining operations to be triggered by the event; obtaining a sharing assembly for implementing the operations; loading an executable code for implementing the shared assembly to a process space which corresponds to the target application; obtaining and displaying through the executable code the information needs to be displayed by the event which displays the information. When the event which displays the information is triggered in the target application, the executable code of implementing the sharing assembly for implementing the operations triggered by the event is loaded to the process space of the target application, and the information which needs to be displayed is obtained and displayed according to the executable code. The method and apparatus obviates the need for establishing a new process to initiate other applications to implement functions invoked in the target application, and thus saves the overhead of the system and increases the operation efficiency of the system.

Description

A kind of method and device showing information
Technical field
The present invention relates to field of computer technology, particularly a kind of method and device showing information.
Background technology
Application in use can call other functions that should be used for realizing self not possessing, such as: the event triggering display web page in instant messaging application, then this instant messaging application can be called third party's browser application and be opened this webpage.
In above-mentioned example the display web page of instant messaging applications trigger event after, intent message is sent to operating system, the order needing to call third party's browser application and the network address needing to be transferred to this third party's browser application is carried in this message, operating system according to this message initiated third party's browser application, and is opened the network address of carrying in this message by third party's browser application.After third party's browser application end of run, final data are returned to instant messaging application, now complete above-mentioned invoked procedure.
Inventor finds that prior art at least exists following problem:
Invoked procedure needs the new process of establishment one to start invoked application, and which can increase the burden of system, affects the service efficiency of terminal.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and the device that show information.Described technical scheme is as follows:
On the one hand, provide a kind of method showing information, described method comprises:
When detecting in intended application that the event showing information is triggered, determine the operation that described event will trigger;
Obtain the shared unit for realizing described operation;
The executable code being used for realizing described shared unit is loaded in the process space corresponding to described intended application;
Obtained by described executable code and show in the event of described display information the information needing to show.
On the other hand, provide a kind of device showing information, described device comprises:
Determination module, during for detecting in intended application that the event showing information is triggered, determines the operation that described event will trigger;
Acquisition module, for obtaining the shared unit for realizing described operation;
First load-on module, for being loaded in the process space corresponding to described intended application by the executable code being used for realizing described shared unit;
Display module, for obtaining by described executable code and showing in the event of described display information the information needing to show.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
When the event showing information in intended application is triggered, the executable code of the shared unit realizing the operation that this event triggers is loaded in the process space of intended application, obtains according to this executable code and show the information that needs show.Without the need to creating the function that new process should be used for calling during realize target is applied to start other, saving the expense of system, improve the operational efficiency of system.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the display information that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of the display information that the embodiment of the present invention two provides;
Fig. 3 is the apparatus structure schematic diagram of 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.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of method showing information, see Fig. 1, method flow comprises:
101: when detecting in intended application that the event showing information is triggered, determine the operation that event will trigger;
102: obtain for realizing the shared unit operated;
103: the executable code being used for realizing shared unit is loaded in the process space corresponding to intended application;
104: obtained by executable code and need in the event of display information show information.
When the event that the embodiment of the present invention shows information in intended application is triggered, the executable code of shared unit realizing the operation that this event triggers is loaded in the process space of intended application, obtains according to this executable code and show the information that needs show.Without the need to creating the function that new process should be used for calling during realize target is applied to start other, saving the expense of system, improve the operational efficiency of system.
Embodiment two
Embodiments provide a kind of method showing information, see Fig. 2, method flow comprises:
201: when detecting in intended application that the event showing information is triggered, determine the operation that event will trigger.
Optionally, in the event of display information, comprise the mark of the information of needs display, for needing the information of display according to the display of this mark.
Wherein, before step 201 performs, need in advance host's application to be installed in terminal, wherein include shared unit corresponding to the event that realizes display information in host's application.
In embodiments of the present invention, the operating system of terminal is described for android system.Android system belongs to linux system, and in the file permission management of linux system, file permission is according to person belonging to file, and person's group belonging to file and other groups distribute authority.
In android system, after being applied in and being installed to android system, give tacit consent to the open read-write of person belonging to the file to application and can authority be performed, and to the not open any authority of other users, therefore other users cannot call the executable code in the file of this application.And in embodiments of the present invention, the host's application comprising shared unit is needed to be installed in terminal, so that other obtain shared unit when being applied in operation corresponding to the event that triggers display information, and then in the event being obtained display information by the executable code in shared unit, need the information that shows.
For by the host's application process be installed in terminal comprising shared unit be: the flow process of amendment android system default installation application, in host being applied, the designated mounting path at the file place of the executable code that shared unit is corresponding, opens readable to other users and can perform authority.Wherein, the file of the executable code that shared unit is corresponding comprises the file of jar bag and dynamic link bank code.After host's application is mounted to terminal, the event of display information of intended application by being triggered in operational process, can call the shared unit in host's application.Wherein, the host's application including executable code corresponding to shared unit can jointly be issued with intended application and be mounted in terminal, so that the executable code in this shared unit upgrades upgrading.
The event showing information in step 201 can include but not limited to: the event of display web page information; The event of display file information; The event etc. of display multimedia messages.
Wherein, the trigger process of various above-mentioned event can be: for the event of display web page information, can click the network address in the application by user or click with the content such as picture of the network address and trigger.Wherein, the network address being designated webpage of the information of display is needed.
For the event of display web page information, the event of display file information, can click the file of the default first kind in the application by user and trigger, and wherein presetting the first kind can include but not limited to: the file types such as pdf, doc.Wherein, what need the information of display is designated file path, or the network address at file place.
For the event of display multimedia messages, can the file of default Second Type be clicked in the application by user and trigger, wherein preset Second Type file can include but not limited to: the multimedia file types such as avi, mkv, can also the link of multimedia messages be clicked in the application by user and trigger.Wherein, need the file path being designated multimedia messages of the information of display, or the network address of multimedia messages.
Event according to display information determines the process of the operation that will trigger, and is the event type according to the event obtaining display information, and in the corresponding relation of event type and operation, determine the operation that will trigger according to this event type.
Accordingly, the event type that the event of above-mentioned various display information respectively can be corresponding respective, the corresponding web page browsing type of the event for display web page information; Event correspondence for display file information resolves file type; The corresponding multimedia decoding type of event for display multimedia messages.
Operation corresponding to each event type is preserved respectively in the corresponding relation of event type with operation.The operation corresponding for the event type of the event of above-mentioned various display information can be:
Corresponding being operating as of web page browsing type is called in browser application to the operation realizing browsing the shared unit of webpage;
Corresponding being operating as of resolution file type is called to the operation realizing the shared unit of resolution file in Document Editing application;
Corresponding being operating as of multimedia decoding type is called to the operation realizing the shared unit of play multimedia information in multimedia player application.
Therefore, step 201 determines that the process of the operation that event will trigger can be obtained by following embodiment:
According to the event type of the event of display information, determine the operation that the event that event type is corresponding will trigger.
202: obtain for realizing the shared unit operated.
Wherein, in terminal, be previously stored with the corresponding relation of assigned operation and shared unit, in this corresponding relation, store the installation path of shared unit corresponding to assigned operation, and the state parameter of shared unit.
Wherein, installation path is the installation path of the executable file that shared unit is corresponding; State parameter is the host's application existence in the terminal comprising shared unit corresponding to the event that realizes display information, and this state parameter can comprise: exist or do not exist.
By the corresponding relation of assigned operation and shared unit, obtain the installation path of shared unit corresponding to operation, both can obtain the file of the executable code comprising shared unit.
Process for acquisition shared unit is by calling default SDK (Software DevelopmentKit, SDK (Software Development Kit)) interface completes, its major function is for third-party application provides interface, the executable code that the shared unit mapped in host's application by reflection call-by mechanism is corresponding.Intended application carries out the operation inquired about shared unit and call executable code corresponding to shared unit by this SDK.Wherein, reflection call-by mechanism is: in executable code, first search the function needing to call before calling, and finds just to call afterwards.The advantage of this mode is that dynamically dirigibility is high.The executable code that shared unit is corresponding is the process space being just loaded into intended application when intended application needs from host's application, and intended application only has operationally just can find the executable code that shared unit is corresponding.
Wherein, if the state parameter finding shared unit in above-mentioned corresponding relation is for exist, then the file of executable code corresponding to shared unit is obtained according to the installation path in corresponding relation by this SDK; If the state parameter finding shared unit in above-mentioned corresponding relation is not for exist, then perform step 205.
The embodiment of step 202 can be realized by step 2021-step 2022:
2021: in the corresponding relation of assigned operation and shared unit, the shared unit that selection operation is corresponding;
2022: in the designated mounting path at shared unit place, obtain the file of executable code corresponding to shared unit.
Wherein, the process of the executable code that above-mentioned acquisition shared unit is corresponding is that intended application dynamic load in operation process obtains, when intended application triggers the event calling the shared unit provided in host's application, the just dynamic process step performing this shared unit of loading.And be applied in other operating process in intended application and host and do not interfere with each other.
203: the executable code being used for realizing shared unit is loaded in the process space corresponding to intended application.
Wherein, the embodiment of step 203 can be realized by step 2031-step 2032:
2031: the file of resolving executable code corresponding to shared unit, the signature legitimacy in checking executable code.
After the file getting executable code corresponding to shared unit, first the executable code corresponding to shared unit is needed to carry out the checking of signature legitimacy, if checking not by; this call the procedure failure of shared unit, and performs in step 205 and be loaded in the process space corresponding to intended application by the executable code of the system component of the operation correspondence determined.
2032: legitimate verification by after executable code is loaded in the process space corresponding to intended application.
Jar bag and the dynamic link bank code that can perform shared code are loaded into the process space initialization of intended application.Wherein, jar is wrapped the loading procedure being and is loaded by the DexLoader assembly of android system, and the code of dynamic link library then uses the LoadLibary assembly of android system to load.
204: the mark of the information shown as required, obtained by executable code and need in the event of display information show information.
Wherein, reflection call-by mechanism is utilized to perform executable code corresponding to shared unit, the object that instantiation shared unit is corresponding, and the event being performed display information by the object that the shared unit of instantiation is corresponding.Wherein instantiation is in OO programming, usually the process creating object by class is called instantiation.
For the event of display web page information, in intended application, navigation mechanism corresponding to browser application is created out after this shared unit of instantiation after then calling shared unit, opened the network address in the mark of the information of display by this navigation mechanism, browse webpage corresponding to this network address to make user.
For the event of display file information, in intended application, create out the resolution component that Document Editing application is corresponding after then calling shared unit after this shared unit of instantiation, the file corresponding by the mark file path of this resolution component to the information of display is resolved and shows; Or the network address according to the mark file of the information of display obtains this file, and carries out resolving and showing.
For the event of display multimedia messages, in intended application, create out player module corresponding to player application after this shared unit of instantiation after then calling shared unit, the multimedia file corresponding according to the file path of multimedia messages in the mark of the information of display by this player module carries out resolving and playing; Or obtain media stream according to the network address of multimedia messages in the mark of the information of display and carry out resolving and playing, listen to make user or watch multimedia messages.
205: if do not inquire shared unit corresponding to the operation determined in the corresponding relation of assigned operation with shared unit, then the executable code of the system component of the operation correspondence determined is loaded in the process space corresponding to intended application.
In this step unsuccessful call shared unit after perform, the system component being called the operation correspondence performed required for the event of display information by above-mentioned SDK performs the event of display information.
When the event that the embodiment of the present invention shows information in intended application is triggered, the executable code of shared unit realizing the operation that this event triggers is loaded in the process space of intended application, obtains according to this executable code and show the information that needs show.Without the need to creating the function that new process should be used for calling during realize target is applied to start other, saving the expense of system, improve the operational efficiency of system.
Embodiment three
Embodiments provide a kind of device showing information, see Fig. 3, this device comprises:
Determination module 301, during for detecting in intended application that the event showing information is triggered, determines the operation that event will trigger;
Acquisition module 302, for obtaining for realizing the shared unit operated;
First load-on module 303, for being loaded in the process space corresponding to intended application by the executable code being used for realizing shared unit;
Display module 304, for obtained by executable code and need in the event of display information show information.
Wherein, determination module 301 for:
According to the event type of the event of display information, determine the operation that the event that event type is corresponding will trigger.
Wherein, acquisition module 302, comprising:
Choose unit, in the corresponding relation of assigned operation and shared unit, the shared unit that selection operation is corresponding;
Acquiring unit, for the designated mounting path at shared unit place, obtains the file of executable code corresponding to shared unit.
Wherein, the first load-on module 303, comprising:
Authentication unit, for resolving the file of executable code corresponding to shared unit, the signature legitimacy in checking executable code;
Loading unit, for legitimate verification by after executable code is loaded in the process space corresponding to intended application.
Wherein, place device also comprises:
Second load-on module 305, if for not inquiring shared unit corresponding to the operation determined in the corresponding relation of assigned operation with shared unit, then the executable code of the system component of the operation correspondence determined is loaded in the process space corresponding to intended application.
Wherein, in event, comprise the mark of the information of needs display,
Accordingly, display module 304 for:
The mark of the information shown as required, obtained by executable code and need in the event of display information show information.
When the event that the embodiment of the present invention shows information in intended application is triggered, the executable code of shared unit realizing the operation that this event triggers is loaded in the process space of intended application, obtains according to this executable code and show the information that needs show.Without the need to creating the function that new process should be used for calling during realize target is applied to start other, saving the expense of system, improve the operational efficiency of system.
Embodiment four
Please refer to Fig. 4, it illustrates the terminal structure schematic diagram with Touch sensitive surface involved by the embodiment of the present invention, for implementing the method provided in above-described embodiment.Specifically:
Terminal 900 can comprise RF (Radio Frequency, radio frequency) circuit 110, the storer 120 including one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 4, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 180 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA (Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband CodeDivision Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by running, thus performs the application of various function and data processing.Storer 120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 900.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, to provide the access of processor 180 and input block 130 pairs of storeies 120.
Input block 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 900 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display panel 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in the diagram, Touch sensitive surface 131 and display panel 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display panel 141 integrated and realize input and output function.
Terminal 900 also can comprise at least one sensor 150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 141, proximity transducer when terminal 900 moves in one's ear, can cut out display panel 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal 900 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 900.Voicefrequency circuit 160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 161, by loudspeaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to storer 120 to process further.Voicefrequency circuit 160 also may comprise 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 to send and receive e-mail by WiFi module 170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 4 shows WiFi module 170, be understandable that, it does not belong to must forming of terminal 900, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centers of terminal 900, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 120 and/or module is stored in by running or performing, and call the data be stored in storer 120, perform various function and the process data of terminal 900, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal 900 also comprises the power supply 190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 900 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal 900 is touch-screen displays, terminal 900 also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to be performed by more than one or one processor state more than one or one routine package containing the instruction for carrying out following operation:
When detecting that the event of the display information in intended application is triggered, determine the operation that event will trigger, in event, comprise the mark of the information of needs display;
Obtain the shared unit for realizing the operation determined;
The executable code being used for realizing shared unit is loaded in the process space corresponding to intended application;
The mark of the information shown as required, obtained by executable code and show needs display information.
Optionally, determine to comprise the operation that event will trigger:
According to the event type of the event of display information, determine the operation that the event that event type is corresponding will trigger.
Optionally, obtaining the shared unit for realizing the operation determined, comprising:
In the corresponding relation of assigned operation and shared unit, choose the shared unit of the operation correspondence determined;
In the designated mounting path at shared unit place, obtain the file of executable code corresponding to shared unit.
Optionally, the executable code being used for realizing shared unit is loaded in the process space corresponding to intended application, comprises:
Resolve the file of executable code corresponding to shared unit, the signature legitimacy in checking executable code;
Legitimate verification by after executable code is loaded in the process space corresponding to intended application.
Optionally, in the corresponding relation of place assigned operation and shared unit, after the shared unit of the operation correspondence determined, method also comprises:
If do not inquire the shared unit that the operation determined is corresponding in the corresponding relation of assigned operation with shared unit, then the executable code of the system component of the operation correspondence determined is loaded in the process space corresponding to intended application.
When the event that the embodiment of the present invention shows information in intended application is triggered, the executable code of shared unit realizing the operation that this event triggers is loaded in the process space of intended application, obtains according to this executable code and show the information that needs show.Without the need to creating the function that new process should be used for calling during realize target is applied to start other, saving the expense of system, improve the operational efficiency of system.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. show a method for information, it is characterized in that, described method comprises:
When detecting in intended application that the event showing information is triggered, determine the operation that described event will trigger;
Obtain the shared unit for realizing described operation;
The executable code being used for realizing described shared unit is loaded in the process space corresponding to described intended application;
Obtained by described executable code and show in the event of described display information the information needing to show.
2. method according to claim 1, is characterized in that, describedly determines the operation that described event will trigger, and comprising:
According to the event type of the event of described display information, determine the operation that the described event that described event type is corresponding will trigger.
3. method according to claim 1, is characterized in that, described acquisition, for realizing the shared unit of the described operation determined, comprising:
In the corresponding relation of assigned operation and shared unit, choose the shared unit that described operation is corresponding;
In the designated mounting path at described shared unit place, obtain the file of executable code corresponding to described shared unit.
4. method according to claim 3, is characterized in that, is describedly loaded in the process space corresponding to described intended application by the executable code being used for realizing described shared unit, comprising:
Resolve the file of executable code corresponding to described shared unit, verify the signature legitimacy in described executable code;
Legitimate verification by after described executable code is loaded in the process space corresponding to described intended application.
5. method according to claim 3, is characterized in that, described in the corresponding relation of assigned operation and shared unit, after determining the shared unit of the described operation correspondence determined, described method also comprises:
If at the shared unit that described assigned operation is corresponding with not inquiring the described operation determined in the corresponding relation of shared unit, then the executable code of the system component of the described operation correspondence determined is loaded in the process space corresponding to described intended application.
6. method according to claim 1, is characterized in that, comprises the mark of the information of needs display in described event,
Accordingly, described obtained by described executable code and show in the event of described display information need show information, comprising:
According to the described mark needing the information of display, obtained by described executable code and show in the event of described display information the information needing to show.
7. show a device for information, it is characterized in that, described device comprises:
Determination module, during for detecting in intended application that the event showing information is triggered, determines the operation that described event will trigger;
Acquisition module, for obtaining the shared unit for realizing described operation;
First load-on module, for being loaded in the process space corresponding to described intended application by the executable code being used for realizing described shared unit;
Display module, for obtaining by described executable code and showing in the event of described display information the information needing to show.
8. device according to claim 7, is characterized in that, described determination module is used for:
According to the event type of the event of described display information, determine the operation that the described event that described event type is corresponding will trigger.
9. device according to claim 7, is characterized in that, described acquisition module, comprising:
Choose unit, in the corresponding relation of assigned operation and shared unit, choose the shared unit that described operation is corresponding;
Acquiring unit, for the designated mounting path at described shared unit place, obtains the file of executable code corresponding to described shared unit.
10. device according to claim 9, is characterized in that, described first load-on module, comprising:
Authentication unit, for resolving the file of executable code corresponding to described shared unit, verifies the signature legitimacy in described executable code;
Loading unit, for legitimate verification by after described executable code is loaded in the process space corresponding to described intended application.
11. devices according to claim 9, is characterized in that, described device also comprises:
Second load-on module, if at the described assigned operation shared unit corresponding with not inquiring the described operation determined in the corresponding relation of shared unit, then the executable code of the system component of the described operation correspondence determined is loaded in the process space corresponding to described intended application.
12. devices according to claim 7, is characterized in that, comprise the mark of the information of needs display in described event,
Accordingly, described display module is used for:
According to the described mark needing the information of display, obtained by described executable code and show in the event of described display information the information needing to show.
CN201410368034.6A 2014-07-29 2014-07-29 A kind of method and device of display information Active CN104965722B (en)

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 true CN104965722A (en) 2015-10-07
CN104965722B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095423A (en) * 2016-06-02 2016-11-09 腾讯科技(深圳)有限公司 There is provided and browse the method for service, terminal and server
CN106598662A (en) * 2016-12-08 2017-04-26 蓝信工场(北京)科技有限公司 Application loading method and device based on android
CN107463395A (en) * 2016-06-03 2017-12-12 腾讯科技(深圳)有限公司 Component call method and device
CN107643954A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 SDK access systems and method
CN107766093A (en) * 2016-08-18 2018-03-06 腾讯科技(深圳)有限公司 The sharing method and client of a kind of functional module
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
CN111400068A (en) * 2020-03-17 2020-07-10 北京字节跳动网络技术有限公司 Interface control method and device, readable medium and electronic equipment
WO2022227823A1 (en) * 2021-04-30 2022-11-03 北京字跳网络技术有限公司 Method and device for displaying information in application

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095423A (en) * 2016-06-02 2016-11-09 腾讯科技(深圳)有限公司 There is provided and browse the method for service, terminal and server
CN106095423B (en) * 2016-06-02 2020-12-01 腾讯科技(深圳)有限公司 Method, terminal and server for providing browsing service
CN107463395A (en) * 2016-06-03 2017-12-12 腾讯科技(深圳)有限公司 Component call method and device
CN107643954A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 SDK access systems and method
CN107643954B (en) * 2016-07-20 2020-08-04 平安科技(深圳)有限公司 SDK access system and method
CN107766093A (en) * 2016-08-18 2018-03-06 腾讯科技(深圳)有限公司 The sharing method and client of a kind of functional module
CN107766093B (en) * 2016-08-18 2021-04-23 腾讯科技(深圳)有限公司 Function module sharing method and client
CN106598662A (en) * 2016-12-08 2017-04-26 蓝信工场(北京)科技有限公司 Application loading method and device based on android
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
CN111400068A (en) * 2020-03-17 2020-07-10 北京字节跳动网络技术有限公司 Interface control method and device, readable medium and electronic equipment
CN111400068B (en) * 2020-03-17 2023-09-22 北京字节跳动网络技术有限公司 Interface control method and device, readable medium and electronic equipment
WO2022227823A1 (en) * 2021-04-30 2022-11-03 北京字跳网络技术有限公司 Method and device for displaying information in application

Also Published As

Publication number Publication date
CN104965722B (en) 2018-09-18

Similar Documents

Publication Publication Date Title
EP3200487B1 (en) Message processing method and apparatus
CN104965722A (en) Method and apparatus for displaying information
CN104780164A (en) Method and device for operating game client
CN104123120B (en) A kind of browser page data filtering method, device and system
CN104978115A (en) Content display method and device
CN104978176A (en) Application program interface calling method and device
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN104065693A (en) Method, device and system for accessing network data in webpage applications
CN104717341A (en) Message prompting method and terminal
CN104123276A (en) Method, device and system for intercepting popup windows in browser
CN105389259A (en) Method, apparatus and system for performing application testing
CN103713943A (en) Native terminal operating system based application function realization method and device
CN103607431B (en) Mobile terminal resource processing method, device and equipment
CN104699501A (en) Method and device for running application program
CN104751092A (en) Method and device for processing graphic code
CN104243394A (en) Multimedia file playing method and device
US9928134B2 (en) Method and apparatus for repairing dynamic link library file
CN104391629A (en) Method for sending message in orientation manner, method for displaying message, server and terminal
CN104869550A (en) Communication event processing method and device
CN104780234A (en) Method, device and system for inquiring Internet protocol (IP) address location
CN104753672A (en) Account authentication method, account authentication device and terminal
CN103631592A (en) Configuration method, calling method, device and equipment for displaying resources
CN105553718A (en) Method and device for displaying guidance information
CN103336677B (en) A kind of methods, devices and systems to display device output image
CN105703808A (en) Method and device for transmitting data

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