CN106294839A - A kind of link jump method and device - Google Patents

A kind of link jump method and device Download PDF

Info

Publication number
CN106294839A
CN106294839A CN201610692553.7A CN201610692553A CN106294839A CN 106294839 A CN106294839 A CN 106294839A CN 201610692553 A CN201610692553 A CN 201610692553A CN 106294839 A CN106294839 A CN 106294839A
Authority
CN
China
Prior art keywords
network address
described network
application
open
accesses
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
CN201610692553.7A
Other languages
Chinese (zh)
Other versions
CN106294839B (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.)
Shenzhen Hengyan Innovation Technology Co ltd
Original Assignee
Beijing Yun Ai Science And Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yun Ai Science And Technology Ltd filed Critical Beijing Yun Ai Science And Technology Ltd
Priority to CN201610692553.7A priority Critical patent/CN106294839B/en
Publication of CN106294839A publication Critical patent/CN106294839A/en
Application granted granted Critical
Publication of CN106294839B publication Critical patent/CN106294839B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments provide a kind of link jump method and installation method and device, relate to intelligent mobile terminal technical field.Whether described method includes: make mistakes when monitoring the first application is by page access component accesses network address;If made mistakes during by page access component accesses network address, then obtain described network address;Described network address is accessed by the second application of the corresponding described network address of the 3rd component call.The present invention can be when webview access network address be unsuccessful, and the second application using the 3rd component call can open this network address accesses this network address, such that it is able to normally open the page of corresponding network address.

Description

