CN105718313A - Application operation method and device - Google Patents

Application operation method and device Download PDF

Info

Publication number
CN105718313A
CN105718313A CN201610046819.0A CN201610046819A CN105718313A CN 105718313 A CN105718313 A CN 105718313A CN 201610046819 A CN201610046819 A CN 201610046819A CN 105718313 A CN105718313 A CN 105718313A
Authority
CN
China
Prior art keywords
native applications
network application
call request
sdk
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.)
Pending
Application number
CN201610046819.0A
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610046819.0A priority Critical patent/CN105718313A/en
Publication of CN105718313A publication Critical patent/CN105718313A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses an application operation method and device.According to a specific mode of execution, the method comprises the steps that a call request on operation of a native application is generated in a network application in response to an operation command, acting on the network application, on the native application, wherein the network application runs on the native application, and the call request includes an operation mark of the called operation; the call request is sent to the native application from the network application through a software development kit (SDK) pre-loaded by the network application, wherein the SDK encapsulates an application program interface used for calling the operation of the native application; the native application is used for analyzing the call request to determine a native function indicated by the operation mark, and the native application is used for calling the native function to execute corresponding operation.By means of the mode of execution, the implementation mode for mutual calling between the network application and the native application is flexible and easy to expand.

Description

Application operating method and apparatus
Technical field
The application relates to field of computer technology, is specifically related to network application field, particularly relates to application operating method and apparatus.
Background technology
Web application is a kind of application software using web browser to operate on the net in the Internet or enterprises, it is a kind of application program write with homepages language programming languages such as () such as HTML, JavaScript, Java, it is necessary to run by browser or other native applications.At present, the use that becomes more and more popular realizes plug-in application by network application in native applications.
But, the developer that native applications and the Network application and development as plug-in unit are all independent from, internal realization is diverse.How to realize calling mutually of function between network application and native applications by mode flexible, extendible and become problem demanding prompt solution.
Summary of the invention
The purpose of the application is in that to propose the application operating method and apparatus of a kind of improvement, solves the technical problem that background section above is mentioned.
First aspect, this application provides a kind of application operating method, described method includes: in response to acting on operational order in network application, to native applications, described network application generates the call request of operation to described native applications, described network application runs in described native applications, and described call request includes the operation mark of the operation called;By the SDK SDK that described network application is pre-loaded, described call request being sent to described native applications from described network application, wherein, described SDK encapsulates the application programming interfaces of the operation for calling described native applications;Use described native applications to resolve described call request to determine the primary function that described operation mark indicates, and use described native applications to call described primary function to perform corresponding operation.
In certain embodiments, described SDK is loaded into described network application from described native applications when described network application starts.
In certain embodiments, described by described call request from described network application send to described native applications, including: by message queue by described call request from described network application asynchronous transmission to described native applications.
In certain embodiments, at the described SDK SDK pre-loaded by described network application, described call request being sent to while described native applications from described network application, described method also includes: sent the call back function mark corresponding with described operation mark to described native applications by described SDK;And resolve described call request to determine the primary function that described operation mark indicates in the described native applications of described use, and using described native applications to call described primary function with after performing corresponding operation, described method also includes: is obtained by described native applications and performs the operation result information that described operation generates;Described call back function mark is back to described network application with described operation result information from described native applications, makes described network application call with described call back function call back function corresponding to mark described operation result information to be processed and be updated with the page to described network application.
In certain embodiments, described SDK also stores the verification parameter that described native applications pre-sets;And at the described SDK SDK pre-loaded by described network application, described call request being sent to while described native applications from described network application, described method also includes: sent described verification parameter to described native applications by described SDK;And resolve described call request to determine the primary function that described operation mark indicates in the described native applications of described use, and using described native applications to call described primary function with before performing corresponding operation, described method also includes: confirm that the verification parameter that described native applications obtains from described call request is consistent with the verification parameter that described native applications pre-sets.
Second aspect, this application provides another kind of application operating method, described method includes: in response to acting on operational order in native applications, to network application, described network application generates the call request of operation to described network application, described network application runs in described native applications, and described call request includes the operation mark of the operation called;By the SDK SDK that described native applications is pre-loaded, described call request being sent to described network application from described native applications, wherein, described SDK encapsulates the application programming interfaces of the operation for calling described network application;Use described network application to resolve described call request to determine the function that described operation mark indicates, and use described network application to call described function to perform corresponding operation.
In certain embodiments, described by described call request from described native applications send to described network application, including: by message queue by described call request from described native applications asynchronous transmission to described network application.
The third aspect, this application provides a kind of application operating device, described device includes: generate unit, for in response to acting on operational order in network application, to native applications, described network application generates the call request of operation to described native applications, described network application runs in described native applications, and described call request includes the operation mark of the operation called;Transmitting element, for the SDK SDK pre-loaded by described network application, described call request being sent to described native applications from described network application, wherein, described SDK encapsulates the application programming interfaces of the operation for calling described native applications;Performance element, for using described native applications to resolve described call request to determine the primary function that described operation mark indicates, and uses described native applications to call described primary function to perform corresponding operation.
In certain embodiments, it is characterised in that described SDK is loaded into described network application from described native applications when described network application starts.
In certain embodiments, it is characterised in that described transmitting element is further used for described call request by message queue from described network application asynchronous transmission to described native applications.
In certain embodiments, described device also includes: call back function mark transmitting element, for being sent the call back function mark corresponding with described operation mark to described native applications by described SDK;Acquiring unit, performs, for being obtained by described native applications, the operation result information that described operation generates;Return unit, for described call back function mark is back to described network application with described operation result information from described native applications, described network application is made to call with described call back function call back function corresponding to mark described operation result information to be processed and be updated with the page to described network application.
In certain embodiments, it is characterised in that described SDK also stores the verification parameter that described native applications pre-sets;And described device also includes: verification parameter transmitting element, for described verification parameter is sent extremely described native applications by described SDK by verification parameter;Verification unit, for confirming that the verification parameter that described native applications obtains from described call request is consistent with the verification parameter that described native applications pre-sets.
Fourth aspect, this application provides another kind of application operating device, described device includes: generate unit, for in response to acting on operational order in native applications, to network application, described network application generates the call request of operation to described network application, described network application runs in described native applications, and described call request includes the operation mark of the operation called;Transmitting element, for the SDK SDK pre-loaded by described native applications, described call request being sent to described network application from described native applications, wherein, described SDK encapsulates the application programming interfaces of the operation for calling described network application;Performance element, for using described network application to resolve described call request to determine the function that described operation mark indicates, and uses described network application to call described function to perform corresponding operation.
In certain embodiments, described transmitting element is further used for: by message queue by described call request from described native applications asynchronous transmission to described network application.
The application operating method and apparatus that the application provides, one in network application and native applications is applied in when another kind application is called, by the pre-loaded SDK file encapsulating application interface, corresponding call request can be transmitted in the application, so that above-mentioned another kind of application performs corresponding operation according to the call request received, which only needs the pre-loaded SDK file encapsulating application interface, communication can be set up between applications and realize calling mutually between dissimilar application, it is achieved mode extends flexibly and easily.
Accompanying drawing explanation
By reading the detailed description that non-limiting example is made made with reference to the following drawings, other features, purpose and advantage will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart of an embodiment of the application operating method according to the application;
Fig. 3 is the flow chart of another embodiment of the application operating method according to the application;
Fig. 4 is the structural representation of an embodiment of the application operating device according to the application;
Fig. 5 is the structural representation of another embodiment of the application operating device according to the application;
Fig. 6 is adapted for the structural representation of the computer system for the terminal unit or server realizing the embodiment of the present application.
Detailed description of the invention
Below in conjunction with drawings and Examples, the application is described in further detail.It is understood that specific embodiment described herein is used only for explaining related invention, but not the restriction to this invention.It also should be noted that, for the ease of describing, accompanying drawing illustrate only the part relevant to about invention.
It should be noted that when not conflicting, the embodiment in the application and the feature in embodiment can be mutually combined.Describe the application below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Fig. 1 illustrates the exemplary system architecture 100 of the embodiment of application operating method or the application operating device that can apply the application.
As it is shown in figure 1, system architecture 100 can include terminal unit 101,102,103, network 104 and server 105.Network 104 in order to provide the medium of communication link between terminal unit 101,102,103 and server 105.Network 104 can include various connection type, for instance wired, wireless communication link or fiber optic cables etc..
User can use terminal unit 101,102,103 mutual with server 105 by network 104, to receive or to send message etc..Terminal unit 101,102,103 can be provided with the application of various telecommunication customer end, for instance web browser applications, shopping class application, searching class application, JICQ, social platform software etc..
Terminal unit 101,102,103 can be have a display screen and various electronic equipments that supported web page browses, include but not limited to smart mobile phone, panel computer, E-book reader, MP3 player (MovingPictureExpertsGroupAudioLayerIII, dynamic image expert's compression standard audio frequency aspect 3), MP4 (MovingPictureExpertsGroupAudioLayerIV, dynamic image expert's compression standard audio frequency aspect 4) player, pocket computer on knee and desk computer etc..
Server 105 can be to provide the server of various service, for instance to terminal unit 101,102,103 uses application provide support background server,.The request received can be analyzed waiting and process by background server, and result is fed back to terminal unit.
It should be noted that the application operating method that the embodiment of the present application provides generally is performed by terminal unit 101,102,103, correspondingly, application operating device is generally positioned in terminal unit 101,102,103.
It should be understood that the number of terminal unit in Fig. 1, network and server is merely schematic.According to realizing needs, it is possible to have any number of terminal unit, network and server.
With continued reference to Fig. 2, it is shown that the flow process 200 according to an embodiment of the application operating method of the application.Described application operating method, comprises the following steps:
Step 201, in response to acting on operational order in network application, to native applications, generates the call request of the operation to native applications in network application.
In the present embodiment, application operating method runs on and is provided with native applications in advance on electronic equipment thereon (such as the terminal unit shown in Fig. 1).Native applications is usually directly installed on the application program on terminal unit, and it can use the hardware (speaker, acceleration transducer, shooting first-class) of terminal unit to perform corresponding function.When terminal unit is mobile terminal, native applications typically uses what Java language carried out writing, it is necessary to user is downloaded and installation.Can applying by operational network in native applications in the present embodiment, wherein network application is contrary with native applications, and it requires over browser or other native applications are run, and is not generally directly installed on terminal unit.
It should be noted that above-mentioned network application generally can as the plug-in component operation of native applications, to realize some functional module in native applications, for instance order functional module, commodity function module.Above-mentioned network application can use HTML5 technology to realize, and therefore this network application is alternatively referred to as H5 plug-in unit or the H5 page.Network application can realize dynamic function by JavaScript (hereinafter referred to as JS) language.
When above-mentioned network application operationally, the operational order to native applications acted in this network application can be responded by electronic equipment, to generate the call request that the operation to native applications calls in network application.Generally, electronic equipment can generate corresponding call request according to user's specific operation in network application.Such as, when user by carrying out clicking the button for opening corresponding function on the H5 page of network application, electronic equipment can generate the call request of corresponding operating in native applications in network application.Such as, split photographic head, photograph album, share, sweep sweep, the call request of the function such as message informing.This call request can include the operation mark that institute's call operation is corresponding.Call request includes the operation mark of the operation called, for identifying the concrete operations called.Optionally, this call request can also include parameter, upon execution this parameter is processed for invoked operation.
Step 202, by the SDK SDK that network application is pre-loaded, sends call request to native applications from network application.
In the present embodiment, based on the call request obtained in step 201, this call request can be sent to above-mentioned native applications from above-mentioned network application by electronic equipment (such as the terminal unit shown in Fig. 1) by pre-loaded SDK SDK.
SDK (SDK, the set of SoftwareDevelopmentKit) can be some software engineers for specific software kit, software frame, hardware platform, operating system etc. set up developing instrument during application software, it can provide some files of API (ApplicationProgrammingInterface, application programming interfaces) for certain programming language.In the present embodiment, encapsulating the API of operation for calling above-mentioned native applications in SDK, it can be loaded previously in above-mentioned network application.This SDK file can be the SDK file towards JS, and therefore this SDK is properly termed as JSSDK (JavascriptSDK).
When network application starts to load SDK, the object in SDK can be initialized by electronic equipment.Electronic equipment can pass through to call the interface of encapsulation in SDK and call request be sent to native applications from network application.
In some optional implementations of the present embodiment, SDK file can be loaded in this network application by above-mentioned electronic equipment when network application starts.By this method, can being injected in network application by SDK when network application loads for the sensitive data of communication between network application and native applications temporarily, the probability that sensitive data leaks can being reduced, thus improve safety.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can utilize SDK to send call request from network application is asynchronous to native applications in the way of message queue.In this way, it is possible to achieve to the asynchronous call of operation in native applications, call efficiency thus improving.
Step 203, uses native applications to resolve call request to determine the primary function that operation mark indicates, and uses native applications to call primary function to perform corresponding operation.
In the present embodiment, when call request being sent to native applications based on step 202, it is possible to use native applications that call request is resolved when native applications receives this call request.Native applications can pass through its with Native resolver the call request received is resolved, electronic equipment can so that native applications determines the function in call request corresponding to operation mark.After the function determining correspondence, this function can be called by native applications, such that it is able to perform corresponding operation.This operation can be open photographic head, photograph album, share, sweep sweep, the various operations performed by native applications such as message informing.
In some optional implementations of the present embodiment, at the SDK SDK pre-loaded above by above-mentioned network application, call request being sent to while native applications from network application, this application operating method also includes: sent the call back function mark corresponding with operation mark to native applications by this SDK;And using native applications to resolve call request to determine the primary function that operation mark indicates, and using native applications to call primary function with after performing corresponding operation, the method also includes: is obtained by native applications and performs the operation result information that operation generates;Call back function mark is back to network application with operation result information from native applications, makes network application call with call back function call back function corresponding to mark operation result information to be processed and be updated with the page to network application.Wherein, this SDK configures corresponding call back function mark according to operation mark and in company with call request, this call back function mark is sent to native applications.Native applications is after performing aforesaid operations acquisition operation result information, can using the operation result information parameter above-mentioned network application of return as call back function, make network application can call the call back function corresponding with call back function mark operation result information is further processed, so that the page to be updated.Such as, operation result information can be image, and the function that the call back function corresponding with call back function mark performs can be image display function.Now, native applications can will return to network application as the image of operation result information in the way of data stream, the call back function of image display function can also be identified and return to network application by native applications simultaneously, make network application can call this function image is displayed, thus updating the page of network application.Again such as, when the network address that processing result information is for accessing for network application, the function of call back function mark correspondence could be for accessing network address and obtaining data from network address carrying out the function of the page.Now, in native applications, network address and the call back function as processing result information is identified after returning to network application, network application can be called the call back function of correspondence and network address is processed, thus the server corresponding with this network address obtains data and the page is updated.
In some optional implementations of the present embodiment, above-mentioned SDK can also store the verification parameter that native applications pre-sets, and described call request being sent to while described native applications from described network application by SDK, above-mentioned application operating method also includes: sent verification parameter to native applications by above-mentioned SDK.Additionally, before performing above-mentioned steps 203, this verification parameter is also verified by above-mentioned application operating method, specifically includes: judge that the verification parameter that the verification parameter that native applications obtains from call request pre-sets with native applications is consistent.Wherein, by native applications when SDK being arranged verification parameter, also this verification parameter is preserved in native applications.When network application sends call request by SDK to native applications, this verification parameter can be sent to native applications in the lump as a parameter of call request.Native applications, after receiving call request, can obtain the verification parameter in this call request, and whether judge this verification parameter consistent with the verification parameter pre-saved in native applications.If consistent, then prove that the network application sending this call request is the network application being previously implanted the SDK that this native applications provides, such that it is able to assert that this network application has the authority calling native applications.If it is inconsistent, it is believed that this network application does not get, beforehand through SDK, the verification parameter that native applications provides.Authority can be verified in this way, it is prevented that illegal third-party application calls the operation in native applications.
The method that above-described embodiment of the application provides realizes network application to calling of operating in native applications by pre-loaded SDK file, it is achieved mode is flexible and safety is higher.
With further reference to Fig. 3, it illustrates the flow process 300 of another embodiment of application operating method.The flow process 300 of this application operating method, comprises the following steps:
Step 301, in response to acting on operational order in native applications, to network application, generates the call request of the operation to network application in network application.
In the present embodiment, application operating method runs on and is provided with native applications in advance on electronic equipment thereon (such as the terminal unit shown in Fig. 1).Native applications is usually directly installed on the application program on terminal unit.When terminal unit is mobile terminal, native applications typically uses what Java language carried out writing, it is necessary to user is downloaded and installation.Can applying by operational network in native applications in the present embodiment, wherein network application is contrary with native applications, and it requires over browser or other native applications are run, and is not generally directly installed on terminal unit.Network application generally can as the plug-in component operation of native applications.
Electronic equipment according to the operational order acted in this native applications, can generate the call request of the operation to network application.This operational order can be the operation that the data in native applications are modified, and this call request can be that the data in network application are also carried out the request of corresponding renewal.This call request can include the operation mark that institute's call operation is corresponding, for identifying the operation of correspondence.Optionally, this call request can also include parameter, upon execution this parameter is processed for invoked operation.
Step 302, by the SDK SDK that native applications is pre-loaded, sends call request to network application from native applications.
In the present embodiment, being pre-loaded with SDK SDK in native applications, this SDK can encapsulate the API of the operation for calling network application.In some occasions, this SDK can also be called JSSDK.When native applications starts to load SDK, the object in SDK can be initialized by electronic equipment.After native applications receives call request, electronic equipment can pass through to call the interface of encapsulation in SDK and call request be sent to network application from network application.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can utilize SDK to send call request from network application is asynchronous to native applications in the way of message queue.
Step 303, uses network application to resolve call request to determine the function that operation mark indicates, and uses network application to call this function to perform corresponding operation.
In the present embodiment, when call request being sent to network application based on step 302, above-mentioned network application can receive this call request.Call request is resolved by electronic equipment by network application, to determine in call request the function corresponding to operation mark.After the function determining correspondence, this function can be called by network application, such that it is able to perform corresponding operation, for instance page data is updated.
The method that above-described embodiment of the application provides realizes native applications to calling of operating in network application by pre-loaded SDK file, it is achieved mode is flexible and safety is higher.
With further reference to Fig. 4, as the realization to method shown in above-mentioned Fig. 2, this application provides an embodiment of a kind of application operating device, this device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and this device specifically can apply in various electronic equipment.
As shown in Figure 4, the application operating device 400 described in the present embodiment includes: generate unit 401, transmitting element 402, performance element 403.Wherein, generate unit 401 in response to acting on operational order in network application, to native applications, generating the call request of the operation to native applications in network application, network application runs in native applications, and call request includes the operation mark of the operation called;Call request, for the SDK SDK pre-loaded by network application, is sent to native applications by transmitting element 402 from network application, and wherein, above-mentioned SDK encapsulates the application programming interfaces of the operation for calling native applications;Performance element 403 is for using native applications to resolve call request to determine the primary function that operation mark indicates, and uses native applications to call primary function to perform corresponding operation.
In the present embodiment, application operating device 400 generate unit 401, transmitting element 402, performance element 403 concrete process be referred to the step 201 of Fig. 2 embodiment, step 202 and step 203 respectively, repeat no more here.
In some optional implementations of the present embodiment, above-mentioned SDK can be loaded into network application from native applications when above-mentioned network application starts.This implementation concrete processes and is referred in Fig. 2 embodiment corresponding implementation.
In some optional implementations of the present embodiment, above-mentioned transmitting element 402 can be further used for call request by message queue from network application asynchronous transmission to native applications.This implementation concrete processes and is referred in Fig. 2 embodiment corresponding implementation.
In some optional implementations of the present embodiment, above-mentioned application operating device can also include: call back function mark transmitting element (not shown), for being sent the call back function mark corresponding with operation mark to native applications by above-mentioned SDK;Acquiring unit (not shown), performs, for being obtained by native applications, the operation result information that operation generates;Return unit (not shown), for call back function mark is back to network application with operation result information from native applications, network application is made to call with call back function call back function corresponding to mark operation result information to be processed and be updated with the page to network application.This implementation concrete processes and is referred in Fig. 2 embodiment corresponding implementation.
In some optional implementations of the present embodiment, above-mentioned SDK also stores the verification parameter that native applications pre-sets;And above-mentioned application operating device also includes: verification parameter transmitting element (not shown), for verification parameter is sent to native applications by verification parameter by SDK;Verification unit (not shown), for confirming that the verification parameter that the verification parameter that native applications obtains from call request pre-sets with native applications is consistent.This implementation concrete processes and is referred in Fig. 2 embodiment corresponding implementation.
With further reference to Fig. 5, as the realization to method shown in above-mentioned Fig. 3, this application provides an embodiment of a kind of application operating device, this device embodiment is corresponding with the embodiment of the method shown in Fig. 3, and this device specifically can apply in various electronic equipment.
As it is shown in figure 5, the application operating device 500 described in the present embodiment includes: generate unit 501, transmitting element 502, performance element 503.Wherein, generate unit 501 in response to acting on operational order in native applications, to network application, generating the call request of the operation to network application in network application, above-mentioned network application runs in above-mentioned native applications, and call request includes the operation mark of the operation called;Call request, for the SDK SDK pre-loaded by native applications, is sent to network application by transmitting element 502 from native applications, and wherein, above-mentioned SDK encapsulates the application programming interfaces of the operation for calling network application;Performance element 503 is for using network application to resolve call request to determine the function that operation mark indicates, and uses network application to call function to perform corresponding operation.
In the present embodiment, application operating device 500 generate unit 501, transmitting element 502, performance element 503 concrete process be referred to the step 301 of Fig. 3 embodiment, step 302 and step 303 respectively, repeat no more here.
In some optional implementations of the present embodiment, above-mentioned transmitting element 502 can utilize SDK to send call request from network application is asynchronous to native applications in the way of message queue.This implementation concrete processes and is referred in Fig. 3 embodiment corresponding implementation.
In the present embodiment, call request can be resolved by performance element 503 by network application, to determine in call request the function corresponding to operation mark.After the function determining correspondence, this function can be called by network application, such that it is able to perform corresponding operation, for instance page data is updated.
Below with reference to Fig. 6, it illustrates the structural representation of the computer system 600 being suitable to terminal unit or server for realizing the embodiment of the present application.
As shown in Figure 6, computer system 600 includes CPU (CPU) 601, its can according to the program being stored in read only memory (ROM) 602 or from storage part 608 be loaded into the program random access storage device (RAM) 603 and perform various suitable action and process.In RAM603, also storage has system 600 to operate required various programs and data.CPU601, ROM602 and RAM603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to bus 604.
It is connected to I/O interface 605: include the importation 606 of touch screen, button etc. with lower component;Including such as liquid crystal display (LCD) etc. and the output part 607 of speaker etc.;Storage part 608 including hard disk etc.;And include the communications portion 609 of NIC.Communications portion 609 performs communication process via the network of such as the Internet.Driver 610 is connected to I/O interface 605 also according to needs.Detachable media 611, such as semiconductor memory etc., be arranged in driver 610 as required, in order to the computer program read from it is mounted into storage part 608 as required.
Especially, according to embodiment of the disclosure, the process described above with reference to flow chart may be implemented as computer software programs.Such as, embodiment of the disclosure and include a kind of computer program, it includes the computer program being tangibly embodied on machine readable media, and described computer program comprises the program code for performing the method shown in flow chart.In such embodiments, this computer program can pass through communications portion 609 and be downloaded and installed from network, and/or is mounted from detachable media 611.
Flow chart in accompanying drawing and block diagram, it is illustrated that according to the system of the various embodiment of the application, the architectural framework in the cards of method and computer program product, function and operation.In this, flow chart or each square frame in block diagram can represent a part for a module, program segment or code, and a part for described module, program segment or code comprises the executable instruction of one or more logic function for realizing regulation.It should also be noted that at some as in the realization replaced, the function marked in square frame can also to be different from the order generation marked in accompanying drawing.Such as, two square frames succeedingly represented can essentially perform substantially in parallel, and they can also perform sometimes in the opposite order, and this determines according to involved function.It will also be noted that, the combination of the square frame in each square frame in block diagram and/or flow chart and block diagram and/or flow chart, can realize by the special hardware based system of the function or operation that perform regulation, or can realize with the combination of specialized hardware Yu computer instruction.
It is described in unit involved in the embodiment of the present application to be realized by the mode of software, it is also possible to realized by the mode of hardware.Described unit can also be arranged within a processor, for instance, it is possible to it is described as: a kind of processor includes generating unit, transmitting element, performance element.Wherein, the title of these unit is not intended that the restriction to this unit itself under certain conditions, such as, generate unit and be also described as " in response to acting on operational order in network application, to native applications, described network application generates the unit of the call request of operation to described native applications ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, this nonvolatile computer storage media can be the nonvolatile computer storage media comprised in device described in above-described embodiment;Can also be individualism, be unkitted the nonvolatile computer storage media allocating in terminal.Above-mentioned nonvolatile computer storage media storage has one or more program, when one or multiple program are performed by an equipment, make described equipment: in response to acting on operational order in network application, to native applications, described network application generates the call request of operation to described native applications, described network application runs in described native applications, and described call request includes the operation mark of the operation called;By the SDK SDK that described network application is pre-loaded, described call request being sent to described native applications from described network application, wherein, described SDK encapsulates the application programming interfaces of the operation for calling described native applications;Use described native applications to resolve described call request to determine the primary function that described operation mark indicates, and use described native applications to call described primary function to perform corresponding operation.Or, above-mentioned nonvolatile computer storage media storage has one or more program, when one or multiple program are performed by an equipment, make described equipment: in response to acting on operational order in native applications, to network application, described network application generates the call request of operation to described network application, described network application runs in described native applications, and described call request includes the operation mark of the operation called;By the SDK SDK that described native applications is pre-loaded, described call request being sent to described network application from described native applications, wherein, described SDK encapsulates the application programming interfaces of the operation for calling described network application;Use described network application to resolve described call request to determine the function that described operation mark indicates, and use described network application to call described function to perform corresponding operation.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Skilled artisan would appreciate that, invention scope involved in the application, it is not limited to the technical scheme of the particular combination of above-mentioned technical characteristic, when also should be encompassed in without departing from described inventive concept simultaneously, other technical scheme being carried out combination in any by above-mentioned technical characteristic or its equivalent feature and being formed.Such as features described above and (but not limited to) disclosed herein have the technical characteristic of similar functions and replace mutually and the technical scheme that formed.

