CN103917951B - Application invocation method, operating system and browser - Google Patents
Application invocation method, operating system and browser Download PDFInfo
- Publication number
- CN103917951B CN103917951B CN201280001733.6A CN201280001733A CN103917951B CN 103917951 B CN103917951 B CN 103917951B CN 201280001733 A CN201280001733 A CN 201280001733A CN 103917951 B CN103917951 B CN 103917951B
- Authority
- CN
- China
- Prior art keywords
- web
- service side
- service
- applications
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Abstract
The present invention provides an application invocation method, an operating system and a browser, wherein, the method comprises: an operating system receiving a service discovery request sent from a requester native application, searching, according to the service discovery request, for a server native application and a server Web application that can process the service discovery request, and presenting the searched server native application and server Web application; when it is determined that the application selected by a user according to the presented server native application and server Web application is a Web application in the server Web application, sending a application invocation request to a browser, the application invocation request comprising the address of the selected Web application, so that the browser opens the server Web application corresponding to the address of the selected Web application according to the address of the selected Web application. The method is used to solve the problem that a native application cannot invoke a Web application in the existing technology.
Description
Technical field
The present invention relates to communication technology, more particularly to a kind of method and operating system, the browser of application call.
Background technology
Native applications are locally applied (Native applications), refer to be directed to the development interface of specific operation system and prop up
It is locally applied that the development language held is developed, wherein, specific operation system can be Android operation system.Native is applied
Depend on the podium level of operating system, using the teaching of the invention it is possible to provide splendid performance and Consumer's Experience, can such as provide high-quality magnificent user
Interface and the interaction of smoothness;Native applications can flexibly call terminal unit ability and local resource access, therefore can be real
Existing increasingly complex application function;Due to Native application programs itself and service data it is most of local, therefore can be square
Just online and offline function is supported, flow is saved.
However, Native applications have the disadvantage that:The exploitation standard of different platform is different with interface, needs for concrete
Platform is developed, and the maintenance of the platform transplantation and multiple platform releases of Native applications needs to spend substantial amounts of manpower and time
Cost;The function and implementation of different platform is totally different, and the Consumer's Experience in different platform there may be difference;Function upgrading
Can cause frequently to download and install, increase flow and affect Consumer's Experience.
Web application refer to using browser (such as IE browser) support it is language development, run on standard browser and
Application on network, that one or more specific functions are completed for user.With the development of the Internet Web technologies, Web applications
Type and quantity it is more and more.Compared with above-mentioned Native applications, Web applications have the following advantages:It is prominent across flat
Platform, cross-terminal and browser-cross characteristic, first encoding runs everywhere, greatly reduces development and maintenance cost;Operate in and browse
In device, it is not necessary to install client-side program, function upgrading is convenient;Data are mainly stored in server, safer reliability.
But, Web applications there is also following shortcoming:It is limited to browser and development language, current performance and user's body
Test and still have to be hoisted;Support to offline functionality is not enough, cannot use using possibly when network interrupts;Or to hardware resource
Call capability is not enough, cause application function limited etc..
To sum up, Native respectively has pluses and minuses using with Web applications, the number for both supporting the type between each self-application abundant
According to interaction, but at present both can not be compatible so that Native applications cannot call Web to apply.
The content of the invention
In view of this, the present invention provides a kind of method and operating system, browser of application call, for solving existing skill
Native applications in art cannot call the problem that Web is applied.
In a first aspect, the embodiment of the present invention provides a kind of method of application call, including:
Operating system receives the service discovery request that requesting party's native applications send, and is searched according to the service discovery request
The service side's native applications and service side Web application of the service discovery request, and the service found described in presenting can be processed
Square native applications and service side Web are applied;
It is determined that user is clothes using selected application according to service side's native applications and service side Web of the presentation
When business side Web is applied, application invocation request is sent to browser, the application invocation request includes selected Web applications
Address, so that the browser opens the corresponding clothes in address of selected Web applications according to the address that selected Web is applied
Business side Web is applied.
With reference in a first aspect, in the first possible implementation, the service discovery request includes:Service type;
It is described according to the service discovery request search can process the service discovery request service side's native applications and
Service side Web is applied, and is specifically included:
Being searched according to the service type can process service side's native applications and service side Web of the service discovery request
Using.
With reference to first aspect and above-mentioned possible implementation, in second possible implementation, the service
It was found that request includes:Service type and data type;
It is described according to the service discovery request search can process the service discovery request service side's native applications and
Service side Web is applied, and is specifically included:
Service side's native applications of the service discovery request can be processed according to the service type and data type search
With service side Web applications.
With reference to first aspect and above-mentioned possible implementation, in the third possible implementation, the service
It was found that request includes:Service type, data type and pending data;
It is described according to the service discovery request search can process the service discovery request service side's native applications and
Service side Web is applied, and is specifically included:
The pending data can be processed according to the service type and data type search service side is primary should
With with service side Web application;
Wherein, the application invocation request includes the address of selected Web applications, so that the browser is according to selected
The corresponding service side Web applications in address of selected Web applications are opened in the address of the Web applications selected, and specifically include:
The application invocation request includes the address of selected Web applications and the pending data, so that described
Browser is applied according to the corresponding service side Web in address that selected Web applications are opened in the address that selected Web is applied,
And processed the pending data is activation to opened service side Web applications.
With reference to first aspect and above-mentioned possible implementation, in the 4th kind of possible implementation, the operation
System is received before the service discovery request that requesting party's native applications send, and the method for application call is further included:
The operating system receives the registration request of the service side Web applications that the browser sends, the registration request
Including:The information of service side Web applications;
The registration letter of operating system browser described in operating system according to the information editing that the Web is applied
Breath, so that service side Web applications can be searched by the operating system.
With reference to first aspect and above-mentioned possible implementation, in the 5th kind of possible implementation, the operation
System is received before the service discovery request that requesting party's native applications send, and the method for application call is further included:
The operating system receives the registration request of the service side Web applications that the browser sends, the registration request
Including:The information of service side Web applications;
The operating system is generated with the service side Web using corresponding according to the information that the service side Web is applied
The installation file of Web association programs, and the installation file is performed, the Web applications registered in an operating system are closed
Connection program.
With reference to first aspect and above-mentioned possible implementation, in the 6th kind of possible implementation, the basis
The service discovery request searches the service side's native applications and service side Web application that can process the service discovery request, tool
Body includes:
The service that can process the service discovery request is searched in the operating system according to the service discovery request
Square native applications and the service side Web apply corresponding Web associations program;
Wherein, the found service side's native applications of presentation and service side Web applications, specifically include:Presentation is searched
The service side's native applications for arriving and the service side Web apply corresponding Web associations program;
Wherein, it is determined that user answers according to service side's native applications and service side Web of the presentation using selected
During with applying for service side Web, application invocation request is sent to browser, the application invocation request includes selected Web
Using address, specifically include:It is determined that user applies according to service side's native applications and the service side Web of the presentation
When the selected application of corresponding Web associations program is that the service side Web applies corresponding Web associations program,
The service side Web is run using corresponding Web associations program, the service side Web applies corresponding Web associations
Program to browser sends the application invocation request, and the application invocation request includes the service side Web using corresponding
The address of the corresponding service side Web applications of Web association programs.
With reference to first aspect and above-mentioned possible implementation, in the 7th kind of possible implementation, the operation
System is generated with the service side Web using corresponding Web associations program according to the information that the service side Web is applied
Installation file, including:
The source file of the Web associations program is generated according to the information of service side Web applications, to the source document
Part is compiled, by the source file code conversion after compiling into the bytecode being able to carry out in the operating system, will be described
Bytecode is packaged into the installation file of Web association programs, performs the installation file, is registered in an operating system
Corresponding Web associations program is applied with the service side Web.
With reference to first aspect and above-mentioned possible implementation, in the 8th kind of possible implementation, the operation
System is received before the service discovery request that requesting party's native applications send, and is further included:
The operating system receives the registration request of the service side Web applications that the browser sends, the registration request
Including:The information of service side Web applications;
The operating system sends the information that the service side Web is applied to network side server, so that the network
Side server is generated according to the information that the service side Web is applied and applies corresponding Web associations journey with the service side Web
The installation file of sequence;
The operating system receives the installation file of the Web associations program that the network side server sends,
The installation file of the Web associations program is performed, the Web association programs registered in an operating system;Or,
The operating system downloads the installation file of the Web associations program from the network side server, performs the download
Web association programs installation file, the Web association programs registered in an operating system.
Second aspect, the embodiment of the present invention provides a kind of operating system, including:
Native applications calling module, for receiving the service discovery request of requesting party's native applications transmission, according to the clothes
Business finds that request is searched and can process the service side's native applications and service side Web application of the service discovery request, and institute is presented
State the service side's native applications and service side Web applications for finding;
It is determined that user is clothes using selected application according to service side's native applications and service side Web of the presentation
When Web in business side Web applications is applied, application invocation request is sent to browser, the application invocation request includes selected
Web applications address so that what selected Web was applied opened in the address that the browser apply according to selected Web
The corresponding Web applications in address.
With reference to second aspect, in the first possible implementation, the service discovery request includes:Service type and
During data type, the native applications calling module specifically for
Service side's native applications of the service discovery request can be processed according to the service type and data type search
With service side Web applications.
In with reference to second aspect and above-mentioned possible implementation, in second possible implementation, operating system
Further include:
Web application Registering modules, it is described for receiving the registration request of the service side Web applications that the browser sends
Registration request includes:The information of service side Web applications;
According to the log-on message of browser described in information editing's operating system that the service side Web is applied, so that institute
Stating service side Web applications can be searched by the operating system.
In with reference to second aspect and above-mentioned possible implementation, in the third possible implementation, operating system
Further include:
Web application Registering modules, it is described for receiving the registration request of the service side Web applications that the browser sends
Registration request includes:The information of service side Web applications;
Generated with the service side Web using corresponding web application according to the information of service side Web applications
Installation file, and the installation file is performed, obtain the Web association journeys that service side Web applications are registered in an operating system
Sequence.
The third aspect, the embodiment of the present invention provides a kind of browser, including:
Web application invocation modules, for applying selected according to the service side's native applications and service side Web that present in user
When the application selected is that the Web in service side Web applications is applied with the service discovery request for processing the transmission of requesting party's native applications, connect
The application invocation request that operating system sends is received, the application invocation request includes:The address of selected Web applications;
Should according to the corresponding service side Web in address that selected Web applications are opened in the address of selected Web applications
With.
With reference to the third aspect, in the first possible implementation, browser also includes:Module is installed in Web applications, is used
In the registration request that service side Web applications are sent to operating system, the registration request includes:The information of service side Web applications,
So that the note of the browser in operating system operating system according to the information editing that the service side Web is applied
Volume information, or the Web association programs that can be installed in the operating system are generated according to the Web application messages.
Fourth aspect, terminal provided in an embodiment of the present invention, including, any of the above-described described operating system and arbitrary described
Browser, the operating system and the browser communicate.
As shown from the above technical solution, the method and operating system, browser of application call of the invention, by operating system
System receives the service discovery request that requesting party's native applications send, and then searches the service side's original that can process service discovery request
Raw application and service side Web applications, and the service side's native applications for finding are presented and service side Web is applied, it is determined that
When user applies using selected application according to service side's native applications and service side Web of the presentation for service side Web,
The application invocation request of the address for including selected Web applications is sent to browser, so that the browser is according to selected
The address of Web applications open the corresponding service side Web applications in address of selected Web application, such that it is able to realize request
The native applications of side are Native using calling to Web applications.
Description of the drawings
In order to be illustrated more clearly that technical scheme, one will be made to the accompanying drawing to be used needed for embodiment below
Simply introduce, it should be apparent that:Accompanying drawings below is the accompanying drawing of some embodiments of the present invention, for ordinary skill
For personnel, without having to pay creative labor, equally the present invention can be realized to obtain according to these accompanying drawings
Other accompanying drawings of technical scheme.
The structural representation of the communication system that Fig. 1 is provided for one embodiment of the invention;
The schematic flow sheet of the method for the application call that Fig. 2A is provided for one embodiment of the invention;
The schematic flow sheet of the method for the application call that Fig. 2 B are provided for another embodiment of the present invention;
The schematic flow sheet of the method for the application call that Fig. 2 C are provided for another embodiment of the present invention;
The schematic flow sheet of the method for the application call that Fig. 3 is provided for another embodiment of the present invention;
The schematic flow sheet of the method for the application call that Fig. 4 is provided for another embodiment of the present invention;
The schematic flow sheet of the method for the application call that Fig. 5 is provided for another embodiment of the present invention;
The schematic flow sheet of the method for the application call that Fig. 6 is provided for another embodiment of the present invention;
The structural representation of the operating system that Fig. 7 is provided for another embodiment of the present invention;
The structural representation of the operating system that Fig. 8 is provided for another embodiment of the present invention;
The structural representation of the browser that Fig. 9 is provided for another embodiment of the present invention;
The structural representation of the browser that Figure 10 is provided for another embodiment of the present invention;
The structural representation of the terminal that Figure 11 is provided for another embodiment of the present invention;
The structural representation of the terminal that Figure 12 is provided for another embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the embodiment of the present invention in it is attached
Figure, is clearly and completely described to technical scheme.Obviously, each following embodiments is all the present invention one
Partial embodiment.Based on each following embodiment of the present invention, even if those of ordinary skill in the art do not make creativeness
Work, it is also possible to by equivalent transformation technical characteristic partially or completely, and obtain and can solve the problem that present invention problem, it is real
The other embodiments of existing the technology of the present invention effect, and each embodiment that these convert and come is obviously public without departing from institute of the invention
The scope opened.
Currently, Android applications (ARIXTRA application) is mainly including the component of four types:Activity components (activity group
Part), Broadcast components (broadcast component), Service components (serviced component), (content is carried ContentProvider components
Supplier's component);These components itself have independence, can call mutually between component and component, co-ordination, final composition
Complete Android applications.Communication between the component and component of Android applications mainly passes through Android Intents
(ARIXTRA " intention ") is completed, and Android Intents provide a kind of various components generation in identical or different Android applications
The mechanism of late binding (Late Binding) is carried out between code.
Android Intents are a message objects, Android is applied once-through operation by the message object it is dynamic
Data that the action of work and once-through operation is related to etc. are described, and Android operation system is by according to the attribute of this message object
Information, finds the message object and the message object is passed to one or more that can be processed the message object
Android application components, to complete calling for Android application components.
Therefore, Android Intents are actual plays a part of communications intermediary, special to provide the correlation that component is called mutually
Information, realizes the decoupling between called side and called side.
For Android application, in application development process, can transmit in the following way AndroidIntents and
Call different types of Android applications component.
Specifically, can by Content.startActivity () method or
Activity.startActivityForResult () method to Android operation system is dished out Android Intents, with
Triggering operation Android applications component is called in the Android application components of operation.
Especially, if starting Activity components by Activity.startActivityForResult () method,
Result parameter, the knot can be set by calling Activity.setResult () method in the Activity components for starting
Fruit parameter can be received in triggering side Activity by onActivityResult () method.
One Service component can be started or to operating by Context.startService () method
The new instruction of Service component passes.A Service group can also be bound by Context.bindService () method
Part, to set up a connection between invocation component and target Service component.
By Context.sendBroadcast () method, Context.sendOrderedBroadcast () method and
The Android Intents broadcast that any one of Context.sendStickyBroadcast () method is dished out, it will
Received by the application of all radio receivers that have registered corresponding Android Intents.
Web Intents provide a kind of mechanism of the Web application integration of client-side, support to be carried out between Web applications
Complicated data (such as binary file) interaction of type.The whole life cycle of Web Intents include register, call, selecting,
Submit and respond five stages to, each step asynchronous execution, response results are obtained by asynchronism callback.Web applications can be by as follows
Mode registers Web Intents:
Wherein, " action " shows the process behavior type of the Web applications, and at present the standard operation of definition includes
Discover (it was found that), Share (sharing), Edit (editor), View (lookup), Pick (selection), Subscribe (subscription) and
Save (preservation) etc., user can also self-defined Web Intent behavior;" type " shows that the data for processing are supported in Web applications
Type;" href " is used to specify the particular location of " action " webpage, to allow same service provider to provide multiple Web applications
Service;" disposition " is used for the method for calling for specifying Web to apply.
In webpage, the Web applications that have registered above-mentioned Web Intents can be by the following method called:
Called side webpage is passed to Web Intents objects by browser by startActivity () method
Web applications are stated, Web applications can process knot by calling postResult () and postFailure () the method write of object
Really, called side webpage then can pass through onSuccess () and onFailure () call back function obtains the response of Web applications.
The embodiment of the present invention can pass through to provide mechanism of the Native using being in communication with each other with Web applications so that Native should
With it can be found that and call Web to apply so that user, can be by using Native during being applied using Native
The mode of application call Web application, obtains the function that used Native applications do not possess.
For example:Certain Native application possesses picture browsing function but does not possess image editing function, if the user while using
Above-mentioned Native needs to process picture during applying, then can pass through to click on pressing for above-mentioned Native application offers
Button triggers service discovery process, searches and selects suitable service side Web to apply and picture is processed, and from selected clothes
Web applications in business side obtain the picture after editor.By communication mechanism provided in an embodiment of the present invention, user can be by being used
Native applications, other Native application not only can be called, may call upon service side Web using entering to all kinds of demands
Row is processed, and passing through this mode of the used Native applications to call service side Web to apply can make full use of in network
Species is various, feature richness Web applications, and developer is when the Native that the above-mentioned user of exploitation is used is applied, it is also possible to poly-
Burnt Native is developed using the Core Feature of itself, and by way of calling other Native application and service sides Web and applying
Other application function is obtained, to reduce workload and the shortening construction cycle developed.In embodiments of the present invention, native applications refer to
Be for terminal operating system development interface and development language exploitation it is locally applied, be typically mounted at the operation of terminal
In system, the native applications of installation need to register the data type that provided service type and support are processed in an operating system
Etc. information, the service type and data type that each native applications is supported may have various, wherein, service type can be point
Enjoy, check, edit, send and dial, data type can be arbitrary MIME, Multipurpose Internet Mail
Extensions multipurpose internet mail extensions file types.
Especially, multiple native applications can be installed, with for users to use in operating system.Browser belongs to native applications
In one kind.
Service side Web applications can be the website for arbitrarily providing customizing messages or service;
Current terminal includes:Operating system and browser, browser is typically mounted in operating system, by browser
It can be found that and calling Web to apply;Operating system is generally operated in terminal, and terminal is connected with website by network.
Fig. 1 shows the structural representation of the communication system that one embodiment of the invention is provided, as shown in figure 1, the present embodiment
In communication system include terminal and server, terminal is communicated by communication network with the server of network side.Wherein, scheme
Terminal in 1 may include browser and operating system, and attended operation system requesting party's native applications and service side it is primary
Using.In addition, terminal also includes the processor not shown in Fig. 1, the processor connects browser and operating system.It is clear at this
Look at device and operating system is run in processor.
Server in Fig. 1 is applied including service side Web, and above-mentioned communication network can be wireline communication network, also may be used
Being cordless communication network.Network side only illustrates a server in Fig. 1, and in actual applications, network side can include multiple
Independent server, applies in these servers including multiple service side Web.
In the present embodiment terminal can call requesting party in service side's Web application processing terminals primary by communication network
Using service discovery request, and then solve the problems, such as in prior art that Native applications cannot call Web to apply so that use
Family during being applied using Native, can using Native application calls Web application by way of, acquisition made
The function that Native applications do not possess.
Fig. 2A shows the schematic flow sheet of the method for the application call that one embodiment of the invention is provided;With reference to Fig. 1 and Tu
Shown in 2A, the method for the application call in the present embodiment is as mentioned below.
201st, operating system receives the service discovery request that requesting party's native applications (i.e. Native applications) send, according to clothes
Business finds that request is searched and can process the service side's native applications and service side Web application of the service discovery request, and institute is presented
State the service side's native applications and service side Web applications for finding.
202nd, it is determined that user is clothes using selected application according to the service side's native applications and service side Web for presenting
When business side Web is applied, application invocation request is sent to browser, the application invocation request includes selected Web applications
Address, so that browser opens the corresponding service side in address of selected Web applications according to the address that selected Web is applied
Web is applied.
From above-described embodiment, the method for the application call of the present embodiment, Native applications in prior art are solved
The problem that Web cannot be called to apply.
For example, in current Android operation system, a kind of optional application scenarios are, the service in step 201
It was found that request may include:Service type, correspondingly, step 201 can for not shown in following figure the step of 201 ':
Operating system receives the service discovery request that requesting party's native applications send, and service discovery request includes:Service class
Not, being searched according to the service type can process the service side's native applications and service side Web application of the service discovery request,
And the service side's native applications for finding are presented and service side Web is applied.
Optionally application scenarios are another kind:Service discovery request in above-mentioned steps 201 may include:Service type sum
According to type, now step 201 can be following 201 " (not shown):
201 ", operating system receives the service discovery request that requesting party's native applications send, the service discovery request bag
Include:Service type and data type;The service of the service discovery request can be processed according to service type and data type search
Square native applications and service side Web are applied, and the service side's native applications for finding are presented and service side Web is applied.
In the third optional application scenarios, the service discovery request in above-mentioned steps 201 ' also can be further included:
Pending data, now, the step 202 may particularly include:
It is determined that user is service side using selected application according to the service side's native applications and service side Web for presenting
When Web is applied, application invocation request is sent to browser, the application invocation request includes the address of selected Web applications
With the pending data so that the ground of selected Web applications is opened in the address that browser is applied according to selected Web
The corresponding service side Web applications in location, and the pending data is activation is given at opened service side Web applications
Reason.
The method of the application call in the present embodiment, realizes the communication between native applications and Web applications, when operation system
System is received after the service discovery request that requesting party's native applications send, and operating system not only may be used during service discovery
To find out service side's native applications of the service discovery request for meeting requesting party's native applications, can also find out can process request
The service side Web applications of the service discovery request of square native applications, allow user to have more applications to select.
Certainly, in another preferred embodiment, the service discovery request in above-mentioned steps 201 may also include:Service type,
Data type and pending data, now, as shown in Figure 2 B, above-mentioned step 201 can be steps 201a:
201a, operating system receive the service discovery request that requesting party's native applications send, the service discovery request bag
Include:Service type, data type and pending data, wait to locate according to service type and data type search can be processed
Service side's native applications of the data of reason and service side Web are applied, and the service side's native applications kimonos found described in presenting
Business side Web is applied.
Correspondingly, above-mentioned step 202 can be following steps 202a:
202a, it is determined that user according to service side's native applications and service side Web of the presentation using it is selected should
During with applying for service side Web, application invocation request is sent to browser, application invocation request includes what the Web of selection was applied
Address and pending data, so that browser opens the ground of selected Web applications according to the address that selected Web is applied
The corresponding service side Web applications in location, and by service side Web applications of the pending data is activation to the opening
Reason.
In the present embodiment, above-mentioned service type can include:Share, check and edit.Data type can be to appoint
The MIME file fingerprints of meaning.
Certainly, in other embodiments, service discovery request can also include:Service type, data type and pending
Data storage mark etc..Now, it can be complex data that pending data storage identifies corresponding data, such as binary system text
Part, picture etc..
In above-mentioned steps 202 or 202a, if the application that user selects is service side's native applications, using existing
Mode is processed, and such as can directly open selected service side's native applications, further, it is also possible that the service opened
Square native applications are processed above-mentioned pending data.
It is understood that in step 202a, if that user's selection is the service side Web for registering in an operating system
Using, to browser, browser is according to upper for the address that then operating system applies service side Web and need data is activation to be processed
Corresponding service side Web applications are opened in the address for stating service side Web applications, and by above-mentioned pending data is activation to service side
Web is applied.For example, requesting party's native applications can will treat pending data is activation to operating system, operating system
The data is activation of process is to browser, so that the note in an operating system that browser selects pending data is activation to user
The service side Web applications of volume, and then the service side Web for opening applications can be caused to be processed.
By taking android system as an example, by operating system, requesting party's native applications can be made with the following method to browser
Send data:
Intent intent=new Intent (this, dest.calss);
intent.putExtra(payload);
StartActivityForResult (intent, RequestCode);
And returned by onActivityResult (int requestCode, int resultCode, Intent data)
Letter of transfer number receives the response of service side Web applications, and result data are included in data objects.
In actual applications, as shown in Figure 2 C, above-mentioned application call method also includes the steps 203.
203rd, operating system receives the result of the service side Web applications that browser sends, and by the result
It is sent to requesting party's native applications.
It should be noted that the step of above-mentioned Fig. 2A and Fig. 2 B may each comprise at this 203, the present embodiment is only for example
It is bright.Certainly, carried out after the process of related data using service side Web applications in any embodiment, be both needed to receive browser
The result of the service side Web applications sent.
In specific implementation process, after the service side's Web application process opened in a browser is completed, browser then may be used
So that result to be returned by the following method:
Intent data=new Intent ();
data.putExtra(payload);
SetResult (ResultCode, data);
The method of the application call in the present embodiment, realizes the communication between native applications and Web applications, when operation system
System is received after the service discovery request that requesting party's native applications send, and operating system not only may be used during service discovery
To find out service side's native applications of the service discovery request for meeting requesting party's native applications, can also find out can process request
The service side Web applications of the service discovery request of square native applications, allow user to have more applications to select.
Further, native applications developer can be existing on mounted native applications or network by flexibly calling
Service side Web applications realize abundant function, so as to reduce the workload of developer, shorten the construction cycle.
Fig. 3 shows the schematic flow sheet of the application call method that one embodiment of the invention is provided, as shown in figure 3, this
Application call method in bright embodiment is as described below.
301st, operating system receives the registration request of the service side Web applications that browser sends, and the registration request includes:
The information of service side Web applications.
For example, service side Web application messages include:The address of service side Web applications;Or, service side Web applications
Information include:The address of service side Web applications, and also include one or more in following information:Service side Web is applied
Service type, service side Web using handled data type, service side Web apply title and service side Web application
Icon etc..
302nd, in information editing's operating system that operating system is applied according to service side Web browser log-on message, with
Service side Web applications are made to be searched by operating system.
For example, operating system according to service discovery request when carrying out using searching, if above-mentioned service side Web should
COS in the service type carried in the log-on message of browser and data type and above-mentioned service discovery request
With data type matching, then it is believed that can process above-mentioned service discovery request, then browser is by above-mentioned service
It was found that request is responded.
Or, in a kind of possible implementation, operating system according to service discovery request carry out using search when,
If above-mentioned service side Web is applied in service type and the above-mentioned service discovery request carried in the log-on message of browser
Service type is matched, then it is believed that can process above-mentioned service discovery request, then browser will be sent out above-mentioned service
Now request is responded.
In the present embodiment, it is to be understood that the information of service side Web applications is carried in the log-on message of browser,
Such as service side's Web application address.In other embodiments, portability service side Web applications are gone back in the log-on message of browser
One or more in the address of information, such as service side Web application and following information:The service type of service side Web applications, clothes
Title that the data type and service side Web that Web applications in business side are processed is applied etc..
303rd, operating system receives the service discovery request that requesting party's native applications send, and is searched according to service discovery request
The service side's native applications and service side Web application of the service discovery request, and the service found described in presenting can be processed
Square native applications and service side Web are applied.
It should be noted that because the log-on message of browser carries the information of service side Web applications.Thus, operate
System internally including all native applications log-on message and browser log-on message Registering modules/registration table in carry out
Search, and then the service side's native applications that can process the service discovery request and service side Web applications can be searched.
Service discovery request in above-mentioned steps 303 can include service type, or can include:Service type sum
According to type, or can include:Service type and pending data, or service type, data type can be included and treated
Data of process etc., the present embodiment is not limited thereof.
Further, two or more service discovery requests that can process requesting party's native applications are being found
Application when, that is, find multiple service side's native applications and when multiple service side Web are applied, operating system can be by service side
User is presented in native applications and service side Web applications, selects for user.For example, operating system is presented a list to user, should
The service side's native applications and service side Web applications for finding are shown in list;Alternatively, the service for finding is shown in list
The icon of square native applications and the icon of service side Web applications etc., the present embodiment is not limited display content in above-mentioned list
It is fixed.
304th, it is determined that user applies selected application according to service side's native applications and service side Web of the presentation
When applying for service side Web, application invocation request is sent to browser, application invocation request includes selected Web applications
Address, so that browser opens the corresponding service side in address of selected Web applications according to the address of the Web applications for selecting
Web is applied.
Or, when the service discovery request in above-mentioned steps 303 includes pending data, the step 304 can have
Body is:
It is determined that user is clothes using selected application according to service side's native applications and service side Web of the presentation
When business side Web is applied, to browser application invocation request is sent, address that the Web of application invocation request including selection is applied and
Pending data, so that browser opens the address correspondence of selected Web applications according to the address that selected Web is applied
Service side Web application, and by the pending data is activation to the opening service side Web application processed.
Application call method in the present embodiment, solves the problems, such as that native applications find and call Web to apply so that use
Family can have more rights to choose during using native applications, such as can answer so that the suitable service side of unrestricted choice is primary
With or service side Web applications processing service discovery request, and then species in network can be made full use of various, feature richness
Service side Web is applied.
Fig. 4 shows the schematic flow sheet of the application call method that another embodiment of the present invention is provided, as shown in figure 4, this
Application call method in inventive embodiments is as mentioned below.
401st, operating system receives the registration request of the service side Web applications that the browser sends, the registration request
Including:The information of service side Web applications.
402nd, operating system is generated according to the information that the service side Web is applied and answered using corresponding Web with service side Web
With the installation file of associated program, and the installation file is performed, obtain what service side Web applications were registered in an operating system
Web association programs.
It is understood that when registering with Web association programs in an operating system, the Web applications can be run
, to open the service side Web applications by the browser, the operating system can be by the operation for associated program
Web association routine calls described in service side Web application.
In the present embodiment, if user selects Web association routine processes service discovery requests, operating system can use
Cross browser and pending data is sent to into Web association programs, for example, Web associations program can call browser to beat
Open the service side Web applications corresponding to the Web association programs, so operating system by browser by above-mentioned pending number
Apply according to service side Web is sent to.
For example, the information according to service side Web applications in step 402 is generated with the service side Web using right
The installation file of the Web association programs answered, may particularly include:
The source file of the Web associations program is generated according to the information of service side Web applications, source file is compiled
Translate, by the source file code conversion after compiling into the bytecode being able to carry out in an operating system, bytecode is packaged into into Web should
With the installation file of associated program, the installation file is performed, that what is registered in an operating system should with the service side Web
With corresponding Web associations program.
Certainly, operating system generates Web association programs according to the information dynamic that service side Web is applied in practical application
Source file, and source file is compiled, the source file after compiling is encoded translated into being able to carry out in an operating system
Bytecode, and bytecode is packaged into the installation file of the Web association programs of similar native applications program, perform the peace
Dress file, what is registered in an operating system applies corresponding Web associations program with the service side Web.
In other embodiments, the mode of above-mentioned acquisition Web association programs can be with as described below:
A) operating system receives the registration request of the service side Web applications that browser sends, and registration request includes:Service side
The information of Web applications;
Operating system sends the information that service side Web is applied to network side server so that network side server according to
The information of service side Web applications generates the installation file with service side Web using corresponding Web associations program;
And operating system receives the installation file of the Web association programs that network side server sends, performing Web should
With the installation file of associated program, that what is registered in an operating system closes with the service side Web using corresponding Web applications
Connection program.
In aforesaid way, network side server can realize that generating Web according to the information dynamic of service side Web applications answers
With the source file of associated program, and the source file is compiled, the source file after compiling is encoded translated in operation system
The bytecode being able to carry out in system, and the bytecode is packaged into into the installation file of Web association programs, perform the peace
Dress file, what is registered in an operating system applies corresponding Web associations program with the service side Web.
Realized by the way that the process for generating Web association programs is moved to into network side server from operating system, can be with letter
Change the operating process of operating system, and reduce the calculating and the requirement of storage capacity to user terminal, save mobile terminal
Power consumption.
B) operating system receives the registration request of the service side Web applications that browser sends, and registration request includes:Service side
The information of Web applications;
Operating system sends the information that service side Web is applied to network side server so that network side server according to
The information of service side Web applications generates the installation file with service side Web using corresponding Web associations program;
And operating system downloads the installation file of Web association programs from network side server, and perform download
The installation file of Web association programs, what is registered in an operating system applies corresponding Web with the service side Web
Association program.
For example, network side server can be by the download address of the installation file of the Web association programs for generating
Send to operating system, so that operating system downloads the Web association programs that network side server is generated according to download address
Installation file.
For example, desktop icons can not be shown after Web associations program is installed in an operating system, operationally
User interface can not also be shown, but can be managed by the application management function of operating system, such as delete the Web applications
Associated program etc..
403rd, operating system receives the service discovery request that requesting party's native applications send.
For example, service discovery request can include:Service type, or can include:Service type and data class
Type, or can include:Service type and pending data, or service type, data type and pending can be included
Data etc., the present embodiment is not limited thereof.
404th, the service that can process the service discovery request is searched in an operating system according to the service discovery request
Square native applications and service side Web apply corresponding Web associations program, present found service side's native applications and
Service side Web applies corresponding Web associations program.
For example, if service discovery request includes service type and data type, step 404 can be according to service
It was found that the service type and data type in request searches in an operating system the note with service type and data type matching
Volume service type and log-on data type, obtain registration service classification and the corresponding service side's native applications of log-on data type and
Web association programs, are presented found service side's native applications and Web association programs.
Correspondingly, service side's native applications and service side Web applications registers with registration in the operating system
Service type and log-on data type.
405th, it is determined that user should using corresponding Web according to service side's native applications and service side Web of the presentation
With the selected application of associated program be service side Web apply corresponding Web associations program when, operation service side Web should
With corresponding Web associations program, service side Web is using corresponding Web associations program to browser transmission application tune
With request, the application invocation request is including service side Web using the corresponding service side of corresponding Web associations program
The address of Web applications.
Thus, the browser opens the service side Web applications according to the address that the service side Web is applied.
Above-mentioned application call method, solves the problems, such as native applications for finding, calling service side Web to apply so that
User can have more rights to choose during using native applications, such as can be primary with the suitable service side of unrestricted choice
Using or service side Web applications processing the request of response, and then species in network can be made full use of various, feature richness
Service side Web is applied.
After user opens in a browser or install arbitrary service side Web applications, such as user uses Google Chrome
Browser is applied after the arbitrary service side Web applications downloaded and installed of shop from Chrome Web, or user is by arbitrary clear
After the corresponding service side Web applications of the address opening of device and arbitrary service side Web applications of looking at, browser sends to operating system and takes
The registration request of business side Web applications, with the service side Web applications of trigger action system registry, wherein, service side Web applications
Comprising the information of service side Web applications in registration request, the information of service side Web applications includes:The ground of service side Web applications
Location, can also include one or more in following information:Service type, the service side Web of service side Web applications is using residing
Data type, the title of service side Web applications, icon of service side Web applications of reason etc..
Alternatively, service side Web application be opened or installation process in, browser can provide interface allows user to select
Whether the above-mentioned service side Web of trigger action system registry is applied, if it is confirmed that user agrees to register service side Web applications,
Then browser sends the registration request of service side Web applications to operating system, and with trigger action system registry, the service side Web should
With otherwise browser terminates said process, and the registration request of service side Web applications is not sent to operating system.
Fig. 5 shows the schematic flow sheet of the application call method that one embodiment of the invention is provided, as shown in figure 5, this
Application call method in bright embodiment is as mentioned below.
501st, it is service side to apply selected application according to the service side's native applications and service side Web that present in user
When Web is using with the service discovery request for processing the transmission of requesting party's native applications, browser receives the application that operating system sends
Call request, application invocation request includes:The address of selected Web applications.
502nd, browser opens the corresponding service in address of the Web applications of selection according to the address that selected Web is applied
Square Web applications.
Alternatively, application invocation request may also include:The address of Web applications and pending data, it is pending at this
Data can be pending data in the service discovery request that send to operating system of requesting party's native applications.
Correspondingly, the step of above-mentioned step 502 can be not shown in below figure 502 ':
502 ', browser opens the service side Web applications according to the address that service side Web is applied, and waits to locate by above-mentioned
Reason data is activation is applied to the service side Web, so that service side Web applications process the pending data.
Preferably, as shown in fig. 6, before step 501, the application call method in the present embodiment also includes following step
Rapid 500:
500th, browser sends the registration request of service side Web applications to operating system, and the registration of service side Web applications please
Ask including:The information of service side Web applications, so that in the mutually breath edit operation system applied according to service side Web of operating system
Browser log-on message, or according to service side Web application information generate can be installed in the operating system
Web association programs.
In another kind of implement scene, above-mentioned application call method also include following figure not shown in the step of 503:
503rd, browser obtains the result of the service side Web applications, and result is sent and operating system,
Specifically, result is sent to by above-mentioned requesting party's native applications by the operating system.
Above-mentioned application call method, the application invocation request for opening service side Web applications is received by browser, is solved
Native applications are used to finding, call the problem that service side Web applies so that user, can be with during using native applications
There are more rights to choose, as response can be processed with the suitable service side's native applications of unrestricted choice or service side Web applications
Request, and then can make full use of that species in network is various, service side Web of feature richness application.
Fig. 7 shows the structural representation of the operating system that one embodiment of the invention is provided, as shown in fig. 7, the present invention is real
The operating system 12 applied in example includes:Native applications calling module 122, wherein, native applications calling module, specifically for receiving
The service discovery request that requesting party's native applications 13 send, being searched according to service discovery request can process the service discovery request
Service side's native applications 14 and service side Web apply 21, and the service side's native applications 14 and service side Web for finding are presented
Using 21;
The native applications calling module 122 is it is determined that service side native applications and service side of the user according to the presentation
When Web is applied using selected application for service side Web, application invocation request is sent to browser, the application call please
The address including selected Web applications is asked, so that the browser is according to selected by the address that selected Web is applied is opened
Web applications the corresponding Web in address applications.
In a kind of application scenarios, above-mentioned service discovery request may include service type, and now, native applications call mould
Block 122 can be specifically for receiving the service discovery request that requesting party's native applications send, according in the service discovery request
Service type is searched can process the service side's native applications and service side Web application of the service discovery request, and be presented described
The service side's native applications for finding and service side Web are applied, and it is determined that user is primary according to the service side of the presentation
When application and service side Web is applied using selected application for service side Web, to browser application invocation request, institute are sent
Address of the application invocation request including selected Web applications is stated, so that the ground that the browser is applied according to selected Web
Open the corresponding Web applications in address of selected Web applications in location.
In another kind of application scenarios, above-mentioned service discovery request may include service type and data type, now, former
Raw application invocation module 122 can be specifically for receiving the service discovery request that requesting party's native applications send, according to the service
It was found that service type and data type search described in request can process service side's native applications of the service discovery request and
Service side Web is applied, and the service side's native applications for finding is presented and service side Web is applied, and it is determined that user
When being applied for service side Web using selected application according to service side's native applications and service side Web of the presentation, Xiang Liu
Device of looking at sends application invocation request, and the application invocation request includes the address of selected Web applications, so that the browser
According to the corresponding Web applications in address that selected Web applications are opened in the address of selected Web applications
In the third application scenarios, service discovery request can be further included:Pending data, it is now, primary to answer
With calling module 122 specifically for:
The service discovery request that requesting party's native applications 13 send is received, searching according to service discovery request can process this
Service side's native applications 14 of service discovery request and service side Web are applied, and the service side's native applications 14 for finding are presented
With service side Web applications;
It is determined that user is service using selected application according to the service side's native applications 14 and service side Web for presenting
When square Web is applied, application invocation request is sent to browser 11, application invocation request includes the address of selected Web applications
With the pending data so that selected Web applications are opened in the address that the browser is applied according to selected Web
The corresponding Web in address applications, and the pending data is activation is processed to opened service side Web applications.
It should be noted that in the third application scenarios, service discovery request can include:Service type and pending
Data, or, service discovery request can include service type, data type and pending data etc..
By taking Android operation system as an example, the service discovery request that native applications calling module is received includes:Service class
Not, data type and pending data, then native applications calling module specifically for:
Receive the service discovery request that requesting party's native applications 13 send, the service class in the service discovery request
Other and data type search can process the service side's native applications and service side Web application of the pending data, and be in
The service side's native applications 14 for now finding and service side Web are applied;
The native applications calling module is it is determined that user should according to the service side's native applications 14 and service side Web for presenting
When with selected application being that service side Web is applied, to browser 11 application invocation request, the application invocation request bag are sent
The address of selected Web applications and the pending data are included, so that what the browser was applied according to selected Web
The corresponding service side Web applications in address of selected Web applications are opened in address, and by the pending data is activation to institute
The service side Web applications of opening are processed.
Certainly, the native applications calling module 122 in practical application is additionally operable to receive the service side Web that browser 11 sends
Using result.
For example, native applications calling module 122 is used to provide user interface, and showing to user can be used as service side
Native applications and service side Web application list of application, in list can include each application Apply Names, application address,
Application icon etc..
Correspondingly, the selection result of the receive user of native applications calling module 122, such as service side's native applications, according to
The address of the application that family selects, opens corresponding service side's native applications 14, and will be pending from service discovery request
Data is activation is to service side's native applications 14.
If what user selected is the service side Web applications registered in an operating system, native applications calling module 122
The address and pending data that service side Web is applied is sent to browser 11 by operating system 12.
By taking android system as an example, by native applications calling module 122, requesting party's native applications can use as follows
Method to browser or other service side's native applications send data:
Intent intent=new Intent (this, dest.calss);
intent.putExtra(payload);
StartActivityForResult (intent, RequestCode);
And returned by onActivityResult (int requestCode, int resultCode, Intent data)
Letter of transfer number receives response, and result data are included in data objects.Browser or other service side's native applications then can be with
Result is returned by the following method:
Intent data=new Intent ();
data.putExtra(payload);
SetResult (ResultCode, data);
Operating system in the present embodiment is sent out by the service that native applications calling module 122 receives requesting party's native applications
Now ask, and then search service side's native applications and service side Web applications, solve native applications for finding, calling service
The problem of square Web applications so that user can have more rights to choose during using native applications, such as can be free
Select suitable service side's native applications or service side Web applications to process the request of response, and then network can be made full use of
Middle species is various, feature richness service side Web applications.
In another optional embodiment, as shown in figure 8, the operating system in the present embodiment further includes that Web is applied
Registering modules 121, the Web applications Registering modules 121 are used to receive the registration of the service side Web applications of the transmission of browser 11 please
Ask, the registration request includes:The information of service side Web applications;
Browser 11 in information editing's operating system that the Web applications Registering modules 121 are applied according to service side Web
Log-on message, so as to carry the part/full detail of service side Web applications in the log-on message of the browser 11, and then takes
Web applications in business side can be searched by the operating system.
The information of above-mentioned service side Web applications includes:The address of service side Web applications;Or, service side Web applications
Information include:The address of service side Web applications, also including one or more in following information:
The service type of service side Web applications, service side Web are applied using handled data type, service side Web
Title etc..
That is, Web applications Registering modules 121 according to receive service side Web application address, service type and
Data type enters Mobile state modification to the log-on message of browser 11, makes to carry service side Web in the log-on message of browser 11
Using service type, or service type and data type, and then can respond what above-mentioned requesting party's native applications were sent
Service discovery request.
In Another Application scene, Web applications Registering modules 121 are further used for receiving the service that the browser sends
The registration request of square Web applications, registration request includes:The information (such as the address of service side Web applications) of service side Web applications;
The installation with service side Web using corresponding Web associations program is generated according to the information of service side Web applications
File, and the installation file is performed, obtain the Web associations program 15 that service side Web applications are registered in an operating system
(as shown in figure 12).
Specifically, above-mentioned Web applications Registering modules 121 are generated specifically for the information applied according to the service side Web
The source file of the Web associations program, is compiled to the source file, by the source file code conversion after compiling into
The bytecode being able to carry out in the operating system, by the bytecode installation file of Web association programs is packaged into, and is held
The row installation file, what is registered in an operating system applies corresponding Web associations journey with the service side Web
Sequence;
Preferably, the source file of Web association programs is generated according to the information dynamic of Web applications, and source file is entered
Row compiling, the source file after compiling is encoded translated into the bytecode being able to carry out in an operating system, and bytecode is packed
Into the installation file of web application, the installation file is performed, it is being registered in an operating system with the service side
Web applies corresponding Web associations program.
In the present embodiment, Web applications Registering modules 121 are a parts for operating system, the Web application Registering modules
121 according to service type, data type, application address, application icon of service side Web applications for receiving etc., and dynamic is generated
All kinds of source files of Web association programs, and engineering is compiled by the translation and compiling environment for carrying, by the Web after compiling
Association program changes into the bytecode that can be performed in an operating system, and bytecode is packaged into into Web association programs
Installation file.
Now, native applications calling module 122 specifically for:
The service discovery request that requesting party's native applications send is received, according to the service discovery request in the operation system
Searching in system can process service side's native applications and the service side Web of the service discovery request and answer using corresponding Web
Use associated program;
Wherein, the found service side's native applications of presentation and the service side Web apply corresponding Web associations
Program;
The native applications calling module 122 is it is determined that user is according to service side's native applications and the clothes of the presentation
Business side Web is that the service side Web is applied using corresponding Web using the selected application of corresponding Web associations program
During associated program, run the service side Web and apply corresponding Web associations program, the service side Web is using corresponding
Web associations program to browser sends the application invocation request, and the application invocation request includes the service side Web
Using the address of the corresponding service side Web applications of corresponding Web associations program.
Above-mentioned service discovery request can include service type, or service type and data type, or service type
With pending data, or service type, data type and pending data etc., the present embodiment is not limited thereof.
In other embodiments, above-mentioned Web applications Registering modules 121 are additionally operable to receive the service that the browser sends
The registration request of square Web applications, registration request includes:The information of service side Web applications;
The Web applications Registering modules 121 send the information that service side Web is applied to network side server, so that net
Network side server generates the peace with service side Web using corresponding Web associations program according to the information that service side Web is applied
Dress file;
The Web applications Registering modules 121 receive the Web associations program that the network side server sends
Installation file, performs the installation file of the Web associations program, the Web associations registered in an operating system
Program;Or, the operating system downloads the installation file of the Web associations program from the network side server, holds
The installation file of the Web association programs of the row download, the Web association programs registered in an operating system.
Or, above-mentioned Web applications Registering modules 121 are additionally operable to receive the note of the service side Web applications that browser sends
Volume request, registration request includes:The information of service side Web applications;
The Web applications Registering modules 121 send the information that service side Web is applied to network side server, so that net
Network side server generates the peace with service side Web using corresponding Web associations program according to the information that service side Web is applied
Dress file;
The Web applications Registering modules 121 receive the Web associations program that the network side server sends
Installation file, performs the installation file, obtains service side Web and applies using register in an operating system and service side Web
Corresponding Web associations program;Or, the Web applications Registering modules 121 are downloaded described from the network side server
The installation file of Web association programs, and the installation file of the Web association programs of the download is installed, serviced
What square Web applications were registered in an operating system applies corresponding Web associations program 15 with service side Web, as shown in figure 12.
In this scenario, with all kinds of source files of Web associations program 15 corresponding (as shown in figure 12) generation, volume
Translate, executable program conversion and packing are carried out on network side server.
Aforesaid way can make operating system 12 need not be provided generation, compiling, the executable program conversion of all kinds of source files
With packing etc. function and environment, reduce in terminal calculate and storage resource occupancy, particularly for mobile terminal, can
To save energy.
Operating system in the present embodiment makes service side Web applications in an operating system by Web applications Registering modules 121
Registered, and then native applications calling module 122 receives the service discovery request of requesting party's native applications, and search service side
Native applications and service side Web are applied, and solve the problems, such as native applications for finding, calling service side Web to apply so that use
Family can have more rights to choose during using native applications, such as can answer so that the suitable service side of unrestricted choice is primary
With or service side Web applications processing the request of response, and then can make full use of that species in network is various, feature richness clothes
Business side Web is applied.
In another kind of application scenarios, Web applications Registering modules itself are installation native applications in an operating system,
Now, Web applications Registering modules can have needs higher System Privileges, to realize the life of the installation file of web application
Into, signature and pack.Or this possesses the life of the installation file of web application naturally using a system application itself is
Into, signature and pack required for authority.The advantage of above-described embodiment can be to simplify change to operating system, reduces and is
System realizes the dependency to operating system.
Fig. 9 shows the structural representation of the browser in one embodiment of the invention, as shown in figure 9, in the present embodiment
Browser includes:Web application invocation modules 112, for being answered according to the service side's native applications and service side Web that present in user
It is that Web in service side Web applications please using the service discovery sent with processing requesting party native applications with selected application
When asking, the application invocation request that operating system sends is received, the application invocation request includes:The ground of selected Web applications
Location;According to the corresponding service side Web applications in address that selected Web applications are opened in the address of selected Web applications.
In Android operation system, above-mentioned application invocation request may include the address of service side Web applications and wait to locate
The data of reason, now, Web application invocation modules 112 open the ground of service side Web applications according to the address that service side Web is applied
The corresponding service side Web applications in location, so that service side Web applications process above-mentioned data, and the pending data are sent out
Give opened service side Web applications to be processed.
It is understood that the Web application invocation modules 112 in Fig. 9 receive the clothes that native applications calling module 122 sends
The address of business side Web applications and pending data, opening corresponding service side Web according to the address of service side Web applications should
With, and pending data is activation is applied to above-mentioned service side Web, and the result to above-mentioned data is obtained, then adopt
As described before method, such as returns to requesting party's native applications by setResult () method by result.
By the above-mentioned communication mode between native applications calling module 122 and Web application invocation modules 112, it is possible to achieve
Web applies the complex data interaction and native applications between, and then realizes both Deep integratings, and native applications developer can lead to
Cross and flexibly call already present Web applications on mounted native applications or network to realize abundant function, so as to reduce exploitation
The workload of person, shortens the construction cycle.On the other hand, it is also possible to keep consistent with the data interactive mode of existing operating system
Property.
Further, as shown in Figure 10, the browser in the present embodiment also includes:Module 111 is installed in Web applications, is used for
The registration request of service side Web applications is sent to operating system, the registration request includes:The information of service side Web applications, institute
State institute in the Web applications Registering modules operating system according to the information editing that the service side Web is applied in operating system
The log-on message of browser is stated, so that service side Web applications can be searched by the operating system.
Or, the browser in the present embodiment also includes:Module 111 is installed in Web applications, is taken for sending to operating system
The registration request of business side Web applications, the registration request includes:The information of service side Web applications, the Web in operating system should
Generated according to the information that the service side Web is applied with Registering modules and apply corresponding Web associations with the service side Web
The installation file of program, and the installation file is performed, the Web associations program 15 registered in an operating system is (such as
Shown in Figure 12).
That is, the Web applications Registering modules 121 of operating system install module 111 from the Web applications of browser receiving
Address of service type, data type and service side Web applications of installed service side Web applications etc., and according to above-mentioned parameter
The installation file with the service side Web using corresponding Web associations program is generated and installed with data dynamic, is performed described
Installation file, obtains the Web association programs that service side Web applications are registered in an operating system.
For example, Web associations program 15 can not show desktop icons after installing, and operationally can not also show
Show user interface, but can be managed by the application management function of operating system, such as delete the Web association programs
Deng.
By taking android system as an example, the Web associations program 15 generated by Web applications Registering modules 121 should be included
AndroidManifest.xml statement files, and service type of the statement wherein comprising corresponding with service side Web application supports,
The isoparametric radio receiver of data type, is exemplified below:
The Web associations program for stating above-mentioned radio receiver will be primary to the requesting party of broadcasting mpeg formatted musics
Using service discovery request respond, after Web association programs are triggered, then can in the following way to correspondence
Web application send data:
Uri uri=Uri.parse (" http://www.url-shorter.com/serviceUrl=*** ");
Intent intent=new Intent (Intent.ACTION_VIEW, uri);
startActivity(intent);
In the present embodiment, if necessary to the transmission complex data content such as picture or binary file, then Web can be passed through
Association program 15 to the storage of Web application transmission data objects is identified, such as contact name, and Web applications webpage can lead to
Cross the modes such as the Device API or File API of HTML5 and obtain specific data content.
It is to be not required to dynamically change the log-on message of browser in operating system using the benefit of the present embodiment, can
To simplify the change to operation system function.
According to a further aspect in the invention, the present invention also provides a kind of terminal, wherein, including any of the above-described described operation
System and any of the above-described described browser, operating system and the browser communicate.
Preferably, Figure 11 and Figure 12 are shown respectively a kind of structural representation of terminal, and the terminal in Figure 12 and Figure 12 is wrapped
Include:Browser 11, operating system 12, and requesting party's native applications 13, service side's native applications 14 of attended operation system 12;
Requesting party's native applications 13 and service side's native applications 14 in the present embodiment are the applications after registration in an operating system.
Unlike Figure 11 and Figure 12, the Web associations program 15 registered in operating system is additionally included in Figure 11, this
When the Web associations program and native applications (requesting party's native applications, service side's native applications) registered in an operating system
It is consistent.
It should be noted that in fig. 11, service side Web applications log-on message in an operating system is to carry browsing
In the log-on message of device.
In Figure 11 and Figure 12, the service side Web applications registered in an operating system can be by the registration table of operating system
Search.
Thus, above-mentioned terminal can realize the purpose that Native application calls Web are applied.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above only to illustrate technical scheme, rather than a limitation;To the greatest extent
Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to
So the technical scheme described in foregoing embodiments can be modified, either which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, do not make the essence disengaging various embodiments of the present invention technology of appropriate technical solution
The scope of scheme.
Claims (25)
1. a kind of method of application call, it is characterised in that include:
Operating system receives the service discovery request that requesting party's native applications send, and being searched according to the service discovery request can
The service side's native applications and service side Web application of the service discovery request is processed, and the service side found described in presenting is former
Raw application and service side Web applications;
It is determined that user is service side using selected application according to service side's native applications and service side Web of the presentation
When Web is applied, application invocation request is sent to browser, the application invocation request includes the address of selected Web applications,
So that the browser opens the corresponding service side in address of selected Web applications according to the address that selected Web is applied
Web is applied.
2. method according to claim 1, it is characterised in that the service discovery request includes:Service type;
It is described that service side's native applications and the service that can process the service discovery request is searched according to the service discovery request
Square Web applications, specifically include:
Should according to the service side's native applications and service side Web that service type lookup can process the service discovery request
With.
3. method according to claim 1, it is characterised in that the service discovery request includes:Service type and data
Type;
It is described that service side's native applications and the service that can process the service discovery request is searched according to the service discovery request
Square Web applications, specifically include:
Service side's native applications kimonos of the service discovery request can be processed according to the service type and data type search
Business side Web is applied.
4. method according to claim 2, it is characterised in that the service discovery request is further included:Pending
Data;
Wherein, the application invocation request includes the address of selected Web applications, so that the browser is according to selected
The corresponding service side Web applications in address of selected Web applications are opened in the address of Web applications, specifically include:
The application invocation request includes the address of selected Web applications and the pending data, so that described browse
Device is applied according to the corresponding service side Web in address that selected Web applications are opened in the address that selected Web is applied, and will
The pending data is activation is processed to opened service side Web applications.
5. method according to claim 1, it is characterised in that the service discovery request includes:Service type, data class
Type and pending data;
It is described that service side's native applications and the service that can process the service discovery request is searched according to the service discovery request
Square Web applications, specifically include:
According to the service type and data type search can process the pending data service side's native applications and
Service side Web is applied;
Wherein, the application invocation request includes the address of selected Web applications, so that the browser is according to selected
The corresponding service side Web applications in address of selected Web applications are opened in the address of Web applications, specifically include:
The application invocation request includes the address of selected Web applications and the pending data, so that described browse
Device is applied according to the corresponding service side Web in address that selected Web applications are opened in the address that selected Web is applied, and will
The pending data is activation is processed to opened service side Web applications.
6. according to the arbitrary described method of claim 1 to 5, it is characterised in that the operating system reception requesting party is primary should
Before with the service discovery request for sending, further include:
The operating system receives the registration request of the service side Web applications that the browser sends, and the registration request includes:
The information of service side Web applications;
The registration of operating system browser described in operating system according to the information editing that the service side Web is applied
Information, so that service side Web applications can be searched by the operating system.
7. according to the arbitrary described method of claim 1 or 5, it is characterised in that the operating system reception requesting party is primary should
Before with the service discovery request for sending, further include:
The operating system receives the registration request of the service side Web applications that the browser sends, and the registration request includes:
The information of service side Web applications;
The operating system is generated according to the information that the service side Web is applied should using corresponding Web with the service side Web
With the installation file of associated program, and the installation file is performed, the Web association journeys registered in an operating system
Sequence.
8. method according to claim 7, it is characterised in that described lookup according to the service discovery request can be processed
Service side's native applications of the service discovery request and service side Web are applied, and are specifically included:
Being searched in the operating system according to the service discovery request can process service side's original of the service discovery request
Raw application and the service side Web apply corresponding Web associations program;
Wherein, the found service side's native applications of presentation and service side Web applications, specifically include:What presentation was found
Service side's native applications and the service side Web apply corresponding Web associations program;
Wherein, it is determined that user is using selected application according to service side's native applications and service side Web of the presentation
When service side Web is applied, application invocation request is sent to browser, the application invocation request is applied including selected Web
Address, specifically include:It is determined that user is corresponding according to service side's native applications and the service side Web application of the presentation
The selected application of Web association programs be the service side Web apply corresponding Web associations program when, operation
The service side Web applies corresponding Web associations program, the service side Web to apply corresponding Web associations program
The application invocation request is sent to browser, the application invocation request includes that the service side Web should using corresponding Web
With the address of the corresponding service side Web applications of associated program.
9. method according to claim 7, it is characterised in that the operating system is applied according to the service side Web
Information generates the installation file with the service side Web using corresponding Web associations program, including:
The source file of the Web associations program is generated according to the information of service side Web applications, the source file is entered
Row compiling, by the source file code conversion after compiling into the bytecode being able to carry out in the operating system, by the byte
Code is packaged into the installation file of Web association programs, performs the installation file, registered in an operating system with institute
Service side Web is stated using corresponding Web associations program.
10. according to the arbitrary described method of claim 1 to 5, it is characterised in that the operating system reception requesting party is primary should
Before with the service discovery request for sending, further include:
The operating system receives the registration request of the service side Web applications that the browser sends, and the registration request includes:
The information of service side Web applications;
The operating system sends the information that the service side Web is applied to network side server, so that network side clothes
Business device is generated with the service side Web using corresponding Web associations program according to the information that the service side Web is applied
Installation file;
The operating system receives the installation file of the Web associations program that the network side server sends, and performs
The installation file of the Web associations program, the Web association programs registered in an operating system;Or, it is described
Operating system downloads the installation file of the Web associations program from the network side server, performs the Web of the download
The installation file of association program, the Web association programs registered in an operating system.
11. methods according to claim 10, it is characterised in that described lookup according to the service discovery request can be located
The service side's native applications and service side Web application of the service discovery request is managed, is specifically included:
Being searched in the operating system according to the service discovery request can process service side's original of the service discovery request
Raw application and the service side Web apply corresponding Web associations program;
Wherein, the found service side's native applications of presentation and service side Web applications, specifically include:What presentation was found
Service side's native applications and the service side Web apply corresponding Web associations program;
Wherein, it is determined that user is using selected application according to service side's native applications and service side Web of the presentation
When service side Web is applied, application invocation request is sent to browser, the application invocation request is applied including selected Web
Address, specifically include:It is determined that user is corresponding according to service side's native applications and the service side Web application of the presentation
The selected application of Web association programs be the service side Web apply corresponding Web associations program when, operation
The service side Web applies corresponding Web associations program, the service side Web to apply corresponding Web associations program
The application invocation request is sent to browser, the application invocation request includes that the service side Web should using corresponding Web
With the address of the corresponding service side Web applications of associated program.
12. a kind of operating systems, it is characterised in that include:
Native applications calling module, for receiving the service discovery request of requesting party's native applications transmission, sends out according to the service
Now request is searched can process the service side's native applications and service side Web application of the service discovery request, and look into described in presenting
The service side's native applications for finding and service side Web are applied;
It is determined that user is service side using selected application according to service side's native applications and service side Web of the presentation
When Web is applied, application invocation request is sent to browser, the application invocation request includes the address of selected Web applications,
So that the browser should according to the corresponding Web in address that selected Web applications are opened in the address that selected Web is applied
With.
13. operating systems according to claim 12, it is characterised in that the service discovery request includes:Service type;
The native applications calling module is further used for:
The service discovery request that requesting party's native applications send is received, the service type in the service discovery request is searched
The service side's native applications and service side Web application of the service discovery request, and the service found described in presenting can be processed
Square native applications and service side Web are applied.
14. operating systems according to claim 12, it is characterised in that the service discovery request includes:Service type
During with data type,
The native applications calling module is further used for:
Receive the service discovery request that requesting party native applications send, according to service type described in the service discovery request and
Data type is searched can process the service side's native applications and service side Web application of the service discovery request, and be presented described
The service side's native applications for finding and service side Web are applied.
15. operating systems according to claim 13, it is characterised in that the service discovery request is further included:Treat
The data of process, the native applications calling module is further used for:
It is determined that user is service side using selected application according to service side's native applications and service side Web of the presentation
When Web is applied, application invocation request is sent to browser, the application invocation request includes the address of selected Web applications
With the pending data so that selected Web applications are opened in the address that the browser is applied according to selected Web
The corresponding service side Web in address applications, and the pending data is activation is carried out to opened service side Web applications
Process.
16. operating systems according to claim 12, it is characterised in that the service discovery request includes:Service type,
Data type and pending data;
The native applications calling module is further used for:
According to the service type and data type search can process the pending data service side's native applications and
Service side Web is applied, and the service side's native applications for finding is presented and service side Web is applied;
It is determined that user is service side using selected application according to service side's native applications and service side Web of the presentation
When Web is applied, application invocation request is sent to browser, the application invocation request includes the address of selected Web applications
With the pending data so that selected Web applications are opened in the address that the browser is applied according to selected Web
The corresponding service side Web in address applications, and the pending data is activation is carried out to opened service side Web applications
Process.
17. according to the arbitrary described operating system of claim 12 to 16, it is characterised in that further includes:
Web application Registering modules, for receiving the registration request of the service side Web applications that the browser sends, the registration
Request includes:The information of service side Web applications;
Browser described in information editing's operating system that the Web applications Registering modules are applied according to the service side Web
Log-on message, so that service side Web applications can be searched by the operating system.
18. according to the arbitrary described operating system of claim 12 to 16, it is characterised in that further includes:
Web application Registering modules, for receiving the registration request of the service side Web applications that the browser sends, the registration
Request includes:The information of service side Web applications;
The Web applications Registering modules generate corresponding with service side Web applications according to the information that the service side Web is applied
Web association programs installation file, and perform the installation file, obtain service side Web applications in an operating system
The Web association programs of registration.
19. operating systems according to claim 18, it is characterised in that the native applications calling module, further use
In:
Being searched in the operating system according to the service discovery request can process service side's original of the service discovery request
Raw application and the service side Web apply corresponding Web associations program;
Wherein, the found service side's native applications of presentation and the service side Web apply corresponding Web associations journey
Sequence;
The native applications calling module is it is determined that user is according to service side's native applications and the service side Web of the presentation
It is that the service side Web applies corresponding Web associations program using the selected application of corresponding Web associations program
When, run the service side Web and apply corresponding Web associations program, the service side Web to apply using corresponding Web
Associated program to browser sends the application invocation request, and the application invocation request includes the service side Web using right
The address of the corresponding service side Web applications of Web association programs answered.
20. operating systems according to claim 18, it is characterised in that the Web applications Registering modules, further use
In:
The source file of the Web associations program is generated according to the information of service side Web applications, the source file is entered
Row compiling, by the source file code conversion after compiling into the bytecode being able to carry out in the operating system, by the byte
Code is packaged into the installation file of Web association programs, performs the installation file, registered in an operating system with institute
Service side Web is stated using corresponding Web associations program.
21. according to the arbitrary described operating system of claim 12 to 16, it is characterised in that
Web application Registering modules, for receiving the registration request of the service side Web applications that the browser sends, the registration
Request includes:The information of service side Web applications;
The Web applications Registering modules send the information that the service side Web is applied to network side server, so that the net
Network side server is generated according to the information that the service side Web is applied and applies corresponding Web associations with the service side Web
The installation file of program;
The Web applications Registering modules receive the installation text of the Web associations program that the network side server sends
Part, performs the installation file of the Web associations program, the Web association programs registered in an operating system;Or
Person, the Web applications Registering modules download the installation file of the Web associations program from the network side server, hold
The installation file of the Web association programs of the row download, the Web association programs registered in an operating system.
22. operating systems according to claim 21, it is characterised in that the native applications calling module, further use
In:
Being searched in the operating system according to the service discovery request can process service side's original of the service discovery request
Raw application and the service side Web apply corresponding Web associations program;
Wherein, the found service side's native applications of presentation and the service side Web apply corresponding Web associations journey
Sequence;
The native applications calling module is it is determined that user is according to service side's native applications and the service side Web of the presentation
It is that the service side Web applies corresponding Web associations program using the selected application of corresponding Web associations program
When, run the service side Web and apply corresponding Web associations program, the service side Web to apply using corresponding Web
Associated program to browser sends the application invocation request, and the application invocation request includes the service side Web using right
The address of the corresponding service side Web applications of Web association programs answered.
23. a kind of browsers, it is characterised in that include:
Web application invocation modules, for applying selected according to the service side's native applications and service side Web that present in user
During using processing the service discovery request that requesting party's native applications send for service side Web applications, receive what operating system sent
Application invocation request, the application invocation request includes:The address of selected Web applications;
The Web application invocation modules open the address correspondence of selected Web applications according to the address that selected Web is applied
Service side Web application.
24. browsers according to claim 23, it is characterised in that also include:
Module is installed in Web applications, for sending the registration request of service side Web applications, the registration request bag to operating system
Include:The information of service side Web applications, so that the operating system is grasped according to the information editing that the service side Web is applied
Make the log-on message of the browser in system, or the operation can be installed on according to Web application messages generation
Web association programs in system.
25. a kind of terminals, it is characterised in that including the arbitrary described operating system of as above claim 12 to 22 and as above right
23 to 24 arbitrary described browsers are required, the operating system and the browser communicate.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/081600 WO2014043864A1 (en) | 2012-09-19 | 2012-09-19 | Application invocation method, operating system and browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103917951A CN103917951A (en) | 2014-07-09 |
CN103917951B true CN103917951B (en) | 2017-04-19 |
Family
ID=50340526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201280001733.6A Active CN103917951B (en) | 2012-09-19 | 2012-09-19 | Application invocation method, operating system and browser |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103917951B (en) |
WO (1) | WO2014043864A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105988846B (en) * | 2015-03-03 | 2019-11-05 | 腾讯科技(深圳)有限公司 | Page loading method and page loading device |
CN106470276B (en) * | 2016-08-23 | 2019-06-28 | 努比亚技术有限公司 | A kind of system that realizing data interaction, method and device |
CN111309399A (en) * | 2020-02-26 | 2020-06-19 | 北京思特奇信息技术股份有限公司 | Method, system, medium and device for starting easy-to-ask native client |
CN115017436B (en) * | 2022-08-05 | 2023-01-10 | 太平金融科技服务(上海)有限公司深圳分公司 | Data interaction method and device of application program, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716251A (en) * | 2004-06-07 | 2006-01-04 | 国际商业机器公司 | Method and apparatus for accessing web services |
CN101490656A (en) * | 2005-04-15 | 2009-07-22 | 微软公司 | Registration of applications and complimentary features for interactive user interfaces |
CN101488143A (en) * | 2008-01-16 | 2009-07-22 | 重庆安软信息科技有限公司 | Novel web application and local application interaction mode |
CN101663647A (en) * | 2007-04-25 | 2010-03-03 | 高通股份有限公司 | Device that determines whether to launch an application locally or remotely as a webapp |
CN102622211A (en) * | 2011-01-27 | 2012-08-01 | 腾讯科技(深圳)有限公司 | Method for application development and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7711832B1 (en) * | 2003-09-22 | 2010-05-04 | Actional Corporation | Enabling existing desktop applications to access web services through the use of a web service proxy |
US20090228779A1 (en) * | 2008-03-04 | 2009-09-10 | Richard John Williamson | Use of remote services by a local wireless electronic device |
-
2012
- 2012-09-19 WO PCT/CN2012/081600 patent/WO2014043864A1/en active Application Filing
- 2012-09-19 CN CN201280001733.6A patent/CN103917951B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716251A (en) * | 2004-06-07 | 2006-01-04 | 国际商业机器公司 | Method and apparatus for accessing web services |
CN101490656A (en) * | 2005-04-15 | 2009-07-22 | 微软公司 | Registration of applications and complimentary features for interactive user interfaces |
CN101663647A (en) * | 2007-04-25 | 2010-03-03 | 高通股份有限公司 | Device that determines whether to launch an application locally or remotely as a webapp |
CN101488143A (en) * | 2008-01-16 | 2009-07-22 | 重庆安软信息科技有限公司 | Novel web application and local application interaction mode |
CN102622211A (en) * | 2011-01-27 | 2012-08-01 | 腾讯科技(深圳)有限公司 | Method for application development and device |
Also Published As
Publication number | Publication date |
---|---|
WO2014043864A1 (en) | 2014-03-27 |
CN103917951A (en) | 2014-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8396939B2 (en) | Content distribution management device, terminal, program, and content distribution system | |
CN109542427B (en) | System customization method and device, electronic equipment and storage medium | |
US20050192984A1 (en) | System and method for building mixed mode execution environment for component applications | |
CN102752369B (en) | The supplying method of TV applications service and virtual content service platform | |
US6920410B2 (en) | Systems and methods for testing a network service | |
CA2641052A1 (en) | System and method for extending a component-based application platform with custom services | |
CN102939579A (en) | Method and apparatus for binding user interface elements and granular reflective processing | |
US9232340B2 (en) | Application store system and application development method using the application store system | |
CN109240697B (en) | Call processing method and device and storage medium | |
CN111930382B (en) | Application page access method, device and equipment | |
CN108491188B (en) | The exploitative management method and device of voice dialogue product | |
US8387039B2 (en) | System and method for customized provisioning of application content | |
CN108415710A (en) | The method and system of API is issued, called in Intelligent dialogue development platform | |
CN103917951B (en) | Application invocation method, operating system and browser | |
CN102629194B (en) | Novel application store adaptor facing mobile terminals | |
US20230205503A1 (en) | Method for dynamically integrating application programs, and software system and machine using the same | |
EP2823411A1 (en) | A method and system of application development for multiple device client platforms | |
US11882154B2 (en) | Template representation of security resources | |
CN111367685B (en) | Interface calling method and device, computer equipment and storage medium | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
US9164817B2 (en) | Mobile communication terminal to provide widget expansion function using message communication, and operation method of the mobile communication terminal | |
Iyer et al. | Extending android application programming framework for seamless cloud integration | |
WO2023083071A1 (en) | View interaction method and apparatus, electronic device, and computer readable medium | |
CN115061785A (en) | Information issuing method and device, storage medium and server | |
KR100764472B1 (en) | Method for processing of url in mobile communication terminal and mobile communication terminal for the same |
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 |