A kind of link jump method and device
Technical field
The present invention relates to intelligent mobile terminal technical field, particularly relate to a kind of link jump method and installation method and Device.
Background technology
In intelligent mobile terminal, user for convenience, develop a lot of APP(application, application), Yong Huke To access H5(HTML5, HyperText Markup Language 5, HTML 5 by application) page, and very Many H5 page has the button redirecting corresponding website on the page.
In first technology, in the H5 page that a lot of APP open, it is to use webpage view component webview to render the page, But if link corresponding to above-mentioned button does not starts with http or https, such WebView assembly can not identify This link, can show error information, cause page jump unsuccessful.
Summary of the invention
In view of the above problems, the present invention proposes a kind of link jump method and corresponding device, and it is in page access group When part redirects unsuccessfully, use system the 3rd component call to should network address second application access corresponding network address, raising redirects Success rate.
In order to solve the problems referred to above, the invention discloses a kind of link jump method, including:
Whether make mistakes when monitoring the first application is by page access component accesses network address;
If made mistakes during by page access component accesses network address, then obtain described network address;
Described network address is accessed by the second application of the corresponding described network address of the 3rd component call.
Preferably, if described by page access component accesses network address time make mistakes, then obtain described network address step, bag Include:
If the network address of web page windows component accesses is made mistakes, then notify, by call back function, the network address that the first application makes mistakes.
Preferably, described the second application passing through the corresponding described network address of the 3rd component call accesses the step of described network address, Including:
Resolve described network address according to pre-defined rule, and judge whether system exists the second application that can open described network address;
If system exists the second application that can open described network address, then notified the of corresponding described network address by the 3rd assembly Two application access described network address.
Preferably, described according to the pre-defined rule described network address of parsing, and judge whether system exists to open described net The step of the second application of location, including:
From multiple pre-defined rules, resolve described network address according to pre-defined rule one by one, and judge whether system exists and can open Second application of described network address, until there is the second application that can open described network address in judgement system, or is completely absent The second application of described network address can be opened.
Preferably, the step of described the second application described network address of access being notified corresponding described network address by the 3rd assembly, Including:
Applied by intent component call second, and described network address is sent to the second application opens.
Preferably, the step of described the second application described network address of access being notified corresponding described network address by the 3rd assembly, Including:
Applied by NSURL component call second, and described network address is sent to the second application opens.
The invention also discloses a kind of link and redirect device, including:
Whether monitoring module, made mistakes when monitoring first is applied by page access component accesses network address;
Website acquisition module, if made mistakes when by page access component accesses network address, then obtains described network address;
Calling module, for accessing described network address by the second application of the corresponding described network address of the 3rd component call.
Preferably, described website acquisition module includes:
First website acquisition module, if made mistakes for the network address of web page windows component accesses, then notifies the by call back function One applies the network address made mistakes.
Preferably, described calling module includes:
Judge submodule, for resolving described network address according to pre-defined rule, and judge whether system exists to open described net Second application of location;
First calls submodule, if there is the second application that can open described network address in system, then by the 3rd assembly Notify that the second application of corresponding described network address accesses described network address.
Preferably, described judgement submodule includes:
Cycle criterion submodule, for from multiple pre-defined rules, resolves described network address according to pre-defined rule one by one, and judge be Whether system exists can open described network address second application, until in judgement system exist can open described network address second should With, or it is completely absent the second application that can open described network address.
Preferably, described first call submodule and include:
Intent calls submodule, for being applied by intent component call second, and described network address is sent to second should With opening.
Preferably, described first call submodule and include:
NSURL calls submodule, for being applied by NSURL component call second, and described network address is sent to the second application Open.
Relative in first technology, the scheme that the present invention provides, monitoring the first application is by page access component accesses network address Time whether make mistakes, if made mistakes during by page access component accesses network address, then obtain described network address;By the 3rd component call Second application of corresponding described network address accesses described network address, can use the 3rd assembly when webview access network address is unsuccessful Call second application this network address of access that can open this network address, such that it is able to normally open the page of corresponding network address.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 shows the steps flow chart block diagram linking jump method according to an embodiment of the invention;
Fig. 2 shows the steps flow chart block diagram linking jump method according to an embodiment of the invention;
Fig. 3 shows that link according to an embodiment of the invention redirects the structured flowchart of device;
Fig. 4 shows that link according to an embodiment of the invention redirects the structured flowchart of device;
Fig. 5 shows that link according to an embodiment of the invention redirects the structured flowchart of equipment.
Detailed description of the invention
In some flow processs of description in description and claims of this specification and above-mentioned accompanying drawing, contain according to Particular order occur multiple operations, but it should be clearly understood that these operation can not according to its occur in this article suitable Sequence performs or executed in parallel, the sequence number of operation such as 101,102 etc., is only used for distinguishing each different operation, sequence number Itself does not represent any execution sequence.It addition, these flow processs can include more or less of operation, and these operations can To perform in order or executed in parallel.It should be noted that " first ", " second " herein etc. describe, it is for distinguishing not Message together, equipment, module etc., do not represent sequencing, and not limiting " first " and " second " is different types.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, the every other enforcement that those skilled in the art are obtained under not making creative work premise Example, broadly falls into the scope of protection of the invention.
Embodiment one
With reference to Fig. 1, it illustrates a kind of steps flow chart block diagram linking jump method of the embodiment of the present invention, including:
Whether step 110, make mistakes when monitoring the first application is by page access component accesses network address;
First application of the present invention can be the APP of non-browser, and this first application uses webview assembly to show the H5 page.
In actual applications, the H5 page much shown in APP provides various button, and user can click on and press accordingly Button jumps to respective page.It is appreciated that user clicks on the corresponding button, then triggers the link clicking on correspondence, thus can With the process carrying out redirecting to the corresponding page.
Webpage view component: WebView, the control showing webpage in APP in Android system, WebView is permissible Webpage is embedded in app easily, it is also possible to directly mutually call with js.Certainly, at IOS system (such as i Phone System) in, it is possible to use IOS system WebView application in access webpage.
And in embodiments of the present invention, after user opens the first application, in the first application, open certain H5 page, the One application is then opened this page by webview.When this H5 page has the button redirecting link, press if user clicks on this Button, then webview resets and accesses this link.When this link is with http(HTTP-Hypertext transfer protocol, HTTP) or with https(Hypertext Transfer Protocol Secure, Hyper text transfer safety Agreement) etc. webView support URL format beginning link, then webview then there will be access errors to this link.
Such as corresponding being linked as of this button:
taobao://shop.m.taobao.com/shop/shop_index.htm?shop_id=137339183&point=% 7B%22from%22%3A%22h5%22%2C%22url%22%3A%22https%3A%2F% 2Fshop137339183.m.taobao.com%2F%22%2C%22h5_uid%22%3A% 22s6vmD0PRvTwCAc9R8HLLRCiq%22%2C%22uaPoint%22%3A%22Mozilla%2F5.0%2520(Linux% 3B%2520Android%25206.0.1%3B%2520Nexus%25205%2520Build%2FMMB29K%3B%2520wv)% 2520AppleWebKit%2F537.36%2520(KHTML%2C%2520like%2520Gecko)%2520Version%2F4.0% 2520Chrome%2F44.0.2403.117%2520Mobile%2520Safari%2F537.36%22%7D
So, for above-mentioned link, its beginning is taobao: //, then webview there will be access errors, and it there will be ERR_ The error information of UNKNOWN_URL_SCHEME, represents its URL format being linked as nonrecognition accessed.
In embodiments of the present invention, then monitoring webview occur when accessing link its access be linked as nonrecognition The mistake of URL format.
Step 120, if made mistakes during by page access component accesses network address, then obtains described network address;
In embodiments of the present invention, it is possible to use WebView assembly removes to obtain the web page contents of described network address on backstage, and right WebView assembly continues to show webpage when user clicks on.When WebView obtains the web page contents success of described network address, then profit Rendering this web page contents with WebView, webpage when user being clicked on redirects as webpage corresponding to above-mentioned network address.Work as WebView When obtaining the web page contents failure of described network address, then WebView is utilized to change corresponding Button Color into first color, the reddest Color, it is of course also possible to analyze the second application that this network address is corresponding, then obtains the logo picture of the second application, is schemed by this logo Sheet is added in this button, such that it is able to where prompting technical staff makes mistakes, facilitates it to modify.It addition, the present invention implements Example can obtain display interface picture after changing Button Color and/or adding logo picture and carry out record, so can be right In UI automatic test course, in the way of picture, carry out record by redirecting the button gone wrong, facilitate technical staff to search phase Pass code is modified.It is, of course, also possible to the position of this network address in the code of APP to be stamped error flag, more convenient technology people Member checks and revises.
In embodiments of the present invention, if monitoring webview access aforementioned link mistake occurs, then above-mentioned chain is obtained Connect, enter step 130.Whereas if aforementioned mistake does not occurs in webview, the most do not carry out subsequent treatment.
Preferably, if described by page access component accesses network address time make mistakes, then obtain described network address step, bag Include:
If the network address of web page windows component accesses is made mistakes, then notify, by call back function, the network address that the first application makes mistakes.
In embodiments of the present invention, after the webview aforementioned mistake of appearance can be monitored, webview can be intercepted and eject This mistake, then utilizes call back function to obtain this link, notifies this network address made mistakes of process of the first application simultaneously.
Being appreciated that the embodiment of the present invention can arrange a call back function in advance in webview, this call back function exists Triggering during ERR_UNKNOWN_URL_SCHEME occurs in webview, and its function includes the link obtained when makeing mistakes, and by this link Return to the process of the first application.
Step 130, accesses described network address by the second application of the corresponding described network address of the 3rd component call.
In embodiments of the present invention, above-mentioned call back function by above-mentioned connection to first application process after, first application Process, accesses described above-mentioned link by the second application of the 3rd corresponding described network address of component call, the most then not in use by the The webview of one application goes to access this link, then uses the second application to access this link.
Preferably, described the second application passing through the corresponding described network address of the 3rd component call accesses the step of described network address, Including:
Whether sub-step 131, resolves described network address according to pre-defined rule, and judge to exist in system and can open the of described network address Two application;
, if there is the second application that can open described network address in system, then by the 3rd corresponding institute of assembly notice in sub-step 132 The second application stating network address accesses described network address.
In actual applications, the link of different websites, its structure may be different, and the present invention is then according to corresponding website Pre-defined rule resolves this link, the most therefrom extracts the keyword in precalculated position, then applies according to this keyword and second Corresponding relation, it is judged that whether there is the second application that can open this link in the system of mobile terminal.
Certainly, in actual applications, the acquisition authority installing APP of application system can be gone, then according to keyword With the corresponding relation of the second Apply Names, go to search corresponding second application from the list of installation of system, if it is found, then By this second application of the 3rd component call, notify that it opens this link.
The most aforementioned taobao: //shop.m.taobao.com/shop/shop_index.htm?shop_id= 137339183&point=%7B%22from%22%3A%22h5%22%2C%22url%22%3A%22https%3A%2F% 2Fshop137339183.m.taobao.com%2F%22%2C%22h5_uid%22%3A% 22s6vmD0PRvTwCAc9R8HLLRCiq%22%2C%22uaPoint%22%3A%22Mozilla%2F5.0%2520(Linux% 3B%2520Android%25206.0.1%3B%2520Nexus%25205%2520Build%2FMMB29K%3B%2520wv)% 2520AppleWebKit%2F537.36%2520(KHTML%2C%2520like%2520Gecko)%2520Version%2F4.0% 2520Chrome%2F44.0.2403.117%2520Mobile%2520Safari%2F537.3 6%22%7D, then can therefrom carry Take header fields " taobao: // ", then go to search the second corresponding Apply Names with header fields, then go system is searched Whether there is corresponding second application of installation.
Certainly, without installing corresponding second application, then can be that the download link of this second application is supplied to User, facilitates user to download.Monitor user download installation this second application after, this second user can be directly invoked and open Above-mentioned link.
If do not found, then user can be pointed out cannot to open this link.
Preferably, described according to the pre-defined rule described network address of parsing, and judge whether system exists to open described net The step of the second application of location, including:
Whether sub-step 133, from multiple pre-defined rules, resolve described network address according to pre-defined rule one by one, and judge in system Existence can open the second application of described network address, until judgement system exists the second application that can open described network address, or It is completely absent the second application that can open described network address.
In this application, pre-defined rule can be set for the network address of different websites, with to the chain that aforementioned mistake occurs Tap into row parsing.The most aforementioned with " taobao: // " link that starts, the most such as with " tmall: // " link that starts, certainly, There is likely to be the link of extended formatting, respective links has its special APP to open.The link of different websites its make a reservation for Rule is agree can be different, it is also possible to identical.
Link can first be resolved by so the application with a predetermined regulation, and such as resolving concatenated key is its head Whether portion's field, then have the second Apply Names of correspondence from the second application list with this header fields coupling, if coupling On, then there is the second application that can open this link in explanation.Then go with this second Apply Names in the installation list of system Searching whether to be mounted with this application, if be mounted with, then by this second application of the 3rd component call, notifying that it opens this chain Connect.
So, when extracting keyword according to a pre-defined rule, then in the second application list, corresponding second is not found During Apply Names, then can continue to extract keyword according to next pre-defined rule, then look for corresponding in the second application list The second Apply Names.Until finding the second Apply Names, then enter subsequently through corresponding second application of the 3rd component call Open the process of aforementioned link.Or until whole pre-defined rules have resolved and have been much to seek the second Apply Names, then can stop Subsequent process, points out user error.
Preferably, the step of described the second application described network address of access being notified corresponding described network address by the 3rd assembly, Including:
Sub-step A11, is applied by intent component call second, and described network address is sent to the second application opens.
Certainly, for this step, aforesaid page access assembly is then the page access assembly of Android system.Can also manage Solve and perform in Android system for abovementioned steps.
In embodiments of the present invention, as a example by Android system, the 3rd assembly can be intent assembly, and it can use Intent component call second is applied, and described network address is sent to the second application opens.This intent assembly mainly solves Communication between every assembly of Android application, Intent is responsible for the action of once-through operation in application, action are related to number Being described according to, additional data, Android then according to the description of this Intent, is responsible for finding the assembly of correspondence, by Intent Pass to the assembly called, and complete calling of assembly.
In embodiments of the present invention, in sub-step A11, first create Intent () object;Then call Intent.setAction function calls the action of the second application to intent registration;Then by Uri.parse (url) function Obtain the aforementioned link made mistakes;Then the url write that intent.setData (content_url) function will get is called Intent, wherein content_url=Uri.parse (url);Then in write, then after stating the link made mistakes before write, Call startActivity (intent) function, call corresponding second application, and the aforementioned link made mistakes is sent to second should With access.Its false code is as follows:
Intent intent= new Intent();
intent.setAction("android.intent.action.VIEW");
Uri content_url = Uri.parse(url);
intent.setData(content_url);
startActivity(intent);
Wherein, url is the aforementioned link made mistakes, as " taobao: // ... " link.In embodiments of the present invention, Ke Yitong Cross url " taobao: // ... identifying the parameter of application identities in ", such as " taobao: // " identifies Taobao's application.Other Situation is similar to.
Preferably, the step of described the second application described network address of access being notified corresponding described network address by the 3rd assembly, Including:
Sub-step A12, is applied by NSURL component call second, and described network address is sent to the second application opens.
In embodiments of the present invention, in iOS system (Fructus Mali pumilae system, the system that i Phone, pad use), the 3rd Assembly can be NSURL assembly.NSURL assembly is the grip assembly that link is processed by iOS system.
Certainly, for this step, aforesaid page access assembly is then the page access assembly of iOS system.Can also manage Solve and perform in iOS system for abovementioned steps.
Needing to call the second application with the link opened for aforementioned, the embodiment of the present invention can first pass through NSURL and create NSURLRequest, it is possible to specify caching rule and time-out time;Then for NSURLRequest, pass through NSURLRequestrequestWithURL obtains the aforementioned link made mistakes;Then webViewloadRequest function, calls This link is opened in corresponding second application.Its false code is as follows:
NSURLRequest *request =[NSURLRequestrequestWithURL:[NSURL URLWithString: urlStr]];
[webViewloadRequest:request];
Wherein, urlStr is the aforementioned link made mistakes got.In embodiments of the present invention, url can be passed through " taobao: // ... identify the parameter of application identities in ", such as " taobao: // " identify Taobao's application.Other situations Similar.
In embodiments of the present invention, for monitoring WebView component accesses network address whether make mistakes time, it is possible to use WebView assembly removes to obtain the web page contents of described network address on backstage, and continues WebView assembly to show when user clicks on Webpage.When WebView obtains the web page contents success of described network address, then WebView is utilized to render this web page contents, by user's point Webpage when hitting redirects as webpage corresponding to above-mentioned network address.When WebView obtains the web page contents failure of described network address, then profit Corresponding Button Color is changed into first color with WebView, such as red, it is of course also possible to analyze that this network address is corresponding Two application, then obtain the logo picture of the second application, are added in this button by this logo picture, such that it is able to redirecting Cheng Jinhang reminds, and makes mistakes such that it is able to point out that button in technical staff's webpage to redirect, facilitates it to modify.It addition, this Inventive embodiments can obtain display interface picture after changing Button Color and/or adding logo picture and carry out record, so In the way of picture, record can be carried out by redirecting the button gone wrong in UI automatic test course, facilitates technology people Member searches correlative code and modifies.It is, of course, also possible to error flag is stamped in the position of this network address in the code of APP, more square Just technical staff checks and revises.
Whether the scheme that the present invention provides, make mistakes when monitoring the first application is by page access component accesses network address, if Make mistakes during by page access component accesses network address, then obtain described network address;By the corresponding described network address of the 3rd component call Second application accesses described network address, the 3rd component call can be used can to open this when webview access network address is unsuccessful Second application of network address accesses this network address, such that it is able to normally open the page of corresponding network address.
Embodiment two
With reference to Fig. 2, it illustrates a kind of steps flow chart block diagram linking jump method of the embodiment of the present invention, including:
Whether step 210, make mistakes when monitoring the first application is by page access component accesses network address;
Step 220, if made mistakes during by page access component accesses network address, then obtains described network address;
Step 230, from multiple pre-defined rules, resolves described network address according to pre-defined rule one by one, and judges whether deposit in system The second application of described network address can opened, until judgement system exists the second application that can open described network address or complete Entirely there is not the second application that can open described network address.
, if there is the second application that can open described network address in system, then by the 3rd assembly notice correspondence in step 240 Second application of described network address accesses described network address.
The step of the embodiment of the present invention is similar with embodiment one, is not describing in detail at this.
The embodiment of the present invention, can use the 3rd component call can open this when webview access network address is unsuccessful Second application of network address accesses this network address, such that it is able to normally open the page of corresponding network address.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but this area Technical staff should know, the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention Example, some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should know, description Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
Embodiment three
With reference to Fig. 3, it illustrates a kind of structured flowchart linking jump method of the embodiment of the present invention, including:
Whether monitoring module 310, made mistakes when monitoring first is applied by page access component accesses network address;
Website acquisition module 320, if made mistakes when by page access component accesses network address, then obtains described network address;
Calling module 330, for accessing described network address by the second application of the corresponding described network address of the 3rd component call.
Preferably, described website acquisition module includes:
First website acquisition module, if made mistakes for the network address of web page windows component accesses, then notifies the by call back function One applies the network address made mistakes.
Preferably, described calling module includes:
Judge submodule, for resolving described network address according to pre-defined rule, and judge whether system exists to open described net Second application of location;
First calls submodule, if there is the second application that can open described network address in system, then by the 3rd assembly Notify that the second application of corresponding described network address accesses described network address.
Preferably, described judgement submodule includes:
Cycle criterion submodule, for from multiple pre-defined rules, resolves described network address according to pre-defined rule one by one, and judge be Whether system exists can open described network address second application, until in judgement system exist can open described network address second should With, or it is completely absent the second application that can open described network address.
Preferably, described first call submodule and include:
Intent calls submodule, for being applied by intent component call second, and described network address is sent to second should With opening.
Preferably, described first call submodule and include:
NSURL calls submodule, for being applied by NSURL component call second, and described network address is sent to the second application Open.
Whether the scheme that the present invention provides, make mistakes when monitoring the first application is by page access component accesses network address, if Make mistakes during by page access component accesses network address, then obtain described network address;By the corresponding described network address of the 3rd component call Second application accesses described network address, the 3rd component call can be used can to open this when webview access network address is unsuccessful Second application of network address accesses this network address, such that it is able to normally open the page of corresponding network address.
Embodiment four
With reference to Fig. 4, it illustrates a kind of structured flowchart linking jump method of the embodiment of the present invention.
Whether monitoring module 410, made mistakes when monitoring first is applied by page access component accesses network address;
Website acquisition module 420, if made mistakes when by page access component accesses network address, then obtains described network address;
Calling module 430, for accessing described network address by the second application of the corresponding described network address of the 3rd component call;Concrete bag Include:
Judge submodule 431, for resolving described network address according to pre-defined rule, and judge whether system exists can open described Second application of network address;Specifically include: cycle criterion submodule 4311, for from multiple pre-defined rules, one by one according to predetermined Network address described in rule parsing, and judge whether system exists the second application that can open described network address, until in judgement system Existence can open the second application of described network address, or is completely absent the second application that can open described network address.
First calls submodule 432, if there is the second application that can open described network address in the system, then by the Three assemblies notify that the second application of corresponding described network address accesses described network address.
The embodiment of the present invention can use the 3rd component call can open this when webview access network address is unsuccessful Second application of network address accesses this network address, such that it is able to normally open the page of corresponding network address.
The embodiment of the present invention can ensure that the access of oneself page is not robbed by the second application by a wifi application Hold, make the content of the page of user's normal browsing the second application, not cause the user puzzlement.
The embodiment of the present invention additionally provides a kind of link and redirects equipment, as it is shown in figure 5, for convenience of description, illustrate only The part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and refer to embodiment of the present invention method part.This is eventually End can be to include mobile phone, panel computer, PDA(Personal Digital Assistant, personal digital assistant), POS The arbitrarily terminal unit such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, as a example by terminal is as mobile phone:
Fig. 5 is illustrated that the block diagram of the part-structure of the mobile phone relevant to the terminal of embodiment of the present invention offer.With reference to Fig. 5, hands Machine includes: radio frequency (Radio Frequency, RF) circuit 510, memorizer 520, input block 530, display unit 540, sensing Device 550, voicefrequency circuit 560, Wireless Fidelity (wireless fidelity, WiFi) module 550, processor 580 and power supply 590 parts such as grade.It will be understood by those skilled in the art that the handset structure shown in Fig. 5 is not intended that the restriction to mobile phone, permissible Illustrate more or less of parts including ratio, or combine some parts, or different parts are arranged.
Below in conjunction with Fig. 5 each component parts of mobile phone carried out concrete introduction:
RF circuit 510 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, and descending by base station After information receives, process to processor 580;It addition, be sent to base station by designing up data.Generally, RF circuit 510 includes But be not limited to antenna, at least one amplifier, transceiver, bonder, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuit 510 can also be communicated with network and other equipment by radio communication.Above-mentioned channel radio Letter can use arbitrary communication standard or agreement, includes but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memorizer 520 can be used for storing software program and module, and processor 580 is stored in memorizer 520 by operation Software program and module, thus perform mobile phone various functions application and data process.Memorizer 520 can mainly include Storage program area and storage data field, wherein, storage program area can store the application journey needed for operating system, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can store what the use according to mobile phone was created Data (such as voice data, phone directory etc.) etc..Additionally, memorizer 520 can include high-speed random access memory, it is also possible to Including nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state Part.
Input block 530 can be used for receiving numeral or the character information of input, and produce with the user setup of mobile phone with And function controls relevant key signals input.Specifically, input block 530 can include that contact panel 531 and other inputs set Standby 532.Contact panel 531, also referred to as touch screen, can collect user thereon or neighbouring touch operation (such as user uses Any applicable object such as finger, stylus or adnexa operation on contact panel 531 or near contact panel 531), and root Corresponding attachment means is driven according to formula set in advance.Optionally, contact panel 531 can include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect the signal that touch operation brings, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinates, then give processor 580, and order that processor 580 sends can be received and performed.Furthermore, it is possible to use electricity The polytypes such as resistive, condenser type, infrared ray and surface acoustic wave realize contact panel 531.Except contact panel 531, input Unit 530 can also include other input equipments 532.Specifically, other input equipments 532 can include but not limited to secondary or physical bond One or more in dish, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 540 can be used for the various of the information that inputted by user of display or the information being supplied to user and mobile phone Menu.Display unit 540 can include display floater 541, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) configure aobvious Show panel 541.Further, contact panel 531 can cover display floater 541, when contact panel 531 detects thereon or attached After near touch operation, send processor 580 to determine the type of touch event, with preprocessor 580 according to touch event Type corresponding visual output is provided on display floater 541.Although in Figure 5, contact panel 531 and display floater 541 It is to realize input and the input function of mobile phone as two independent parts, but in some embodiments it is possible to by touch-control Panel 531 is integrated with display floater 541 and realizes input and the output function of mobile phone.
Mobile phone may also include at least one sensor 550, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor can include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light Light and shade regulate the brightness of display floater 541, proximity transducer can cut out display floater 541 when mobile phone moves in one's ear And/or backlight.As the one of motion sensor, accelerometer sensor can detect (generally three axles) acceleration in all directions Size, can detect that size and the direction of gravity time static, can be used for identify mobile phone attitude application (such as horizontal/vertical screen is cut Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;Also may be used as mobile phone Other sensors such as the gyroscope of configuration, barometer, drimeter, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 560, speaker 561, microphone 562 can provide the audio interface between user and mobile phone.Audio-frequency electric The signal of telecommunication after the voice data conversion that road 560 can will receive, is transferred to speaker 561, speaker 561 is converted to sound Signal exports;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 562, voicefrequency circuit 560 turn after receiving It is changed to voice data, then after voice data output processor 580 is processed, through RF circuit 510 to be sent to such as another mobile phone, Or voice data is exported to memorizer 520 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 550 Part, browsing webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 5 shows WiFi module 550, but it is understood that, it is also not belonging to must be configured into of mobile phone, can not change as required completely Omit in the scope of the essence becoming invention.
Processor 580 is the control centre of mobile phone, utilizes various interface and the various piece of the whole mobile phone of connection, logical Cross operation or perform to be stored in the software program in memorizer 520 and/or module, and calling and be stored in memorizer 520 Data, perform the various functions of mobile phone and process data, thus mobile phone is carried out integral monitoring.Optionally, processor 580 can wrap Include one or more processing unit;Preferably, processor 580 can integrated application processor and modem processor, wherein, should Mainly process operating system, user interface and application program etc. with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated in processor 580.
Mobile phone also includes the power supply 590(such as battery powered to all parts), it is preferred that power supply can pass through power supply pipe Reason system is logically contiguous with processor 580, thus realizes management charging, electric discharge and power managed by power-supply management system Etc. function.
Although not shown, mobile phone can also include photographic head, bluetooth module etc., does not repeats them here.
In embodiments of the present invention, the processor 580 included by this terminal also has a following functions:
Whether make mistakes when monitoring the first application is by page access component accesses network address;
If made mistakes during by page access component accesses network address, then obtain described network address;
Described network address is accessed by the second application of the corresponding described network address of the 3rd component call.
Certainly, processor can also carry out above-mentioned other can be in the step of the method for place equipment side.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the system of foregoing description, The specific works process of device and unit, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method are permissible Realize by another way.Such as, device embodiment described above is only schematically, such as, and described unit Dividing, be only a kind of logic function and divide, actual can have other dividing mode, the most multiple unit or assembly when realizing Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completing instructing relevant hardware by program, this program can be stored in a computer-readable recording medium, storage Medium may include that read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is permissible Instructing relevant hardware by program to complete, described program can be stored in a kind of computer-readable recording medium, on Stating the storage medium mentioned can be read only memory, disk or CD etc..
Above a kind of link provided by the present invention is redirected equipment to be described in detail, for the general skill of this area Art personnel, according to the thought of the embodiment of the present invention, the most all will change, to sum up institute Stating, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. a link jump method, it is characterised in that including:
Whether make mistakes when monitoring the first application is by page access component accesses network address;
If made mistakes during by page access component accesses network address, then obtain described network address;
Described network address is accessed by the second application of the corresponding described network address of the 3rd component call.
Method the most according to claim 1, it is characterised in that if described by page access component accesses network address time go out Mistake, then obtain described network address step, including:
If the network address of web page windows component accesses is made mistakes, then notify, by call back function, the network address that the first application makes mistakes.
Method the most according to claim 1 and 2, it is characterised in that described pass through the 3rd corresponding described network address of component call Second application access described network address step, including:
Resolve described network address according to pre-defined rule, and judge whether system exists the second application that can open described network address;
If system exists the second application that can open described network address, then notified the of corresponding described network address by the 3rd assembly Two application access described network address.
Method the most according to claim 3, it is characterised in that described according to the pre-defined rule described network address of parsing, and judge Whether system exists the step of the second application that can open described network address, including:
From multiple pre-defined rules, resolve described network address according to pre-defined rule one by one, and judge whether system exists and can open Second application of described network address, until there is the second application that can open described network address in judgement system, or is completely absent The second application of described network address can be opened.
Method the most according to claim 3, it is characterised in that described notified the of corresponding described network address by the 3rd assembly Two application access the step of described network address, including:
Applied by intent component call second, and described network address is sent to the second application opens.
Method the most according to claim 3, it is characterised in that described notified the of corresponding described network address by the 3rd assembly Two application access the step of described network address, including:
Applied by NSURL component call second, and described network address is sent to the second application opens.
7. a link redirects device, it is characterised in that including:
Whether monitoring module, made mistakes when monitoring first is applied by page access component accesses network address;
Website acquisition module, if made mistakes when by page access component accesses network address, then obtains described network address;
Calling module, for accessing described network address by the second application of the corresponding described network address of the 3rd component call.
Device the most according to claim 7, it is characterised in that described website acquisition module includes:
First website acquisition module, if made mistakes for the network address of web page windows component accesses, then notifies the by call back function One applies the network address made mistakes.
9. according to the device described in claim 7 or 8, it is characterised in that described calling module includes:
Judge submodule, for resolving described network address according to pre-defined rule, and judge whether system exists to open described net Second application of location;
First calls submodule, if there is the second application that can open described network address in system, then by the 3rd assembly Notify that the second application of corresponding described network address accesses described network address.
Device the most according to claim 9, it is characterised in that described judgement submodule includes:
Cycle criterion submodule, for from multiple pre-defined rules, resolves described network address according to pre-defined rule one by one, and judge be Whether system exists can open described network address second application, until in judgement system exist can open described network address second should With, or it is completely absent the second application that can open described network address.
CN201610692553.7A 2016-08-20 2016-08-20 A kind of link jump method and device Active CN106294839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610692553.7A CN106294839B (en) 2016-08-20 2016-08-20 A kind of link jump method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610692553.7A CN106294839B (en) 2016-08-20 2016-08-20 A kind of link jump method and device