Claims (14)

1. an application operating method, it is characterised in that described method includes:
In response to acting on operational order in network application, to native applications, described network application generates the call request of operation to described native applications, described network application runs in described native applications, and described call request includes the operation mark of the operation called;
By the SDK SDK that described network application is pre-loaded, described call request being sent to described native applications from described network application, wherein, described SDK encapsulates the application programming interfaces of the operation for calling described native applications;
Use described native applications to resolve described call request to determine the primary function that described operation mark indicates, and use described native applications to call described primary function to perform corresponding operation.
2. method according to claim 1, it is characterised in that described SDK is loaded into described network application from described native applications when described network application starts.
3. method according to claim 2, it is characterised in that described by described call request from described network application send to described native applications, including:
By message queue by described call request from described network application asynchronous transmission to described native applications.
4. method according to claim 2, at the described SDK SDK pre-loaded by described network application, sends described call request to while described native applications from described network application, and described method also includes:
By described SDK, the call back function mark corresponding with described operation mark is sent to described native applications;And
Resolving described call request to determine the primary function that described operation mark indicates in the described native applications of described use, and use described native applications to call described primary function with after performing corresponding operation, described method also includes:
Obtained by described native applications and perform the operation result information that described operation generates;
Described call back function mark is back to described network application with described operation result information from described native applications, makes described network application call with described call back function call back function corresponding to mark described operation result information to be processed and be updated with the page to described network application.
5. method according to claim 2, it is characterised in that described SDK also stores the verification parameter that described native applications pre-sets;And
At the described SDK SDK pre-loaded by described network application, described call request being sent to while described native applications from described network application, described method also includes:
By described SDK, described verification parameter is sent to described native applications;And
Resolving described call request to determine the primary function that described operation mark indicates in the described native applications of described use, and use described native applications to call described primary function with before performing corresponding operation, described method also includes:
Confirm that the verification parameter that described native applications obtains from described call request is consistent with the verification parameter that described native applications pre-sets.
6. an application operating method, it is characterised in that described method includes:
In response to acting on operational order in native applications, to network application, described network application generates the call request of operation to described network application, described network application runs in described native applications, and described call request includes the operation mark of the operation called;
By the SDK SDK that described native applications is pre-loaded, described call request being sent to described network application from described native applications, wherein, described SDK encapsulates the application programming interfaces of the operation for calling described network application;
Use described network application to resolve described call request to determine the function that described operation mark indicates, and use described network application to call described function to perform corresponding operation.
7. method according to claim 6, it is characterised in that described by described call request from described native applications send to described network application, including:
By message queue by described call request from described native applications asynchronous transmission to described network application.
8. an application operating device, it is characterised in that described device includes:
Generate unit, for in response to acting on operational order in network application, to native applications, described network application generates the call request of operation to described native applications, described network application runs in described native applications, and described call request includes the operation mark of the operation called;
Transmitting element, for the SDK SDK pre-loaded by described network application, described call request being sent to described native applications from described network application, wherein, described SDK encapsulates the application programming interfaces of the operation for calling described native applications;
Performance element, for using described native applications to resolve described call request to determine the primary function that described operation mark indicates, and uses described native applications to call described primary function to perform corresponding operation.
9. device according to claim 8, it is characterised in that described SDK is loaded into described network application from described native applications when described network application starts.
10. device according to claim 9, it is characterised in that described transmitting element is further used for described call request by message queue from described network application asynchronous transmission to described native applications.
11. device according to claim 9, it is characterised in that described device also includes:
Call back function mark transmitting element, for sending the call back function mark corresponding with described operation mark to described native applications by described SDK;
Acquiring unit, performs, for being obtained by described native applications, the operation result information that described operation generates;
Return unit, for described call back function mark is back to described network application with described operation result information from described native applications, described network application is made to call with described call back function call back function corresponding to mark described operation result information to be processed and be updated with the page to described network application.
12. device according to claim 9, it is characterised in that described SDK also stores the verification parameter that described native applications pre-sets;And
Described device also includes:
Parameter transmitting element is used in verification, for verification parameter being sent described verification parameter to described native applications by described SDK;
Verification unit, for confirming that the verification parameter that described native applications obtains from described call request is consistent with the verification parameter that described native applications pre-sets.
13. an application operating device, it is characterised in that described device includes:
Generate unit, for in response to acting on operational order in native applications, to network application, described network application generates the call request of operation to described network application, described network application runs in described native applications, and described call request includes the operation mark of the operation called;
Transmitting element, for the SDK SDK pre-loaded by described native applications, described call request being sent to described network application from described native applications, wherein, described SDK encapsulates the application programming interfaces of the operation for calling described network application;
Performance element, for using described network application to resolve described call request to determine the function that described operation mark indicates, and uses described network application to call described function to perform corresponding operation.
14. device according to claim 13, it is characterised in that described transmitting element is further used for: by message queue by described call request from described native applications asynchronous transmission to described network application.
CN201610046819.0A 2016-01-22 2016-01-22 Application operation method and device Pending CN105718313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610046819.0A CN105718313A (en) 2016-01-22 2016-01-22 Application operation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610046819.0A CN105718313A (en) 2016-01-22 2016-01-22 Application operation method and device

