CN104346228A - Application program sharing method and terminal - Google Patents

Application program sharing method and terminal Download PDF

Info

Publication number
CN104346228A
CN104346228A CN201310319540.1A CN201310319540A CN104346228A CN 104346228 A CN104346228 A CN 104346228A CN 201310319540 A CN201310319540 A CN 201310319540A CN 104346228 A CN104346228 A CN 104346228A
Authority
CN
China
Prior art keywords
browser
application program
chosen application
network
chosen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310319540.1A
Other languages
Chinese (zh)
Other versions
CN104346228B (en
Inventor
吕小强
郜文美
范姝男
王雅辉
井皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Huawei Device Shenzhen Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201310319540.1A priority Critical patent/CN104346228B/en
Publication of CN104346228A publication Critical patent/CN104346228A/en
Application granted granted Critical
Publication of CN104346228B publication Critical patent/CN104346228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to an application program sharing method and a terminal. The method includes the steps: determining at least one second browser mounted on the terminal when a triggering instruction of a network intention is received by a first browser; transmitting a first request for requesting application programs to the started second browsers by the first browser; receiving the application programs returned by the second browsers according to the first request by the first browser; integrating an application program registered by the first browser and the application programs returned by the second browsers, and then presenting the integrated application programs to a user; processing the network intention by the aid of the selected application program when one of the application programs returned by the second browsers is selected by the first browser. By the application program sharing method and the terminal, the application programs on different browsers are mutually integrated, and resources are shared.

Description

The method of share application and terminal
Technical field
The present invention relates to networking technology area, particularly relate to a kind of method and terminal of share application.
Background technology
Network intention (web intent) is the mechanism of a kind of integration networks application program (weblication, web app) that Google (Google) company puts forward in World Wide Web Consortium (World Wide Web Consortium, W3C).Mainly comprise lightweight remote procedure call (Remote Procedure Call, the RPC) communication mechanism between the discovery mechanism of network service (i.e. web services) and weblication.
Existing web intent treatment scheme is generally: user triggers web intent by customer terminal webpage (client page), web intent data are sent to browser, browser removes inquiry app store according to the web intent data received, check whether adaptive application program, the application program retrieved with in the qualified application program of browser registration, generate a list, present to user in the form of a web page.After browser obtains the weblication of user's selection, if this application program on a web browser face is not registered, first by the registration of this application program on a web browser, selected application program opened in the form of a web page by browser, and transmit and need web intent data to be processed to selected application program, the data that selected application program process browser sends also send result to browser, and browser sends result to client page.
Current different browsers provides different weblication lists, in addition, the situation that mobile phone or computing machine are installed two or more browser is simultaneously very general, and the application program that existing web intent mechanism can not make two browsers provide is integrated mutually, cause the application program, web intent data etc. installed on a browser or register can not be applied to another browser, cannot share.
Summary of the invention
The object of this invention is to provide a kind of method and terminal of share application, the application program on different browsers is integrated mutually, shared resource.
For achieving the above object, first aspect present invention provides a kind of method of share application, and described method comprises:
First browser, when receiving the triggering command of network intention, determines at least one second browser installed in terminal;
Described first browser sends request the first request of application program to described second browser started;
Described first browser receives described second browser and asks according to described first the application program that returns;
Described first browser presents to user after the application program that the application program of described first browser registration and described second browser return being integrated;
When in the application program that described second browser returns one of described first browser is chosen, utilize network intention described in described chosen application program process.
In conjunction with first aspect, in the first possible embodiment of first aspect, to send request the first request of application program to described second browser at described first browser before, also comprise:
Described first browser by call can executive's interface set up and described second browser process between communication connection.
In conjunction with the first possible embodiment of first aspect or first aspect, in the embodiment that the second of first aspect is possible, when in the application program that described second browser returns one of described first browser is chosen, utilize network intention described in described chosen application program process, comprising:
Described chosen application program is registered on described first browser by described first browser, and loads described chosen application program, processes the data that described network is intended to.
In conjunction with the embodiment that the second of first aspect is possible, in the third possible embodiment of first aspect, described first browser can not, described in normal process during network intention, nullify and cut out described chosen application program when described chosen application program in described first browser.
In conjunction with the embodiment that the second of first aspect is possible, in the 4th kind of possible embodiment of first aspect, described first browser can not, described in normal process during network intention, ask described second browser to load described chosen application program when described chosen application program in described first browser;
The data that described network is intended to by described first browser send to the described chosen application program that described second browser loads via described second browser;
Described first browser receives the result after the data processing that described chosen application program that described second browser that returns of described second browser loads is intended to described network.
In conjunction with the first possible embodiment of first aspect or first aspect, in the 5th kind of possible embodiment of first aspect, described first browser utilizes network intention described in described chosen application program process, comprising:
Described in described first browse request, the second browser loads described chosen application program;
The data that described network is intended to by described first browser send to the described chosen application program that described second browser loads via described second browser;
Described first browser receives the result after the data processing that described chosen application program that described second browser that returns of described second browser loads is intended to described network.
In conjunction with the 4th kind of possible embodiment or the 5th kind of possible embodiment of first aspect, in the 6th kind of possible embodiment of first aspect, after result after the data processing that the described chosen application program that described second browser that described second browser of described first browser reception returns loads is intended to described network, also comprise:
Described first browser sends second request of cutting out described selected application program to described second browser, described second request triggers described second browser and closes described chosen application program.
In conjunction with the 4th kind of possible embodiment of first aspect or the 5th kind of possible embodiment or the 6th kind of possible embodiment, in the 7th kind of possible embodiment of first aspect, after result after the data processing that the described chosen application program that described second browser that described second browser of described first browser reception returns loads is intended to described network, also comprise:
Described first browser utilizes the customer terminal webpage loaded to show described result.
In conjunction with the first possible embodiment of first aspect or first aspect, in the 8th kind of possible embodiment of first aspect, described first browser utilizes network intention described in described chosen application program process, comprising:
Described in described first browse request, the second browser loads described chosen application program;
The data that described network is intended to by described first browser send to the described chosen application program that described second browser loads via described second browser, the data of described network intention by after described chosen application program process that described second browser loads, the result that the customer terminal webpage display loaded by described second browser is corresponding.
Second aspect, present invention also offers a kind of terminal of share application, and described terminal comprises:
First receiving element, for the triggering command utilizing the first browser to receive network intention;
Determining unit, for when described receiving element receives described triggering command, utilizes described first browser to determine at least one second browser installed in terminal;
Transmitting element, sends request the first request of application program for utilizing described first browser to described second browser started;
Second receiving element, receives described second browser for utilizing described first browser and asks according to described first the application program that returns;
Display unit, presents to user after the application program that the application program of described first browser registration and described second browser return being integrated for utilizing described first browser;
Processing unit, time chosen in the application program that returns at described second browser, utilizes network intention described in described chosen application program process.
In conjunction with second aspect, in the first embodiment of second aspect, described terminal also comprises:
Set up unit, for utilize described first browser by call can executive's interface set up and described second browser process between communication connection.
In conjunction with second aspect, in the second embodiment of second aspect, described processing unit specifically for, described first browser is utilized to be registered on described first browser by described chosen application program, and load described chosen application program, the data that described network is intended to are processed.
In conjunction with the second embodiment of second aspect, in the third embodiment of second aspect, described processing unit also for, when described chosen application program can not, described in normal process during network intention, be nullified and close described chosen application program in described first browser.
In conjunction with the second embodiment of second aspect, in the 4th kind of embodiment of second aspect, described processing unit also for, when described chosen application program can not, described in normal process during network intention, ask described second browser to load described chosen application program in described first browser;
The data utilizing described first browser to be intended to by described network send to the described chosen application program that described second browser loads via described second browser;
Result after the data processing that the described chosen application program utilizing described first browser to receive described second browser that returns of described second browser loads is intended to described network.
In conjunction with the first embodiment of second aspect, in the 5th kind of embodiment of second aspect, described processing unit specifically for:
The second browser described in described first browse request is utilized to load described chosen application program;
The data utilizing described first browser to be intended to by described network send to the described chosen application program that described second browser loads via described second browser;
Result after the data processing that the described chosen application program utilizing described first browser to receive described second browser that returns of described second browser loads is intended to described network.
In conjunction with the 4th kind of embodiment or the 5th kind of embodiment of second aspect, in the 6th kind of embodiment of second aspect, described transmitting element is also for utilizing described first browser to send second request of closing described selected application program to described second browser, and described second request triggers described second browser and closes described chosen application program.
In conjunction with the 4th kind of embodiment of second aspect or the 5th kind of embodiment or the 6th kind of embodiment, in the 7th kind of embodiment of second aspect, described display unit is also for utilizing the customer terminal webpage that described first browser loads to show described result.
In conjunction with the second embodiment of second aspect, in the 8th kind of embodiment of second aspect, described processing unit specifically for:
The second browser described in described first browse request is utilized to load described chosen application program;
The data utilizing described first browser to be intended to by described network send to the described chosen application program that described second browser loads via described second browser, the data of described network intention by after described chosen application program process that described second browser loads, the result that the customer terminal webpage display loaded by described second browser is corresponding.
The method of share application provided by the invention and terminal, more weblication can be provided to select for using the user of web intent mechanism, and the cooperation between achieving by different browsers has carried out the process to network intention jointly, application program on different browsers is integrated mutually, shared resource.
Accompanying drawing explanation
The method flow diagram of the share application that Fig. 1 provides for the embodiment of the present invention one;
A kind of method flow diagram utilizing selected application program process network intention that Fig. 2 provides for the embodiment of the present invention one;
The method flow diagram of the application program process network intention selected by the another kind that Fig. 3 provides for the embodiment of the present invention one utilizes;
The terminal schematic diagram of the share application that Fig. 4 provides for the embodiment of the present invention two;
The structure composition schematic diagram of the terminal of the share application that Fig. 5 provides for the embodiment of the present invention three.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Web application is the application program presented with form web page, such as web qq etc., and it is usually by browser execution, makes user be easy to access these application programs, generally only needs browser, does not need to install other software again.
The method of the share application that the embodiment of the present invention provides and terminal, the weblication that different browsers can be provided is integrated, be applicable to the scene of various use network intention (web intent) mechanism, realize sharing of the data of the shared of weblication and network intention thereof, make it jointly for user provides service.
Fig. 1 is the method flow diagram of the share application that the present embodiment provides, and as shown in Figure 1, the method for share application of the present invention comprises:
S100, first browser set up and the second browser process between communication connection.
If will realize sharing weblication between two browsers, then need first to set up the communication connection between the process between these two browsers.The mode of executive's interface can set up between two browsers between process communication connection by calling in the embodiment of the present invention.
Particularly, before setting up the communication connection between the first browser and the second browser process, also comprise:
When the first browser receives the instruction or installation browser or first time startup browser of setting up communication port, the first browser obtains other browser informations installed on present terminal, and these other browsers comprise the second browser.
First browser and the second browser mutually can executive's interfaces to correspondent registration one.What the first browser utilization was registered can obtain the application list that in the second browser, registered application program or the second browser provide by executive's interface.
Like this, can executive's interface by calling this, namely set up the connection of the communication port between described first browser and the second browser process.
Such as, when user is at installation browser A or first time startup browser A or when having user to input the instruction of setting up communication port, then first browser A can obtain other browsers that terminal is installed (such as, browser B), then browser A registers an executable interface GetRegisterAPP () to browser B, can directly call GetRegisterAPP () to obtain chartered application program or browser B in browser B provide the ability of weblication when browser A runs.Same, browser B also registers an executable interface GetRegisterAPP () to browser A, and browser B operationally can directly call GetRegisterAPP () to obtain chartered application program or browser A in browser A and provide the ability of weblication.
It should be noted that, by registration can after executive's interface, usually can needs call this can executive's interface time, just set up the communication port between two browser process, and then can data communication be carried out between these two browsers, in the whole process of data communication, the state that Path Setup connects can be kept, after communication, then close the communication port between these two browser process.
Alternatively, after setting up the communication connection between the first browser and the second browser process, also comprise: the connection of setting up two browsers and finger daemon, use same common line title (busname) to identify the data bus of the communication connection between described first browser and the second browser process.
Such as, common line title " www.webintents.org " can be used to identify, so that browser can identify the other side.
The present invention it should be noted that, if after the communication connection between two browser process set up, then can not need S100, that is, S100 is optional step.
S101, when receiving the triggering command of network intention web intent, at least one second browser installed in terminal determined by the first browser.
The triggering command of web intent can adopt startactivity(usually) function.And, at startactivity() can parameter FetchAppFromOther be carried in function, parameter FetchAppFromOther needs to ask other browse request the application lists in order to identify described first browser.When the first browser receives triggering command, other browsers that collection terminal is installed, other browsers at least comprise the second browser.
Such as, when customer terminal webpage client page on browser A triggers startactivity (), if startactivity () function has increase parameter FetchAppFromOther, then showing that the first browser needs go for asks other browser to provide weblication list, then determine other browsers (browser B) that terminal is installed.
If when the second browser (browser B) is in the state do not started, first start the second browser.
S102, the first browser send request the first request of application program to the second browser started, and receive the second browser and ask according to described first the application program that returns.
What the first browser started the second browser registration can executive's interface, sent request the first request of application program to the second browser by the communication port between the second browser process, and receiving the application program that the second browser returns, the application program returned is generally the form of the application list.
In the first request of the request applications of the second browser transmission, carry-on parameter comprises: intent request mark (Intentservice_get_call), the second browser mark (Browser_id), message id (origin_message_no), the type (action) of Intent service, the type (type) etc. of Intent data.After the second browser receives above-mentioned first request, in the response of above-mentioned first request of correspondence, carry weblication list.
Such as, browser A starts GetRegisterApp () interface, sends request to obtain to browser B the weblication that browser B can provide.Carry intent in request message and ask mark, browser B mark, message id etc.After browser B receives above-mentioned request, in the response of the above-mentioned request of correspondence, carry weblication list.
It should be noted that: if present terminal is provided with multiple browser, then the first browser sends request the first request of application program respectively to multiple browser.
The application program that first browser is registered by S103, the first browser and the application program that described second browser returns present to user after integrating.
The process such as duplicate removal or sequence is carried out in the main application programs list of first browser, the application list generated is presented to user, select for user after process.
If the first browser receives the application list that multiple browser returns, then present to user after being integrated by the application list that multiple the application list and the first browser are registered.
When in the application program that described second browser returns one of S104, the first browser is chosen, utilize network intention described in described chosen application program process.
First browser, after the application list after integration is shown to user, also comprises: receive the application information that user selects.
When be selected application program is the application program of the second browser, the first browser utilizes network intention described in chosen application program process.
Particularly, described in the application program process selected by utilization network intention can in the following ways in any one:
First kind of way:
Chosen application program is registered on the first browser by the first browser, and loads described chosen application program, and then, the data that described network is intended to are processed.
Optionally, after the described application program of described loading, if described application program can not web intent described in normal process in described first browser, described first browser nullifies and cuts out described application program.Or, when can not normal process time, adopt the second way below to process.
The second way, as shown in Figure 2, comprising:
S201, the first browse request second browser load chosen application program.
First browser (browser A) sends the request loading chosen application program to the second browser (browser B) by the communication port between process, the parameter of carrying in this request: request mark (intent_loadapp_call), the address (app_url) of the web application loaded, this request from the mark (remote_request_flg) of browser, message id (origin_message_no), the type (action) of Intent service, the type (type) of Intent data, the Uniform Resource Identifier (client_page_url) etc. of customer terminal webpage.Browser B loads this web application after receiving request, and loads client_page_url on backstage.
When the first browse request second browser loads chosen application program, can before or afterwards, the first browser loads customer terminal webpage (client page), in order to the data result after Graphics Processing.When receive described chosen application program that the second browser loads to described intent data process after after the result that returns, show described result at customer terminal webpage.
Alternatively, customer terminal webpage in order to show described result also can be loaded on backstage by the second browser, such as when user does not ask in the application program process that the first browser loads, need by second this user of browser process request, after the application program selected described in then loading on the second browser processes described intent data, the result of correspondence is fed back to the second browser by this application program, then transfers via backstage the customer terminal webpage that the second browser loading is passed on foreground to.Employing second browser is loaded to the mode of customer terminal webpage on backstage, follow-up step S203 can be omitted.
The data that described network is intended to by S202, the first browser send to the described chosen application program that described second browser loads via described second browser.
Browser A sends Sendintentdata request to browser B, so that needing intent data to be processed to send to weblication via browser B.After weblication receives intent data, process intent data, then call postresult (), the intent data after process are issued browser B, and then browser B transmission processing result is to browser A.
S203, the first browser receive the result after the data processing that described chosen application program that described second browser that the second browser returns loads is intended to described network.
Browser A calls the call back function of registration in startactivity (), result is returned to client page.
Alternatively, in order to save the system resource of equipment, after the result that S203 returns, also comprise:
S204, the first browser send second request of closing described selected application program to the second browser, described second request triggers described second browser and closes described chosen application program.
Browser A sends closewebapp request to browser B, its objective is the weblication allowing browser B close its loading.
Certainly, the first browser also can not send the request of the application program selected by cutting out to the second browser, automatically close its application program loaded by the second browser.
The third mode, as shown in Figure 3, comprising:
Described in S301, the first browse request, the second browser loads described chosen application program.
The data that described network is intended to by S302, the first browser send to the described chosen application program that described second browser loads via described second browser, the data of described network intention by after described chosen application program process that described second browser loads, the result that the customer terminal webpage display loaded by described second browser is corresponding.
The third mode and the second way similar, difference is the result of the customer terminal webpage display correspondence that the third mode is loaded by the second browser, repeats no more in this.
The method of the share application that the present embodiment provides, can provide more weblication to select for using the user of web intent mechanism, and the cooperation between achieving by different browsers the process that is intended to network jointly.
Be more than the detailed description that the method for share application provided by the present invention is carried out, below the terminal of share application provided by the invention be described in detail.
Embodiment two
Fig. 4 is the terminal schematic diagram of the share application that the present embodiment provides, as shown in Figure 4, the terminal of share application of the present invention comprises: set up unit 10, first receiving element unit 20, determining unit 30, start unit 40, transmitting element 50, second receiving element 60, display unit 70 and processing unit 80.
Set up the communication connection of unit 10 for setting up and between the second browser process.
If will realize sharing weblication between two browsers, then need first to utilize the communication connection of setting up between process that unit 10 sets up between these two browsers.Setting up unit 10 in the embodiment of the present invention is the mode of executive's interface can set up between two browsers between process communication connection by calling.
Setting up unit 10 can executive's interface by registering one to the second browser, can set up the connection of the communication port between two browser process by executive's interface by calling this.Particularly, set up unit 10 to comprise: obtain subelement 101 and registration subelement 102.
Obtain subelement 101 for when receiving the instruction or installation browser or first time startup browser of setting up communication port, obtain other browser informations installed on present terminal, these other browsers comprise the second browser.
Registration subelement 102 is for after acquisition subelement 101 gets described browser information, and registering one to described second browser can executive's interface.Transmitting element 50 utilizes this can obtain the application list that in described second browser, registered application program or described second browser provide by executive's interface.
Like this, setting up unit 10 can executive's interface by this calling that registration subelement 102 registers, and namely sets up the connection of the communication port between described first browser and the second browser process.
Such as, when user is at installation browser A or first time startup browser A or when having user to input the instruction of setting up communication port, then first browser A can obtain other browser informations that terminal is installed (such as by obtaining subelement 101, browser B), then browser A registers an executable interface GetRegisterAPP () by registration subelement 102 to browser B, browser A operationally can directly call GetRegisterAPP () to obtain chartered application program or browser B in browser B and provide the ability of weblication.Same, browser B also utilizes its registration subelement to register an executable interface GetRegisterAPP () to browser A, and browser B operationally can directly call GetRegisterAPP () to obtain chartered application program or browser A in browser A and provide the ability of weblication.
It should be noted that, by registration can after executive's interface, usually can needs call this can executive's interface time, just set up the communication port between two browser process, and then can data communication be carried out between two browsers, in the whole process of data communication, the state that Path Setup connects can be kept, after communication, then close the communication port between these two browser process.
Alternatively, set up unit 10 also for after the communication connection between foundation and described second browser process, set up the connection of this first browser and described second browser and finger daemon, use the data bus of the communication connection between same common line name identification and described second browser process.
Such as, common line title " www.webintents.org " can be used to identify, so that browser can identify the other side.
The present invention it should be noted that, if after the communication connection between two browser process set up, then can not need to set up unit 10.
The triggering command of the first receiving element 20 for utilizing the first browser to receive network intention.
Determining unit 30 for receive when the first receiving element 20 network intention triggering command time, utilize described first browser to determine at least one second browser installed in terminal.
The triggering command of the described web intent that the first receiving element 20 receives adopts startactivity() function, described startactivity() carry parameter FetchAppFromOther in function, described parameter FetchAppFromOther needs to ask other browse request the application lists in order to identify described first browser.When the first receiving element 20 receives triggering command, determining unit 30 determines other browsers (such as, the second browser) that terminal is installed.
Described second browser that start unit 40 is determined for utilizing described first browser to start determining unit 30.
If when the second browser that determining unit 30 is determined is in the state do not started, then start unit 40 is utilized first to start the second browser.If the second browser is in the state started, then do not need start unit 40.
Transmitting element 50 sends request the first request of application program for utilizing described first browser to described second browser started.
Second receiving element 60 asks according to described first the application program that returns for utilizing described first browser to receive described second browser.
What transmitting element 50 started that registration subelement 102 registers can executive's interface, sent request first request of the application list to the second browser by the communication port between the second browser process, and the application program utilizing the second receiving element 60 to receive the second browser to return.
In first request of the request applications that transmitting element 50 sends to the second browser, carry-on parameter comprises: intent request mark (Intentservice_get_call), the second browser mark (Browser_id), message id (origin_message_no), the type (action) of Intent service, the type (type) etc. of Intent data.After the second browser receives above-mentioned request, in the response of the above-mentioned request of correspondence, carry weblication list.
If present terminal is provided with multiple browser, transmitting element 50 sends request the first request of application program respectively to multiple browser.
Display unit 70 presents to user after utilizing described first browser the application program that the application program of described first browser registration and described second browser received by the second receiving element 60 are returned to be integrated.
The process such as duplicate removal or sequence is carried out in the main application programs list of display unit 70, the application list generated is presented to user, select for user after process.
If the second receiving element 60 receives the application list that multiple browser returns, display unit 70 presents to user after multiple the application list and the application list of self being integrated.
First receiving element 20 is also for receiving application information selected in the application list that user presents at display unit 70.
One in the application program that processing unit 80 returns for described second browser received at the first receiving element 20 chosen time, utilize network intention described in described chosen application program process.
Processing unit 80 utilize described chosen application program process web intent can in the following ways in any one:
First kind of way:
Chosen application program is registered on the first browser by processing unit 80, and loads described chosen application program, and then, the data that described network is intended to are processed.
Optionally, after the described application program of loading, if described application program can not web intent described in normal process in described first browser, processing unit 80 is nullified and is closed described application program.Or, when can not normal process time, processing unit 80 adopts the second way below to process.
Or, the second way:
First, processing unit 80 asks described second browser to load chosen application program by transmitting element 50.
Such as, the processing unit 80 of browser A passes through the passage of transmitting element 50 via interprocess communication sends request from the chosen application program of loading to browser B, the parameter of carrying in this request: request mark (intent_loadapp_call), the address (app_url) of the web application loaded, this request from the mark (remote_request_flg) of browser, message id (origin_message_no), the type (action) of Intent service, the type (type) of Intent data, the Uniform Resource Identifier (client_page_url) etc. of customer terminal webpage.Browser B loads this web application after receiving request, and loads client_page_url on backstage.
Optionally, processing unit 80 also for when being asked the second browser to load chosen application program by transmitting element 50, loads customer terminal webpage, in order to the data result after Graphics Processing.When receive described chosen application program that the second browser loads to described intent data process after after the result that returns, show described result at customer terminal webpage.
Optionally, customer terminal webpage in order to show described result also can be loaded on backstage by the second browser, such as when user does not ask in the application program process that the first browser loads, need by second this user of browser process request, after the application program selected described in then loading on the second browser processes described intent data, the result of correspondence is fed back to the second browser by this application program, then transfers via backstage the customer terminal webpage that the second browser loading is passed on foreground to.
Secondly, the data that described network is intended to by transmitting element 50 by processing unit 80 send to the described chosen application program that described second browser loads via described second browser.
Such as, the processing unit 80 of browser A sends Sendintentdata request by transmitting element 50 to browser B, so that needing intent data to be processed to send to weblication via browser B.After weblication receives intent data, intent data are processed, then postresult () is called, intent data after process are issued browser B, then browser B transmission processing result is to second receiving element 60 of browser A, to be supplied to processing unit 80.
Finally, processing unit 80 receives the result after the data processing that described chosen application program that described second browser that described second browser returns loads is intended to described network by the second receiving element 60.
Such as, the processing unit 80 of browser A can call the call back function of registration in startactivity (), result is returned to client page.
Alternatively, in order to save the system resource of equipment, processing unit 80 is after receiving the result that described second browser returns, also for being sent the request of the application program selected by closing to described second browser by transmitting element 50, with the application program making described second browser close its loading.
Such as, the processing unit 80 of browser A sends closewebapp request by transmitting element 50 to browser B, its objective is the weblication allowing browser B close its loading.
Certainly, processing unit 80 also can not send the request of the application program selected by closing to the second browser, automatically close its application program loaded by the second browser.
The third mode:
Processing unit 80 utilizes the second browser described in described first browse request to load described chosen application program.
The data that processing unit 80 utilizes described first browser to be intended to by described network send to the described chosen application program that described second browser loads via described second browser, the data of described network intention by after described chosen application program process that described second browser loads, the result that the customer terminal webpage display loaded by described second browser is corresponding.
The terminal of the share application that the present embodiment provides, can provide more weblication to select for using the user of web intent mechanism, and the cooperation between achieving by different browsers the process that is intended to network jointly.
Embodiment three
The structure composition schematic diagram of the terminal of a kind of share application that Fig. 5 provides for the embodiment of the present invention, as shown in Figure 5, the terminal of the share application of the embodiment of the present invention can comprise: processor 501, first interface 502 and the second interface 503.
Processor 501 may be monokaryon or multinuclear CPU (central processing unit) (Central Processing Unit, CPU), or be specific integrated circuit (Application Specific Integrated Circuit, ASIC), the one or more integrated circuit or for being configured to the enforcement embodiment of the present invention.
First interface 502 is for carrying out with user interaction device alternately.
Second interface 503 is for carrying out with other browsers alternately.
Processor 501 is for performing:
When the first browser receives the triggering command of network intention, determine at least one second browser installed in terminal;
Described first browser is utilized to send request the first request of application program to described second browser started;
Utilize described first browser to receive described second browser and ask according to described first the application program that returns;
User is presented to after utilizing described first browser the application program that the application program of described first browser registration and described second browser return to be integrated;
When utilizing in the application program that described second browser returns one of described first browser chosen, utilize network intention described in described chosen application program process.
Particularly, the terminal of share application also performs the method shown in above-mentioned Fig. 1-3 according to described instruction, does not specifically repeat them here.
The method of share application provided by the invention and terminal, chartered application program in other browsers can be found, and the transmission of intent data can be carried out, the application program in other browsers is utilized to process, cooperation between achieving by different browsers has come intent process jointly, for using the user of web intent mechanism to provide more weblication to select, the service needed for user greatly can be provided.
The present invention can be, but not limited to be used in following scene:
The terminal of 1, user has installed 2 browsers, such as, a Microsoft Explorer IE, a Google browser chrome.When user once used web intent mechanism to see video on chrome, weblication A accustomed to using, weblication A can provide a kind of function of video playback, user have registered user name at this weblication A, password, likely prepay expense, and weblication has been installed or has been registered on chrome browser, and this application A uses the ability of chrome browser itself to carry out coding and decoding video.When user uses web intent mechanism to see video in IE, then can utilize method of the present invention or terminal, by the weblication A on chrome browser and this weblication A, the intent data on chrome browser (comprising the user name of paying, password, the data such as the viewing record of player) share to IE browser.And adopt existing method can not share the intent data of weblication A and correspondence.
2, user uses the customer terminal webpage client page A(such as blog in IE browser), this user has been shared a video.User wants to watch video, but client page A does not have playing function, therefore, utilizes method of the present invention or terminal, and weblication that web intent mechanism calls other can be used to play this video.
3, search qualified weblication at IE and be supplied to user.But, due in web intent standard, how to provide qualified web application not do specification to browser, the web application list that therefore different browsers provides is different, thus may can not provide weblication A in IE.Therefore, utilize method of the present invention or terminal, weblication A chartered in chrome browser can be supplied to user.
4, when some function of weblication A can not may use normally in IE browser:
(1) coding/decoding capability of what weblication A called is browser, because the struggle of coding and decoding video is in a standard still very fierce, the coded format of current HTML5 is not also come to a conclusion, and thus IE itself does not support this kind of encoding and decoding (may need plug-in unit).
(2) the peculiar unit that weblication A employs a large amount of HTML5 usually realizes, and IE itself supports HTML5 also has a lot of shortcomings.Therefore IE is very serious by the impact of windows operating system, and XP system just can only support IE8, and the support of IE8 to HTML5 is so tragic that one cannot bear to look at it.
Therefore, utilize method of the present invention or terminal, second way share application can be adopted, namely no longer load weblication A in IE, but direct pull-up chrome browser execution.
If 5 IE pull-up chrome, and in chrome, load selected weblication A.This weblication A, from chrome browser, utilizes method of the present invention or terminal, can load its weblication A provided in chrome browser.
Professional should recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only the specific embodiment of the present invention; the protection domain be not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (18)

1. a method for share application, is characterized in that, described method comprises:
First browser, when receiving the triggering command of network intention, determines at least one second browser installed in terminal;
Described first browser sends request the first request of application program to described second browser started;
Described first browser receives described second browser and asks according to described first the application program that returns;
Described first browser presents to user after the application program that the application program of described first browser registration and described second browser return being integrated;
When in the application program that described second browser returns one of described first browser is chosen, utilize network intention described in described chosen application program process.
2. method according to claim 1, is characterized in that, before sending request the first request of application program, also comprises at described first browser to described second browser:
Described first browser by call can executive's interface set up and described second browser process between communication connection.
3. method according to claim 1 and 2, is characterized in that, when in the application program that described second browser returns one of described first browser is chosen, utilizes network intention described in described chosen application program process, comprising:
Described chosen application program is registered on described first browser by described first browser, and loads described chosen application program, processes the data that described network is intended to.
4. method according to claim 3, is characterized in that, described first browser can not, described in normal process during network intention, nullify and cut out described chosen application program when described chosen application program in described first browser.
5. method according to claim 3, it is characterized in that, described first browser can not, described in normal process during network intention, ask described second browser to load described chosen application program when described chosen application program in described first browser;
The data that described network is intended to by described first browser send to the described chosen application program that described second browser loads via described second browser;
Described first browser receives the result after the data processing that described chosen application program that described second browser that returns of described second browser loads is intended to described network.
6. method according to claim 1 and 2, is characterized in that, described first browser utilizes network intention described in described chosen application program process, comprising:
Described in described first browse request, the second browser loads described chosen application program;
The data that described network is intended to by described first browser send to the described chosen application program that described second browser loads via described second browser;
Described first browser receives the result after the data processing that described chosen application program that described second browser that returns of described second browser loads is intended to described network.
7. the method according to claim 5 or 6, it is characterized in that, after result after the data processing that the described chosen application program that described second browser that described second browser of described first browser reception returns loads is intended to described network, also comprise:
Described first browser sends second request of cutting out described selected application program to described second browser, described second request triggers described second browser and closes described chosen application program.
8. the method according to any one of claim 5 to 7, it is characterized in that, after result after the data processing that the described chosen application program that described second browser that described second browser of described first browser reception returns loads is intended to described network, also comprise:
Described first browser utilizes the customer terminal webpage loaded to show described result.
9. method according to claim 1 and 2, is characterized in that, described first browser utilizes network intention described in described chosen application program process, comprising:
Described in described first browse request, the second browser loads described chosen application program;
The data that described network is intended to by described first browser send to the described chosen application program that described second browser loads via described second browser, the data of described network intention by after described chosen application program process that described second browser loads, the result that the customer terminal webpage display loaded by described second browser is corresponding.
10. a terminal for share application, is characterized in that, comprising:
First receiving element, for the triggering command utilizing the first browser to receive network intention;
Determining unit, for when described receiving element receives described triggering command, utilizes described first browser to determine at least one second browser installed in terminal;
Transmitting element, sends request the first request of application program for utilizing described first browser to described second browser started;
Second receiving element, receives described second browser for utilizing described first browser and asks according to described first the application program that returns;
Display unit, presents to user after the application program that the application program of described first browser registration and described second browser return being integrated for utilizing described first browser;
Processing unit, time chosen in the application program that returns at described second browser, utilizes network intention described in described chosen application program process.
11. terminals according to claim 10, is characterized in that, described terminal also comprises:
Set up unit, for utilize described first browser by call can executive's interface set up and described second browser process between communication connection.
12. terminals according to claim 10, it is characterized in that, described processing unit specifically for, described first browser is utilized to be registered on described first browser by described chosen application program, and load described chosen application program, the data that described network is intended to are processed.
13. terminals according to claim 12, is characterized in that, described processing unit also for, when described chosen application program can not, described in normal process during network intention, be nullified and close described chosen application program in described first browser.
14. terminals according to claim 12, it is characterized in that, described processing unit also for, when described chosen application program can not, described in normal process during network intention, ask described second browser to load described chosen application program in described first browser;
The data utilizing described first browser to be intended to by described network send to the described chosen application program that described second browser loads via described second browser;
Result after the data processing that the described chosen application program utilizing described first browser to receive described second browser that returns of described second browser loads is intended to described network.
15. terminals according to claim 11, is characterized in that, described processing unit specifically for:
The second browser described in described first browse request is utilized to load described chosen application program;
The data utilizing described first browser to be intended to by described network send to the described chosen application program that described second browser loads via described second browser;
Result after the data processing that the described chosen application program utilizing described first browser to receive described second browser that returns of described second browser loads is intended to described network.
16. terminals according to claims 14 or 15, it is characterized in that, described transmitting element is also for utilizing described first browser to send second request of closing described selected application program to described second browser, and described second request triggers described second browser and closes described chosen application program.
17., according to claim 14 to the terminal described in 16 any one, is characterized in that, described display unit is also for utilizing the customer terminal webpage that described first browser loads to show described result.
18. terminals according to claim 12, is characterized in that, described processing unit specifically for:
The second browser described in described first browse request is utilized to load described chosen application program;
The data utilizing described first browser to be intended to by described network send to the described chosen application program that described second browser loads via described second browser, the data of described network intention by after described chosen application program process that described second browser loads, the result that the customer terminal webpage display loaded by described second browser is corresponding.
CN201310319540.1A 2013-07-26 2013-07-26 The method and terminal of sharing application program Active CN104346228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310319540.1A CN104346228B (en) 2013-07-26 2013-07-26 The method and terminal of sharing application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310319540.1A CN104346228B (en) 2013-07-26 2013-07-26 The method and terminal of sharing application program

Publications (2)

Publication Number Publication Date
CN104346228A true CN104346228A (en) 2015-02-11
CN104346228B CN104346228B (en) 2017-12-05

Family

ID=52501911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310319540.1A Active CN104346228B (en) 2013-07-26 2013-07-26 The method and terminal of sharing application program

Country Status (1)

Country Link
CN (1) CN104346228B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045628A (en) * 2015-07-25 2015-11-11 北京金山安全软件有限公司 Installation method and device of browser extension application
CN106201748A (en) * 2016-07-21 2016-12-07 北京奇虎科技有限公司 Method, device and the mobile terminal of a kind of Message Processing based on mobile terminal
CN110557670A (en) * 2019-09-17 2019-12-10 广州华多网络科技有限公司 Method, device, terminal and storage medium for playing video in webpage

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009018277A1 (en) * 2007-07-29 2009-02-05 Palm, Inc. Application management framework for web applications
CN101639774A (en) * 2009-08-31 2010-02-03 腾讯科技(深圳)有限公司 Encapsulation method of browser control part and device thereof
US20110078663A1 (en) * 2009-09-29 2011-03-31 International Business Machines Corporation Method and Apparatus for Cross-Browser Testing of a Web Application
CN102467506A (en) * 2010-11-02 2012-05-23 腾讯科技(深圳)有限公司 Cookie processing method and system
CN102567125A (en) * 2011-12-28 2012-07-11 中标软件有限公司 Method for realizing communication between browser pages
CN102982139A (en) * 2012-11-20 2013-03-20 上海中信信息发展股份有限公司 Universal browser
CN103186671A (en) * 2013-03-28 2013-07-03 百度在线网络技术(北京)有限公司 Searching method and searching system for mobile terminal, and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009018277A1 (en) * 2007-07-29 2009-02-05 Palm, Inc. Application management framework for web applications
CN101639774A (en) * 2009-08-31 2010-02-03 腾讯科技(深圳)有限公司 Encapsulation method of browser control part and device thereof
US20110078663A1 (en) * 2009-09-29 2011-03-31 International Business Machines Corporation Method and Apparatus for Cross-Browser Testing of a Web Application
CN102467506A (en) * 2010-11-02 2012-05-23 腾讯科技(深圳)有限公司 Cookie processing method and system
CN102567125A (en) * 2011-12-28 2012-07-11 中标软件有限公司 Method for realizing communication between browser pages
CN102982139A (en) * 2012-11-20 2013-03-20 上海中信信息发展股份有限公司 Universal browser
CN103186671A (en) * 2013-03-28 2013-07-03 百度在线网络技术(北京)有限公司 Searching method and searching system for mobile terminal, and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱旭庆等: "基于Access Grid的共享应用程序开发", 《计算机应用研究》 *
黄艳华: "Windows中应用程序之间数据共享的实现机制", 《辽宁高职学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045628A (en) * 2015-07-25 2015-11-11 北京金山安全软件有限公司 Installation method and device of browser extension application
CN105045628B (en) * 2015-07-25 2018-12-25 珠海豹趣科技有限公司 A kind of installation method and device of browser expanded application
CN106201748A (en) * 2016-07-21 2016-12-07 北京奇虎科技有限公司 Method, device and the mobile terminal of a kind of Message Processing based on mobile terminal
CN110557670A (en) * 2019-09-17 2019-12-10 广州华多网络科技有限公司 Method, device, terminal and storage medium for playing video in webpage

Also Published As

Publication number Publication date
CN104346228B (en) 2017-12-05

Similar Documents

Publication Publication Date Title
CN104102537B (en) A kind of application call method and user terminal
CN109391502B (en) Information configuration method and management unit
CN107181779B (en) Method, device and system for processing access request
CN105611422B (en) Online live broadcasting method and device based on multimedia list
US12067136B2 (en) Display method, display device, and electronic device
CN104756080A (en) Augmenting capabilities of a host device
CN103530160A (en) Page loading method and device
CN110311855B (en) User message processing method and device, electronic equipment and storage medium
CN110933075B (en) Service calling method and device, electronic equipment and storage medium
CN106034138A (en) Remote service calling method and remote service calling device
CN106547769A (en) A kind of DOI display packings and device
CN110677475A (en) Micro-service processing method, device, equipment and storage medium
CN111338710A (en) Application program control method and device, electronic equipment and storage medium
CN112835632B (en) Method and equipment for calling end capability and computer storage medium
CN103716230A (en) Message sending method, device and server
CN102831179B (en) web page processing method and device
CN104346228A (en) Application program sharing method and terminal
US10505811B2 (en) Multi-terminal interaction relation maintenance system and method
CN103905477A (en) HTTP request processing method and server
EP3805938A1 (en) Server node selection method and terminal device
CN111339173A (en) Data sharing method, server and readable storage medium
CN106060124A (en) Application program downloading method and mobile terminal
CN103428171A (en) Session processing method, application server and system
CN114500484A (en) Page rendering method and device, electronic equipment and readable medium
CN105915639B (en) Page access method and device

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
CP01 Change in the name or title of a patent holder

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: HUAWEI DEVICE Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20181218

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: Huawei terminal (Shenzhen) Co.,Ltd.

TR01 Transfer of patent right