Publications (2)

Publication Number Publication Date
CN106294839A true CN106294839A (en) 2017-01-04
CN106294839B CN106294839B (en) 2019-09-27

Family

ID=57661646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610692553.7A Active CN106294839B (en) 2016-08-20 2016-08-20 A kind of link jump method and device

Country Status (1)

Country Link
CN (1) CN106294839B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970977A (en) * 2017-03-28 2017-07-21 腾讯音乐娱乐(深圳)有限公司 A kind of webpage redirects processing method and processing device
CN107977566A (en) * 2017-11-27 2018-05-01 珠海市君天电子科技有限公司 A kind of function triggering method, device and electronic equipment
CN108810003A (en) * 2018-06-21 2018-11-13 吉旗(成都)科技有限公司 A kind of safety verification scheme of multi-service side's message access
CN109600418A (en) * 2018-11-05 2019-04-09 阿里巴巴集团控股有限公司 Track method, apparatus, equipment and the system of application access
CN109802925A (en) * 2017-11-17 2019-05-24 广州市动景计算机科技有限公司 A kind of authentication method and system of public WiFi access
CN109933734A (en) * 2019-02-28 2019-06-25 广州华多网络科技有限公司 A kind of jump method of the page, device, system and storage medium
WO2021068634A1 (en) * 2019-10-08 2021-04-15 北京字节跳动网络技术有限公司 Page jump method and apparatus, electronic device and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060057179A (en) * 2004-11-23 2006-05-26 에스케이 텔레콤주식회사 Method of handling the http 301/302 error in wap-gateway
CN1866956A (en) * 2005-12-23 2006-11-22 华为技术有限公司 Method, mobile terminal and system for realizing webpage access
CN102902580A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Program callback method and device
US20130332277A1 (en) * 2012-06-11 2013-12-12 Retailmenot, Inc. Intents for offer-discovery systems
CN104346396A (en) * 2013-08-05 2015-02-11 腾讯科技(深圳)有限公司 Data processing method, device, terminal and system of instant messaging client
US20160277787A1 (en) * 2015-03-16 2016-09-22 Sony Computer Entertainment Inc. Information processing apparatus, video recording reservation supporting method, and computer program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060057179A (en) * 2004-11-23 2006-05-26 에스케이 텔레콤주식회사 Method of handling the http 301/302 error in wap-gateway
CN1866956A (en) * 2005-12-23 2006-11-22 华为技术有限公司 Method, mobile terminal and system for realizing webpage access
CN102902580A (en) * 2011-07-26 2013-01-30 腾讯科技(深圳)有限公司 Program callback method and device
US20130332277A1 (en) * 2012-06-11 2013-12-12 Retailmenot, Inc. Intents for offer-discovery systems
CN104346396A (en) * 2013-08-05 2015-02-11 腾讯科技(深圳)有限公司 Data processing method, device, terminal and system of instant messaging client
US20160277787A1 (en) * 2015-03-16 2016-09-22 Sony Computer Entertainment Inc. Information processing apparatus, video recording reservation supporting method, and computer program

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970977A (en) * 2017-03-28 2017-07-21 腾讯音乐娱乐(深圳)有限公司 A kind of webpage redirects processing method and processing device
CN109802925A (en) * 2017-11-17 2019-05-24 广州市动景计算机科技有限公司 A kind of authentication method and system of public WiFi access
CN109802925B (en) * 2017-11-17 2021-10-29 阿里巴巴(中国)有限公司 Authentication method and system for public WiFi access
CN107977566A (en) * 2017-11-27 2018-05-01 珠海市君天电子科技有限公司 A kind of function triggering method, device and electronic equipment
CN107977566B (en) * 2017-11-27 2021-03-19 珠海市君天电子科技有限公司 Function triggering method and device and electronic equipment
CN108810003A (en) * 2018-06-21 2018-11-13 吉旗(成都)科技有限公司 A kind of safety verification scheme of multi-service side's message access
CN108810003B (en) * 2018-06-21 2021-02-26 吉旗(成都)科技有限公司 Safety verification scheme for multi-service party message access
CN109600418A (en) * 2018-11-05 2019-04-09 阿里巴巴集团控股有限公司 Track method, apparatus, equipment and the system of application access
CN109600418B (en) * 2018-11-05 2021-04-20 创新先进技术有限公司 Method, device, equipment and system for tracking application access
CN109933734A (en) * 2019-02-28 2019-06-25 广州华多网络科技有限公司 A kind of jump method of the page, device, system and storage medium
CN109933734B (en) * 2019-02-28 2021-04-30 广州方硅信息技术有限公司 Page skipping method, device and system and storage medium
WO2021068634A1 (en) * 2019-10-08 2021-04-15 北京字节跳动网络技术有限公司 Page jump method and apparatus, electronic device and computer-readable storage medium