Publications (1)

Publication Number Publication Date
CN105718313A true CN105718313A (en) 2016-06-29

Family

ID=56154067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610046819.0A Pending CN105718313A (en) 2016-01-22 2016-01-22 Application operation method and device

Country Status (1)

Country Link
CN (1) CN105718313A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106599045A (en) * 2016-11-09 2017-04-26 上海艾融软件股份有限公司 Request sending method and apparatus
CN106843978A (en) * 2017-01-23 2017-06-13 北京乐盟互动科技有限公司 A kind of SDK cut-in methods and system
CN108694040A (en) * 2017-02-15 2018-10-23 百度在线网络技术(北京)有限公司 Calling processing method and device, communication system
CN109086091A (en) * 2017-06-13 2018-12-25 中国移动通信有限公司研究院 A kind of interface loading method, device and the equipment of software development kit
CN109344330A (en) * 2018-10-24 2019-02-15 百度在线网络技术(北京)有限公司 Information processing method and device
CN109391676A (en) * 2018-07-19 2019-02-26 珠海市魅族科技有限公司 Terminal equipment control method, terminal device and computer readable storage medium
CN109426570A (en) * 2017-08-29 2019-03-05 阿里巴巴集团控股有限公司 A kind of acquisition methods of data, device and equipment
CN109460215A (en) * 2018-11-13 2019-03-12 北京奇虎科技有限公司 Application control method and device
CN109582400A (en) * 2018-11-30 2019-04-05 北京小米移动软件有限公司 Routine call method and device
CN109656728A (en) * 2018-12-17 2019-04-19 深圳乐信软件技术有限公司 Page data operating method, device, equipment and medium
CN110321228A (en) * 2018-03-28 2019-10-11 腾讯科技(深圳)有限公司 Call method, device, equipment and the computer readable storage medium of Native method
CN110688232A (en) * 2018-07-05 2020-01-14 珠海市魅族科技有限公司 Application program calling method, terminal device and computer readable storage medium
CN110704131A (en) * 2019-08-29 2020-01-17 北京三快在线科技有限公司 Method and device for calling native application by HTML5 application
CN110955430A (en) * 2018-09-26 2020-04-03 北京字节跳动网络技术有限公司 Application program native capability calling method and device and electronic equipment
CN111400016A (en) * 2020-03-25 2020-07-10 新华三信息安全技术有限公司 Method and equipment for calling application program interface function
CN112148441A (en) * 2020-07-28 2020-12-29 易视飞科技成都有限公司 Embedded message queue realizing method of dynamic storage mode
CN112860230A (en) * 2021-02-18 2021-05-28 爱驰汽车有限公司 Service implementation method, device, equipment and storage medium for hybrid application

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977230A (en) * 2010-10-21 2011-02-16 中兴通讯股份有限公司 Security protection method and system for widget application
US8176321B1 (en) * 2010-05-18 2012-05-08 Google Inc. Safe installation of browser extensions
CN102622211A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for application development and device
CN103973642A (en) * 2013-01-30 2014-08-06 中国电信股份有限公司 Method and device for realizing JS API security access control
CN104301443A (en) * 2014-10-09 2015-01-21 百度在线网络技术(北京)有限公司 Method and system for calling end capacity ports on web page
US20150281869A1 (en) * 2014-03-31 2015-10-01 Google Inc. Native web-based application
CN104978176A (en) * 2014-04-10 2015-10-14 腾讯科技(北京)有限公司 Application program interface calling method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8176321B1 (en) * 2010-05-18 2012-05-08 Google Inc. Safe installation of browser extensions
CN101977230A (en) * 2010-10-21 2011-02-16 中兴通讯股份有限公司 Security protection method and system for widget application
CN102622211A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for application development and device
CN103973642A (en) * 2013-01-30 2014-08-06 中国电信股份有限公司 Method and device for realizing JS API security access control
US20150281869A1 (en) * 2014-03-31 2015-10-01 Google Inc. Native web-based application
CN104978176A (en) * 2014-04-10 2015-10-14 腾讯科技(北京)有限公司 Application program interface calling method and device
CN104301443A (en) * 2014-10-09 2015-01-21 百度在线网络技术(北京)有限公司 Method and system for calling end capacity ports on web page

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106599045A (en) * 2016-11-09 2017-04-26 上海艾融软件股份有限公司 Request sending method and apparatus
CN106843978A (en) * 2017-01-23 2017-06-13 北京乐盟互动科技有限公司 A kind of SDK cut-in methods and system
CN106843978B (en) * 2017-01-23 2020-04-03 北京乐盟互动科技有限公司 SDK access method and system
CN108694040A (en) * 2017-02-15 2018-10-23 百度在线网络技术(北京)有限公司 Calling processing method and device, communication system
CN108694040B (en) * 2017-02-15 2022-01-28 百度在线网络技术(北京)有限公司 Call processing method and device and communication system
CN109086091A (en) * 2017-06-13 2018-12-25 中国移动通信有限公司研究院 A kind of interface loading method, device and the equipment of software development kit
CN109426570A (en) * 2017-08-29 2019-03-05 阿里巴巴集团控股有限公司 A kind of acquisition methods of data, device and equipment
CN110321228B (en) * 2018-03-28 2023-09-22 腾讯科技(深圳)有限公司 Calling method, device and equipment of native method and computer readable storage medium
CN110321228A (en) * 2018-03-28 2019-10-11 腾讯科技(深圳)有限公司 Call method, device, equipment and the computer readable storage medium of Native method
CN110688232A (en) * 2018-07-05 2020-01-14 珠海市魅族科技有限公司 Application program calling method, terminal device and computer readable storage medium
CN110688232B (en) * 2018-07-05 2023-07-07 珠海市魅族科技有限公司 Application program calling method, terminal equipment and computer readable storage medium
CN109391676A (en) * 2018-07-19 2019-02-26 珠海市魅族科技有限公司 Terminal equipment control method, terminal device and computer readable storage medium
CN109391676B (en) * 2018-07-19 2020-12-18 珠海市魅族科技有限公司 Terminal device control method, terminal device, and computer-readable storage medium
CN110955430A (en) * 2018-09-26 2020-04-03 北京字节跳动网络技术有限公司 Application program native capability calling method and device and electronic equipment
CN109344330A (en) * 2018-10-24 2019-02-15 百度在线网络技术(北京)有限公司 Information processing method and device
CN109460215A (en) * 2018-11-13 2019-03-12 北京奇虎科技有限公司 Application control method and device
CN109460215B (en) * 2018-11-13 2023-05-26 三六零科技集团有限公司 Application control method and device
CN109582400A (en) * 2018-11-30 2019-04-05 北京小米移动软件有限公司 Routine call method and device
CN109582400B (en) * 2018-11-30 2023-02-21 北京小米移动软件有限公司 Program calling method and device
CN109656728A (en) * 2018-12-17 2019-04-19 深圳乐信软件技术有限公司 Page data operating method, device, equipment and medium
CN110704131A (en) * 2019-08-29 2020-01-17 北京三快在线科技有限公司 Method and device for calling native application by HTML5 application
CN110704131B (en) * 2019-08-29 2020-11-20 北京三快在线科技有限公司 Method and device for calling native application by HTML5 application
CN111400016B (en) * 2020-03-25 2023-05-16 新华三信息安全技术有限公司 Method and equipment for calling application program interface function
CN111400016A (en) * 2020-03-25 2020-07-10 新华三信息安全技术有限公司 Method and equipment for calling application program interface function
CN112148441A (en) * 2020-07-28 2020-12-29 易视飞科技成都有限公司 Embedded message queue realizing method of dynamic storage mode
CN112860230A (en) * 2021-02-18 2021-05-28 爱驰汽车有限公司 Service implementation method, device, equipment and storage medium for hybrid application

