CN108256312A - Webpage opens the method, device and mobile terminal of local application - Google Patents

Webpage opens the method, device and mobile terminal of local application Download PDF

Info

Publication number
CN108256312A
CN108256312A CN201810055252.2A CN201810055252A CN108256312A CN 108256312 A CN108256312 A CN 108256312A CN 201810055252 A CN201810055252 A CN 201810055252A CN 108256312 A CN108256312 A CN 108256312A
Authority
CN
China
Prior art keywords
list
webpage
local application
proprietary protocol
protocol
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
CN201810055252.2A
Other languages
Chinese (zh)
Other versions
CN108256312B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810055252.2A priority Critical patent/CN108256312B/en
Publication of CN108256312A publication Critical patent/CN108256312A/en
Application granted granted Critical
Publication of CN108256312B publication Critical patent/CN108256312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72445User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting Internet browser applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Abstract

The embodiment of the present application discloses the method, device and mobile terminal that a kind of webpage opens local application, applied to Internet technical field.This method includes:When opening request of loading web page resources according to webpage, the proprietary protocol for being used to open the corresponding local application of the webpage is obtained from web page resources;Judge white list or blacklist list of the proprietary protocol in preset protocol list;If the proprietary protocol is in white list, the corresponding local application of the webpage is opened according to the proprietary protocol, if the proprietary protocol is in blacklist list, the corresponding local application of the webpage is not opened, it is more friendly with respect to user for the unfolding mode of the corresponding local application of webpage, improve the browser usage experience of user.

Description