Also Published As

Publication number Publication date
CN106294839B (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN106294839A (en) A kind of link jump method and device
CN104135501B (en) Page sharing method, Apparatus and system
CN104426919B (en) Page sharing method, apparatus and system
US20160241589A1 (en) Method and apparatus for identifying malicious website
CN106254436A (en) A kind of method of remote debugging, relevant device and system
CN104636664B (en) Cross-site scripting attack leak detection method and device based on DOM Document Object Model
CN106201491A (en) Mobile terminal and mobile terminal remote assist course control method for use, device
CN107766358A (en) The method and relevant apparatus that a kind of page is shared
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
CN104217172B (en) Privacy content inspection method and device
CN106302808A (en) Data transmission method and mobile terminal
CN106603740B (en) It is connected to the network abnormal processing method and terminal device
CN104965831B (en) A kind of network address error correction method, server, terminal and system
CN103310007B (en) Webpage changing method, device and equipment
CN103617164B (en) Webpage prefetching method, device and terminal equipment
CN103399706B (en) Page interaction, device and terminal
CN103455602B (en) A kind of video URL grasping means, device and terminal device
CN106250122A (en) A kind of information cuing method and device
CN106201547A (en) Method, device and the mobile terminal that a kind of message based on mobile terminal shows
CN105955597A (en) Method and device for displaying information
CN106294108A (en) Applied program testing method and device
CN207251670U (en) The relevant device and system of a kind of data transfer
CN109102153A (en) A kind of identity management method and device
CN104750722B (en) A kind of acquisition of information and methods of exhibiting and device
CN110198324B (en) Data monitoring method and device, browser and terminal

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
TR01 Transfer of patent right

Effective date of registration: 20230316

Address after: 518000 1415, Complex Building 5, East Weifeng New Materials Plant, No. 2, Shengjia Road, Gaoqiao Community, Pingdi Street, Longgang District, Shenzhen, Guangdong Province

Patentee after: Shenzhen Hengyan Innovation Technology Co.,Ltd.

Address before: B-038, North Area, 2nd Floor, Building 1, Yard B12, Zhongguancun South Street, Haidian District, Beijing, 100081

Patentee before: WOLKAMO TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right