Similar Documents

Publication Publication Date Title
CN105718313A (en) Application operation method and device
CN108052334B (en) Page jump method, device, computer equipment and storage medium
CN109325195B (en) Rendering method and system for browser, computer device and computer storage medium
US20120317172A1 (en) Mobile web app infrastructure
CN107622135A (en) Method and apparatus for display information
CN105653933B (en) Plug-in loading method and device
CN110020329B (en) Method, device and system for generating webpage
CN109240697B (en) Call processing method and device and storage medium
CN113010827B (en) Page rendering method and device, electronic equipment and storage medium
CN111443909B (en) Method and device for generating page
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN106874519A (en) Webpage representation method and apparatus
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
CN109582317B (en) Method and apparatus for debugging hosted applications
US9571557B2 (en) Script caching method and information processing device utilizing the same
CN113127361A (en) Application program development method and device, electronic equipment and storage medium
CN107895120B (en) Data processing method and device in cross-platform application, electronic equipment and storage medium
CN113553123A (en) Data processing method and device, electronic equipment and storage medium
CN106095886B (en) Data processing method and device
CN109582580B (en) System, method and apparatus for debugging pages
CN108009084B (en) Testing method, device and system for hybrid mobile application
CN113315829B (en) Client offline H5 page loading method and device, computer equipment and medium
CN110618811A (en) Information presentation method and device
CN113783966B (en) Data transmission method and device, readable medium and electronic equipment
CN113835790B (en) Paging page display method and device based on Android

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160629