Webpage opens the method, device and mobile terminal of local application
Technical field
This application involves Internet technical field, more particularly, to a kind of webpage open local application method, Device and mobile terminal.
Background technology
When browser opens webpage, the webpage for being corresponding with third party application is often had, for example, Taobao's webpage corresponds to There is Taobao's application program.When the corresponding third party application of webpage is installed on mobile terminal, which is The webpage is in the corresponding local application of mobile terminal.When browser opens the webpage, opening can be redirected automatically and be installed on The corresponding local application of mobile terminal significantly impacts the browser usage experience of user.
Invention content
In view of the above problems, present applicant proposes a kind of method, apparatus of webpage opening local application and movement eventually End determines whether opening local application according to the black and white lists of preset protocol list, and unfolding mode is more friendly with respect to user It is good, improve the browser usage experience of user.
In a first aspect, the embodiment of the present application provides a kind of method that webpage opens local application, the method packet It includes:When opening request of loading web page resources according to webpage, obtained from web page resources and be used to open the corresponding local of the webpage The proprietary protocol of application program;Judge white list or blacklist list of the proprietary protocol in preset protocol list; If the proprietary protocol opens the corresponding local application of the webpage in white list, according to the proprietary protocol, if The proprietary protocol does not open the corresponding local application of the webpage in blacklist list.
Second aspect, the embodiment of the present application provide the device that a kind of webpage opens local application, described device packet It includes:Proprietary protocol acquisition module during for opening request of loading web page resources according to webpage, is obtained from web page resources for beating Open the proprietary protocol of the corresponding local application of the webpage;Judgment module, for judging the proprietary protocol in default association Discuss the white list or blacklist list of list;Program opens module, if for the proprietary protocol in white list, The corresponding local application of the webpage is opened according to the proprietary protocol, if the proprietary protocol in blacklist list, no Open the corresponding local application of the webpage.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including display screen, memory and processor, institute It states display screen and the memory is couple to the processor, the display screen is for showing browsing device net page and locally applied Program, the memory store instruction, when executed by the processor the processor perform above-mentioned method.
Fourth aspect, the embodiment of the present application provide a kind of the computer-readable of program code that can perform with processor Storage medium, said program code make the processor perform above-mentioned method.
Webpage provided by the embodiments of the present application opens the method, device and mobile terminal of local application, in loading net During page resource, proprietary protocol is obtained from web page resources, the proprietary protocol of acquisition is opens the corresponding local of the webpage The proprietary protocol of application program.Blacklist list or white list of the proprietary protocol in preset protocol list are judged again, If in white list, can corresponding local application be opened according to the proprietary protocol, if in blacklist list, no Corresponding local application is opened, it is more friendly with respect to user for the unfolding mode of the corresponding local application of webpage, Improve the browser usage experience of user.
These aspects or other aspects of the application can more straightforward in the following description.
Description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows that the webpage that the application first embodiment proposes opens the flow chart of the method for local application;
Fig. 2 shows the flow charts of the method for webpage opening local application that the application second embodiment proposes;
Fig. 3 shows that the webpage that the application second embodiment proposes opens the part steps of the method for local application Flow chart;
Fig. 4 shows a kind of display schematic diagram of white list setting in the application second embodiment;
Fig. 5 shows a kind of display schematic diagram of black and white lists setting in the application second embodiment;
Fig. 6 shows that the webpage that the embodiment of the present application proposes opens a kind of function module of the device of local application Figure;
Fig. 7 shows that the webpage that the embodiment of the present application proposes opens another function module of the device of local application Figure;
Fig. 8 shows a kind of structure diagram for the mobile terminal that the embodiment of the present application proposes;
Fig. 9 shows a kind of structure chart for the mobile terminal that the embodiment of the present application proposes;
Figure 10 shows that the execution that is used for of the embodiment of the present application opens locally applied journey according to the webpage of the embodiment of the present application The block diagram of the mobile terminal of the method for sequence.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall in the protection scope of this application.
The webpage of browser is in loading page, and other than a normal loading link, some webpages have corresponding the Tripartite's application program, if the third party application is installed on the mobile terminal that the browser is installed, the third-party application Program is the local application of the corresponding webpage.If webpage jumps directly to corresponding local application, i.e., in loading Open the corresponding local application of the webpage.On the one hand the opening of the local application occupies the operation money of mobile terminal Source, on the other hand, the opening of local application can occupy the display resource of display screen, that is, the local application opened is shown Show that floor height in webpage, blocks the display of webpage, significantly impacts usage experience of the user to browser.But if each webpage When opening corresponding local application, open prompting interface is all displayed whether, user is prompted to allow to open corresponding local Application program does not still allow to open, and also can bring interference to the web page browsing of user, and similary influence user makes browser With experience.
Inventor has found that usually user has a common local application, such as Taobao, Alipay some The application program of mainstream, that is to say, that for part webpage, user can tend to redirect simultaneously from webpage when opening the webpage Open the corresponding local application of the webpage.In addition, for some webpages, user is generally only web page browsing, without right It should the corresponding application program of webpage opening.Therefore, the embodiment of the present application proposes a kind of webpage and opens local application Method determines whether to open the corresponding locally applied journey of webpage by the preset protocol list for including blacklist and white list Sequence, unfolding mode is more flexible, more friendly with respect to user, improves usage experience of the user to browser.
First embodiment
Referring to Fig. 1, the application first embodiment provides a kind of method that webpage opens local application.The net The method that page opens local application obtains the privately owned association for opening the corresponding local application of the webpage from web page resources View belongs to white list according to the proprietary protocol or blacklist list determines whether to open local application.Specific Embodiment in, method that the webpage opens local application is applied to webpage as shown in Figure 6 and opens locally applied journey The device 300 of sequence and be corresponding with webpage open local application device 300 mobile terminal 400 (Fig. 8, Fig. 9).Below It by taking mobile phone as an example, will illustrate the idiographic flow of the present embodiment, it will of course be understood that, the movement that the embodiment of the present application is applied Terminal is not limited to mobile phone or other mobile terminals, such as Pad, personal computer.Above-mentioned webpage is opened local The method of application program specifically may comprise steps of:
Step S110:When opening request of loading web page resources according to webpage, obtained from web page resources described in being used to open The proprietary protocol of the corresponding local application of webpage.
When user opens a webpage in a browser, browser receives webpage and opens request, according to the webpage URL (Uniform Resource Locator, uniform resource locator) obtains the resource of the webpage from server.
Browser can analyze the proprietary protocol for jumping to local application, also from the web page resources of loading It is the proprietary protocol for being used to open the corresponding application program for being installed on mobile terminal local of the webpage.
Specific process can be the content of all loadings of webpage, can all pass through browser kernel and render parsing.Browser Kernel in loading webpage in time, resource for webpage and various links all can download link, all can there are one download money Source interface public boolean shouldOverrideUrlLoading (KKWebView view, KKWebResourceRequest request), this interface is notified that browser, the second parameter of this interface, can be with The link of all requests in the webpage of acquisition.The character string much asked can be obtained from the parameter of the interface, has plenty of chain Location is grounded, is proprietary protocol a little.It is common, these character string Print Alls can be come out in browser, found corresponding Proprietary protocol.
Step S120:Judge white list or blacklist list of the proprietary protocol in preset protocol list, if The proprietary protocol is in white list, execution step S130, if the proprietary protocol is in blacklist list, execution step S140。
In the embodiment of the present application, preset protocol list is pre-stored with, which includes various for net Page opens the proprietary protocol of local application, and different proprietary protocols is used to open different local applications.Wherein, in advance If protocol list includes white list and blacklist list, the proprietary protocol in preset protocol list may belong to white List list, it is also possible to belong to blacklist list.If certain proprietary protocol is the proprietary protocol in white list, show webpage Can corresponding local application directly be opened according to the proprietary protocol.If certain proprietary protocol is the privately owned association in blacklist View, shows that webpage can not open the corresponding application program of the proprietary protocol.
Specifically, the storage mode of blacklist and white list can be in preset protocol list, one can be set Special segmentation symbol, such as cut-off rule.List before special segmentation symbol can be set to blacklist list, behind segmentation symbol List positioning white list.Certainly, the specific storage mode of preset protocol list does not limit in the embodiment of the present application.
Judge whether the proprietary protocol obtained from web page resources belongs to the white list or black of preset protocol list List list.Wherein, judgment mode can match the proprietary protocol one by one with the proprietary protocol in preset protocol list, If the proprietary protocol is matched by the proprietary protocol in preset protocol list, the proprietary protocol institute that is obtained from web page resources The list of category is the list belonging to the proprietary protocol matched.If that is, proprietary protocol institute obtained from web page resources Matched proprietary protocol is in white list, then the proprietary protocol that should be obtained from web page resources is in white list;If from net The matched proprietary protocol of proprietary protocol institute obtained in page resource obtain privately owned in blacklist list, then this from web page resources Agreement is in blacklist list.Certainly, specific judgment mode does not limit in the embodiment of the present application.
Step S130:The corresponding local application of the webpage is opened according to the proprietary protocol.
If the proprietary protocol obtained from web page resources belongs to white list, allow the corresponding behavior of the proprietary protocol, i.e., Can according to the proprietary protocol open for local application.
Step S140:The corresponding local application of the webpage is not opened.
If the proprietary protocol obtained from web page resources belongs to blacklist list, the corresponding locally applied journey of webpage is not opened Sequence, that is, do not open the corresponding local application of the proprietary protocol obtained from web page resources.Wherein, the side not opened Formula can directly mask the corresponding local application of opening of the proprietary protocol to ask behavior, block according to the privately owned association View opens process of local application etc..
Second embodiment
A kind of method that webpage opens local application is present embodiments provided, compared with first embodiment, this implementation Example further includes the acquisition to preset protocol list.Specifically, referring to Fig. 2, this method includes:
Step S210:Obtain preset protocol list.
Browser obtains the preset protocol list for including white list and blacklist list, certainly, preset protocol row Can also only have white list or only blacklist list in table.Wherein, divide in white list and blacklist list Do not include the proprietary protocol that local application is opened for webpage, same proprietary protocol cannot be existed simultaneously in white list List and blacklist list.
In a kind of specific embodiment, server can with one preset protocol list of Dynamic Maintenance, browser it is pre- If protocol list is obtained from server.Wherein, the preset protocol list in server can be used according in multiple mobile terminals The operation whether family opens the corresponding local application of webpage is newer, even beyond certain amount or a certain proportion of shifting In dynamic terminal, user selects to open certain local application, then the proprietary protocol that webpage is opened to the local application adds To white list;If in certain amount or a certain proportion of mobile terminal, user selects refusal to open certain local should With program, then the proprietary protocol that webpage is opened to the local application adds black and white lists list.For example, user passes through feedback The needs of channel feedback open corresponding local application from webpage or refusal opens corresponding local application, use Family selection when webpage asks whether to open local application is opened or selection refusal etc., and mobile terminal is by the feedback of user Message or selection are sent to server, and server updates preset protocol list according to the operation of user.
In this embodiment, server can also update preset protocol list by other means, will such as be used to open The proprietary protocol of rogue software adds in blacklist list.
Browser can obtain the newest preset protocol list every preset time from server, so that in browser Preset protocol list information it is more accurate.Either, start every time newest described pre- from server acquisition during the browser If protocol list, so that the preset protocol list being applied to during browser use every time is server latest update 's.
In another specific embodiment, preset protocol list can be by user setting.Specifically, Fig. 3 is referred to, Setting the process of preset protocol list can be:
Step S211:Receive preset protocol list setting request.
User can initiate preset protocol list setting request, for the white of preset protocol list to be configured according to self-demand The proprietary protocol in proprietary protocol and blacklist list in list list.
Step S212:According to the corresponding setting selection thing of the one or more local applications of setting request display , the setting selection item includes white list selection item and blacklist selection item.
When receiving setting request, the corresponding setting selection item of local application can be shown.Wherein, setting choosing It selects item and includes white list selection item and blacklist selection item, the corresponding white list selection item of local application is used The proprietary protocol for opening the local application is selected to add in white list, the corresponding blacklist selection of local application in user Item selects the proprietary protocol for opening the local application to add in blacklist for user.
For example, as shown in figure 4, white list entry can be set, show that webpage can be by privately owned now in white list item The local application that agreement is opened, selects whether each local application adds in white list by user.Likewise, can be with Blacklist entry is set, the locally applied journey that webpage can be opened by proprietary protocol can also be shown under blacklist entry Sequence selects whether each local application adds in blacklist by user.If local application is added in into white name in Fig. 4 It is single, then it can be chosen in the selection control described in Fig. 4, as shown in application program A in Fig. 4.
Either, as shown in figure 5, corresponding can each be added in vain by the local application display that proprietary protocol is opened Either the option item of blacklist is chosen whether local application adding in white list or blacklist by user list.Fig. 5 Local application is added in into white list in if, the corresponding selection control of white list that can be shown in Fig. 5 is chosen, such as In Fig. 5 shown in application program A;If local application is added in blacklist, the corresponding choosing of blacklist that can be shown in Fig. 5 It selects control to be chosen, as shown in application program B in Fig. 5.
Certainly, local application can also both be added without white list, also be added without blacklist, such as application program C in Fig. 5 Shown in shown and application program D.If local application is added in white list by user's selection, i.e., it is locally applied webpage to be opened this The proprietary protocol of program adds in white list.If local application is added in blacklist by user's selection, i.e., webpage is opened The proprietary protocol of the local application adds in blacklist list.
Step S213:It receives the blacklist setting determined according to the setting selection item or white list is set, it is described Blacklist setting or white list are set as the setting to one or more local applications.
Step S214:The corresponding proprietary protocol of the local application for being set as white list is added to preset protocol list White list, the corresponding proprietary protocol of the local application for being set as blacklist is added to the black of preset protocol list List list.
User is item to be selected to add local application by white list to the white list setting of local application Enter white list, user is item to be selected to add local application by blacklist to the blacklist setting of local application Enter blacklist.When user is by selecting the local of local application and addition blacklist that item selection adds in white list should After program, the selection of user is received.The corresponding proprietary protocol of the local application for adding in white list is added to default association The white list of list is discussed, the corresponding proprietary protocol of the local application for adding in blacklist is added to preset protocol list Blacklist list.Wherein, the corresponding proprietary protocol, that is, webpage of local application open the local application institute according to Proprietary protocol.
In the embodiment of the present application, the preset protocol list of browser can be obtained by any of the above-described kind of embodiment, It can also be obtained by the combination of above two embodiment.
Step S220:When opening request of loading web page resources according to webpage, obtained from web page resources described in being used to open The proprietary protocol of the corresponding local application of webpage.
Step S230:Judge white list or blacklist list of the proprietary protocol in preset protocol list, if The proprietary protocol is in white list, execution step S240;If the proprietary protocol is in blacklist list, execution step S250。
Step S240:The corresponding local application of the webpage is opened according to the proprietary protocol.
Step S250:The corresponding local application of the webpage is not opened.
When opening webpage, the privately owned association for opening local application is obtained according to the web page resources loaded from server View, determines whether to open corresponding local application according to preset protocol list.
Certainly, the proprietary protocol obtained from web page resources may also both be not belonging to white list or be not belonging to blacklist row Table, if the proprietary protocol can prompt the user to choose whether to open local application not in preset protocol list.Specifically , if from web page resources obtain proprietary protocol not in preset protocol list, display whether to open the corresponding local of the webpage The selection prompting of application program.If user selects to open local application, corresponding, receive and prompting is selected to touch according to user The control command for opening the corresponding local application of webpage of hair, opens the corresponding local application of the webpage.If with Family refusal opens local application, then does not open the local application.
Further, user according to selection prompting selection to whether opening the selection of local application and being also sent to Server, by basis of the server as update preset protocol list.
In conclusion the method that webpage provided by the embodiments of the present application opens local application, being opened according to webpage please Ask from server load web page resources when, obtained from web page resources and be used to open the private of the corresponding local application of the webpage There is agreement.Judge whether the proprietary protocol belongs to the white list or blacklist list of preset protocol list again.If belong to white List list then normally opens local application, if belonging to blacklist list, does not open the local application.
3rd embodiment
The embodiment of the present application provides the device 300 that a kind of webpage opens local application, refers to Fig. 6, the dress 300 are put to include:Proprietary protocol acquisition module 310, for according to webpage open request of loading web page resources when, from web page resources Obtain the proprietary protocol for being used to open the corresponding local application of the webpage;Judgment module 320, it is described privately owned for judging Agreement is in the white list or blacklist list of preset protocol list;Program opens module 330, if for the privately owned association It discusses in white list, the corresponding local application of the webpage is opened according to the proprietary protocol, if the proprietary protocol In blacklist list, the corresponding local application of the webpage is not opened.
Optionally, as shown in fig. 7, described device 300 can also include:Reminding module 340, if for the proprietary protocol Not in the preset protocol list, display whether to open the selection prompting of the corresponding local application of the webpage;If it receives To the control command of the corresponding local application of the opening webpage according to the selection prompting triggering, described program is opened Module 330 is used to open the corresponding local application of the webpage.
Further, as shown in fig. 7, described device 300 can also include list acquisition module 350, for from server The preset protocol list is obtained, wherein the preset protocol list is according to user in multiple mobile terminals for the server The no operation for opening the corresponding local application of webpage is newer.
Wherein, list acquisition module 350 can obtain the newest preset protocol row every preset time from server Table;Or the newest preset protocol list is obtained from server when starting the browser every time.
Optionally, list acquisition module 350 can also include:Request reception unit sets for receiving preset protocol list Put request;Display unit, for being selected according to the corresponding setting of the one or more local applications of setting request display Item, the setting selection item include white list selection item and blacklist selection item;Receiving unit is set, for connecing It receives and the blacklist setting of one or more local applications or white list is set according to what the setting selection item determined It puts;Setting unit, for the corresponding proprietary protocol of the local application for being set as white list to be added to preset protocol list White list, the corresponding proprietary protocol of the local application for being set as blacklist is added to the black of preset protocol list List list.
Fourth embodiment
The embodiment of the present application provides a kind of mobile terminal 400, refers to Fig. 8, which includes display screen 120th, memory 104 and processor 102, the display screen 120 and the memory 104 are couple to the processor 102, described Display screen 120 is used to show browsing device net page and local application, the memory store instruction, when described instruction is by institute It states the processor 102 when processor 102 performs and performs the method that above-mentioned webpage opens local application.
Specifically, as shown in figure 9, the mobile terminal 400 can include electronic body portion 10, the electronic body portion 10 is wrapped Include housing 12 and the display screen 120 being arranged on the housing 12.Metal, such as steel, aluminium alloy system can be used in the housing 12 Into.In the present embodiment, the display screen 120 generally includes display panel 111, may also comprise to respond to the display panel 111 carry out circuit of touch control operation etc..The display panel 111 can be a liquid crystal display panel (Liquid Crystal Display, LCD), in some embodiments, the display panel 111 is simultaneously a touch screen 109.Webpage in the present embodiment Content can be shown in the display screen 120.
Please refer to Figure 10, in practical application scenarios, the mobile terminal 400 can be used as intelligent mobile phone terminal into It exercises and uses, the electronic body portion 10 also typically includes one or more (one is only shown in figure) processors in this case 102nd, memory 104, RF (Radio Frequency, radio frequency) module 106, voicefrequency circuit 110, sensor 114, input module 118th, power module 122.It will appreciated by the skilled person that structure shown in Fig. 10 is only to illustrate, not to institute The structure for stating electronic body portion 10 causes to limit.For example, the electronic body portion 10 may also include it is more than shown in Figure 10 or The less component of person has the correspondence different from shown in Figure 10.
It will appreciated by the skilled person that for the processor 102, every other component belongs to It is coupled between peripheral hardware, the processor 102 and these peripheral hardwares by multiple Peripheral Interfaces 124.The Peripheral Interface 124 can Based on following standard implementation:Universal Asynchronous Receive/sending device (Universal Asynchronous Receiver/ Transmitter, UART), universal input/output (General Purpose Input Output, GPIO), serial peripheral connect Mouthful (Serial Peripheral Interface, SPI), internal integrated circuit (Inter-Integrated Circuit, I2C), but it is not limited to above-mentioned standard.In some instances, the Peripheral Interface 124 can only include bus;In other examples In, the Peripheral Interface 124 may also include other elements, such as one or more controller, such as connecting the display The display controller of panel 111 or the storage control for connecting memory.In addition, these controllers can also be from described Detached in Peripheral Interface 124, and be integrated in the processor 102 or corresponding peripheral hardware in.
The memory 104 can be used for storage software program and module, and the processor 102 is stored in institute by operation The software program and module in memory 104 are stated, so as to perform various functions application and data processing.The memory 104 may include high speed random access memory, may also include nonvolatile memory, and such as one or more magnetic storage device dodges It deposits or other non-volatile solid state memories.In some instances, the memory 104 can further comprise relative to institute The remotely located memory of processor 102 is stated, these remote memories can pass through network connection to the electronic body portion 10 Or the display screen 120.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication And combinations thereof.
The RF modules 106 are used to receive and transmit electromagnetic wave, realize the mutual conversion of electromagnetic wave and electric signal, so as to It is communicated with communication network or other equipment.The RF modules 106 may include various existing for performing these functions Circuit element, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, memory etc..The RF modules 106 can be carried out with various networks such as internet, intranet, wireless network Communication is communicated by wireless network and other equipment.Above-mentioned wireless network may include cellular telephone networks, wireless LAN or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, including but not limited to Global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication skill Art (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code Division multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time-division Multiple access technology (time division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/ Or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other for mail, Instant Messenger The agreement of news and short message and any other suitable communications protocol or even it may include that those are not developed currently yet Agreement.
Voicefrequency circuit 110, loud speaker 101, microphone 103, microphone 105 provide user and the electronic body portion jointly Audio interface between 10 or described display screens 120.
The sensor 114 is arranged in the electronic body portion 10 or in the display screen 120, the sensor 114 Example include but is not limited to:Acceleration transducer 114F, gyroscope 114G, magnetometer 114H and other sensors.
In the present embodiment, the input module 118 may include the touch screen 109 being arranged on the display screen 120, The touch screen 109 collect user on it or neighbouring touch operation (for example user is suitble to using finger, stylus etc. are any Object or attachment operation on the touch screen 109 or near the touch screen 109), it is hereby achieved that user Touch gestures, and according to the corresponding attachment device of preset driven by program, therefore, user can pass through touching in display screen Control operation selected target region.Optionally, the touch screen 109 may include touch detecting apparatus and touch controller.Wherein, institute The touch orientation of touch detecting apparatus detection user is stated, and detects the signal that touch operation is brought, transmits a signal to described touch Touch controller;The touch controller receives touch information from the touch detecting apparatus, and the touch information is converted into Contact coordinate, then the processor 102 is given, and the order that the processor 102 is sent can be received and performed.In addition, The touch detection that the multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize the touch screen 109 may be used Function.In addition to the touch screen 109, in other change embodiments, the input module 118 can also include other inputs Equipment, such as button 107.The button 107 for example may include character keys for inputting character and control work(for triggering The control button of energy.The example of the control button includes " returning to main screen " button, on/off button etc..
The display screen 120 is used to show by information input by user, is supplied to the information of user and the electronics sheet The various graphical user interface in body portion 10, these graphical user interface can be by figure, text, icon, number, video and Qi Ren Meaning combines to form, and such as shows searched page information, the search result information of browser.In an example, the touch screen 109 may be disposed on the display panel 111 so as to form an entirety with the display panel 111.
The power module 122 is used to provide supply of electric power to the processor 102 and other each components.Specifically, The power module 122 may include power-supply management system, one or more power supply (such as battery or alternating current), charging circuit, Power-fail detection circuit, inverter, indicator of the power supply status and any other and electronic body portion 10 are described aobvious Generation, management and the relevant component of distribution of electric power in display screen 120.
The mobile terminal 400 further includes locator 119, and the locator 119 is used to determine 400 institute of mobile terminal The physical location at place.In the present embodiment, the locator 119 realizes the positioning of the mobile terminal 400 using positioning service, The positioning service, it should be understood that the location information of the mobile terminal 400 is obtained by specific location technology (as passed through Latitude coordinate), it is marked on the electronic map by the technology of the position of positioning object or service.
It should be understood that above-mentioned mobile terminal 400 is not limited to intelligent mobile phone terminal, should refer to can move The computer equipment used in dynamic.Specifically, mobile terminal 400, refer to be equipped with the mobile computer of intelligent operating system Equipment, mobile terminal 400 include but not limited to smart mobile phone, smartwatch, tablet computer, etc..
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference from other examples, and just to refer each other for identical similar part between each embodiment. For device class embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.For the described arbitrary processing mode in embodiment of the method, in device reality It applies in example and no longer can be one by one repeated in device embodiment by corresponding processing modules implement.
In the description of this specification, reference term " one embodiment ", " example ", " is specifically shown " some embodiments " The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It is combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field Art personnel can tie the different embodiments or examples described in this specification and the feature of different embodiments or examples It closes and combines.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, " multiple " are meant that at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement specific logical function or process Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, to perform function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) it uses or combines these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment It puts.The more specific example (non-exhaustive list) of computer-readable medium is including following:Electricity with one or more wiring Connecting portion (mobile terminal), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, the program when being executed, one or a combination set of the step of including embodiment of the method.In addition, in each embodiment of the application In each functional unit can be integrated in a processing module or each unit is individually physically present, can also two A or more than two units are integrated in a module.The form that hardware had both may be used in above-mentioned integrated module is realized, also may be used It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as Independent product is sold or in use, can also be stored in a computer read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although it has been shown and retouches above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the application System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of application Type.
Finally it should be noted that:Above example is only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art are when understanding:It still can be with It modifies to the technical solution recorded in foregoing embodiments or equivalent replacement is carried out to which part technical characteristic;And These modification or replace, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (10)

1. a kind of method that webpage opens local application, which is characterized in that the method includes:
When opening request of loading web page resources according to webpage, obtained from web page resources and be used to open the corresponding local of the webpage The proprietary protocol of application program;
Judge white list or blacklist list of the proprietary protocol in preset protocol list;
If the proprietary protocol opens the corresponding locally applied journey of the webpage in white list, according to the proprietary protocol Sequence,
If the proprietary protocol in blacklist list, does not open the corresponding local application of the webpage.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
If the proprietary protocol in the preset protocol list, does not display whether to open the corresponding local application of the webpage Selection prompting;
If receiving the control command of the corresponding local application of the opening webpage according to the selection prompting triggering, beat Open the corresponding local application of the webpage.
3. according to the method described in claim 1, it is characterized in that, the method further includes:It is obtained from server described default Protocol list, wherein the preset protocol list is updated for the server according to user's operation, the user's operation is multiple Whether user opens the operation of the corresponding local application of webpage in mobile terminal.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
Every preset time the newest preset protocol list is obtained from server;Or
When starting browser every time the newest preset protocol list is obtained from server.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
Receive preset protocol list setting request;
According to the corresponding setting selection item of the one or more local applications of setting request display, the setting selection Item includes white list selection item and blacklist selection item;
Receive according to the setting select blacklist setting that item determines either white list set blacklist setting or White list is set as the setting to one or more local applications;
The corresponding proprietary protocol of the local application for being set as white list is added to the white list of preset protocol list, The corresponding proprietary protocol of the local application for being set as blacklist is added to the blacklist list of preset protocol list.
6. a kind of webpage opens the device of local application, which is characterized in that described device includes:
Proprietary protocol acquisition module, for according to webpage open request of loading web page resources when, obtain and be used for from web page resources Open the proprietary protocol of the corresponding local application of the webpage;
Judgment module, for judging white list or blacklist list of the proprietary protocol in preset protocol list;
Program opens module, if for the proprietary protocol in white list, the webpage is opened according to the proprietary protocol Corresponding local application, if the proprietary protocol in blacklist list, does not open the corresponding locally applied journey of the webpage Sequence.
7. device according to claim 6, which is characterized in that described device further includes:
Reminding module, if displaying whether that opening the webpage corresponds to not in the preset protocol list for the proprietary protocol Local application selection prompting;
If receive the control command of the corresponding local application of the opening webpage according to the selection prompting triggering, institute It states program opening module and is used to open the corresponding local application of the webpage.
8. device according to claim 7, which is characterized in that described device further includes:
List acquisition module, for obtaining the preset protocol list from server, wherein the preset protocol list is described Server is updated according to user's operation, and the user's operation is that whether user opens the corresponding local of webpage in multiple mobile terminals The operation of application program.
9. a kind of mobile terminal, which is characterized in that including display screen, memory and processor, the display screen and the storage Device is couple to the processor, and the display screen for showing browsing device net page and local application, deposit by the memory Storage instructs, and the processor perform claim requires 1 to 5 any one of them side when executed by the processor Method.
A kind of 10. computer readable storage medium of program code that can perform with processor, which is characterized in that described program Code makes the processor perform claim require 1 to 5 any one of them method.
CN201810055252.2A 2018-01-19 2018-01-19 Method and device for opening local application program on webpage and mobile terminal Active CN108256312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810055252.2A CN108256312B (en) 2018-01-19 2018-01-19 Method and device for opening local application program on webpage and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810055252.2A CN108256312B (en) 2018-01-19 2018-01-19 Method and device for opening local application program on webpage and mobile terminal

Publications (2)

Publication Number Publication Date
CN108256312A true CN108256312A (en) 2018-07-06
CN108256312B CN108256312B (en) 2020-11-27

Family

ID=62741953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810055252.2A Active CN108256312B (en) 2018-01-19 2018-01-19 Method and device for opening local application program on webpage and mobile terminal

Country Status (1)

Country Link
CN (1) CN108256312B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273950A (en) * 2019-12-31 2020-06-12 百度国际科技(深圳)有限公司 Application awakening method and device, electronic equipment and computer readable storage medium
CN111726663A (en) * 2020-06-10 2020-09-29 海信视像科技股份有限公司 Display device and control method for establishing connection with display device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425926A (en) * 2012-05-14 2013-12-04 腾讯科技(深圳)有限公司 Application program starting method, list configuring method, terminal and server
CN106528657A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 Control method and device for browser skipping to application program
CN107370740A (en) * 2017-07-28 2017-11-21 北京五八信息技术有限公司 Redirect hold-up interception method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425926A (en) * 2012-05-14 2013-12-04 腾讯科技(深圳)有限公司 Application program starting method, list configuring method, terminal and server
CN106528657A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 Control method and device for browser skipping to application program
CN107370740A (en) * 2017-07-28 2017-11-21 北京五八信息技术有限公司 Redirect hold-up interception method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273950A (en) * 2019-12-31 2020-06-12 百度国际科技(深圳)有限公司 Application awakening method and device, electronic equipment and computer readable storage medium
CN111273950B (en) * 2019-12-31 2023-03-21 百度国际科技(深圳)有限公司 Application awakening method and device, electronic equipment and computer readable storage medium
CN111726663A (en) * 2020-06-10 2020-09-29 海信视像科技股份有限公司 Display device and control method for establishing connection with display device
WO2021248647A1 (en) * 2020-06-10 2021-12-16 海信视像科技股份有限公司 Display device, and control method for establishing connection with display device

Also Published As

Publication number Publication date
CN108256312B (en) 2020-11-27

Similar Documents

Publication Publication Date Title
EP2720135B1 (en) Data transmission method, data transmission device and terminal provided with touch screen
CN108255683B (en) Method for prompting message in terminal and terminal
CN108710456A (en) Application icon processing method, device and mobile terminal
CN108664475A (en) Translate display methods, device, mobile terminal and storage medium
CN108021642A (en) Application program recommends method, apparatus, mobile terminal and storage medium
CN108228025A (en) message display method, device, mobile terminal and storage medium
CN108990105A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN108647050A (en) Application program launching method, device and mobile terminal
CN108646959A (en) Screen control method, device and mobile terminal
CN108512997A (en) Display methods, device, mobile terminal and storage medium
CN108345422A (en) Application control method, apparatus, mobile terminal and computer-readable medium
CN110557499B (en) Information processing method and device and mobile terminal
CN108769299A (en) Screen control method, device and mobile terminal
CN108804005A (en) terminal control method, device and mobile terminal
CN108881608A (en) Web data screen method, device and mobile terminal
CN108763297A (en) Web page resources processing method, device and mobile terminal
CN108235237A (en) data reporting method, device, mobile terminal and computer-readable medium
CN108256312A (en) Webpage opens the method, device and mobile terminal of local application
CN108494851B (en) Application program recommended method, device and server
CN108763243A (en) Application program recommends method, apparatus, mobile terminal and server
CN108803961A (en) Data processing method, device and mobile terminal
CN109086113A (en) Screenshotss method, apparatus and mobile terminal
CN108769396A (en) Display control method, device, electronic device and storage medium
CN107819938A (en) Footmark collocation method, device, mobile terminal and server
CN108536407B (en) Text display method, device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant