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

A kind of link jump method and device Download PDF

Info

Publication number
CN106294839B
CN106294839B CN201610692553.7A CN201610692553A CN106294839B CN 106294839 B CN106294839 B CN 106294839B CN 201610692553 A CN201610692553 A CN 201610692553A CN 106294839 B CN106294839 B CN 106294839B
Authority
CN
China
Prior art keywords
network address
application
component
access
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610692553.7A
Other languages
Chinese (zh)
Other versions
CN106294839A (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

The embodiment of the invention provides a kind of link jump methods and installation method and device, are related to intelligent mobile terminal technical field.The described method includes: whether the first application of monitoring when page access component accesses network address by malfunctioning;If obtaining the network address by malfunctioning when page access component accesses network address;Network address described in the second application access of the network address is corresponded to by third component call.The present invention can open the second application access of network address network address using third component call, so as to normally open the page of corresponding web site when webview access network address is unsuccessful.

Description

A kind of link jump method and device
Technical field
The present invention relates to intelligent mobile terminal technical field, more particularly to a kind of link jump method and installation method and Device.
Background technique
In intelligent mobile terminal, in order to facilitate user, many APP(application are developed, using), Yong Huke To pass through application access H5(HTML5, HyperText Markup Language 5, hypertext markup language 5) page, and very More H5 pages have the button for jumping corresponding website on the page.
It is that the page is rendered using webpage view component webview in the H5 page that many APP are opened in first technology, But if the corresponding link of above-mentioned button is started with http or https, such WebView component cannot be identified This link, can show error information, cause page jump unsuccessful.
Summary of the invention
In view of the above problems, the invention proposes a kind of link jump method and corresponding devices, in page access group When part jumps unsuccessfully, the second application access corresponding web site of the network address is corresponded to using the third component call of system, raising jumps Success rate.
To solve the above-mentioned problems, the invention discloses a kind of link jump methods, comprising:
Whether the first application of monitoring when page access component accesses network address by malfunctioning;
If obtaining the network address by malfunctioning when page access component accesses network address;
Network address described in the second application access of the network address is corresponded to by third component call.
Preferably, if when component accesses network address by page access malfunctions, the network address step is obtained, is wrapped It includes:
If the network address of web page windows component accesses malfunctions, the network address of the first application error is notified by call back function.
Preferably, described the step of network address described in second application access of the network address is corresponded to by third component call, Include:
The network address is parsed according to pre-defined rule, and is answered in judgement system with the presence or absence of the second of the openable network address With;
If there are the second applications of the openable network address in system, pass through the corresponding network address of third component notice The second application access described in network address.
Preferably, described to parse the network address according to pre-defined rule, and whether there is the openable net in judgement system The step of second application of location, comprising:
From multiple pre-defined rules, the network address is parsed according to pre-defined rule one by one, and whether there is in judgement system can The second application of the network address is opened, until there are the second applications of the openable network address in judgement system, or completely not There are the second applications of the openable network address.
Preferably, the step of network address described in second application access by the corresponding network address of third component notice, Include:
It is applied by intent component call second, and the network address is sent to the second application and is opened.
Preferably, the step of network address described in second application access by the corresponding network address of third component notice, Include:
It is applied by NSURL component call second, and the network address is sent to the second application and is opened.
The invention also discloses a kind of links to jump device, comprising:
Monitoring module, for monitoring the first application by whether malfunctioning when page access component accesses network address;
Website acquisition module, if obtaining the network address for by malfunctioning when page access component accesses network address;
Calling module, for corresponding to network address described in the second application access of the network address by third component call.
Preferably, the website acquisition module includes:
First website acquisition module, it is logical by call back function if the network address for web page windows component accesses malfunctions Know the network address of the first application error.
Preferably, the calling module includes:
Judging submodule for parsing the network address according to pre-defined rule, and whether there is openable institute in judgement system State the second application of network address;
First calls submodule, if passing through third for the second application in system there are the openable network address Network address described in second application access of the corresponding network address of component notice.
Preferably, the judging submodule includes:
Submodule is looped to determine, for parsing the network address according to pre-defined rule one by one, and sentence from multiple pre-defined rules With the presence or absence of the second application of the openable network address in disconnected system, until there are the of the openable network address in judgement system Two applications, or it is completely absent the second application of the openable network address.
Preferably, the first calling submodule includes:
Intent calls submodule, for applying by intent component call second, and the network address is sent to the Two applications are opened.
Preferably, the first calling submodule includes:
NSURL calls submodule, for applying by NSURL component call second, and the network address is sent to second Using opening.
Relative to first technology, scheme provided by the invention, the first application of monitoring passes through page access component accesses network address When whether malfunction, if obtaining the network address by malfunctioning when page access component accesses network address;Pass through third component call Network address described in second application access of the corresponding network address, can be when webview access network address be unsuccessful, using third component Calling can open the second application access of network address network address, so as to normally open the page of corresponding web site.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the step flow diagram of link jump method according to an embodiment of the invention;
Fig. 2 shows the step flow diagrams of link jump method according to an embodiment of the invention;
Fig. 3 shows the structural block diagram according to an embodiment of the invention for linking and jumping device;
Fig. 4 shows the structural block diagram according to an embodiment of the invention for linking and jumping device;
Fig. 5 shows the structural block diagram according to an embodiment of the invention for linking and jumping equipment.
Specific embodiment
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its Sequence is executed or is executed parallel, and serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, serial number It itself does not represent and any executes sequence.In addition, these processes may include more or fewer operations, and these operations can To execute or execute parallel in order.It should be noted that the description such as " first " herein, " second ", is for distinguishing not Same message, equipment, module etc., does not represent sequencing, does not also limit " first " and " second " and be different type.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, it illustrates a kind of step flow diagrams for linking jump method of the embodiment of the present invention, comprising:
Step 110, whether the first application of monitoring when page access component accesses network address by malfunctioning;
First application of the invention can be the APP of non-browser, which shows H5 pages using webview component Face.
In practical applications, much the H5 page shown in APP provides various buttons, and user, which can click, accordingly to press Button jumps to respective page.It is appreciated that user clicks the corresponding button, then triggering clicks the button corresponding link, so as to With the process jumped to the corresponding page.
Webpage view component: WebView, the control that webpage is shown in APP in Android system, WebView can be with So that webpage is easily embedded into app, directly can also mutually be called with js.Certainly, in IOS system (such as iPhone System) in, also can be used IOS system WebView apply interior access webpage.
And in embodiments of the present invention, after user opens the first application, some H5 page is opened in the first application, the One application then opens the page by webview.When having the button of redirected link in the H5 page, pressed if user clicks this Button, then webview resetting access the link.When the link be with http(HTTP-Hypertext transfer protocol, Hypertext transfer protocol) or with https(Hypertext Transfer Protocol Secure, Hyper text transfer safety Agreement) etc. webView support URL format beginning link, then webview then will appear access errors to the link.
Such as the corresponding link of the button are as follows:
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, beginning is taobao: //, then webview will appear access errors, will appear The error information of ERR_UNKNOWN_URL_SCHEME indicates the URL format for being linked as nonrecognition of its access.
In embodiments of the present invention, then monitor its access occurred when webview access link is linked as nonrecognition The mistake of URL format.
Step 120, if obtaining the network address by malfunctioning when page access component accesses network address;
In embodiments of the present invention, it can use WebView component in the web page contents for going to obtain the network address from the background, and Webpage when showing that user clicks is continued to WebView component.When WebView obtain the network address web page contents success, then The web page contents are rendered using WebView, webpage when user is clicked jumps as the corresponding webpage of above-mentioned network address.When When WebView obtains the web page contents failure of the network address, then corresponding Button Color is changed to the first face using WebView Color, for example, it is red, it is of course also possible to analyze corresponding second application of the network address, the logo picture of the second application is then obtained, it will The logo picture adds in the button, so as to prompt where technical staff malfunctions, it is facilitated to modify.In addition, this Inventive embodiments are available change Button Color and/or addition logo picture after display interface picture recorded, so The button to go wrong can will be jumped in a manner of picture and is recorded, technology people is facilitated in UI automatic test course Member searches correlative code and modifies.It is, of course, also possible to error flag is stamped into the position of the network address in the code of APP, it is more square Just technical staff checks and modifies.
In embodiments of the present invention, if monitoring the aforementioned link of webview access mistake occurs, above-mentioned chain is obtained It connects, enters step 130., whereas if there is not aforementioned mistake in webview, then without subsequent processing.
Preferably, if when component accesses network address by page access malfunctions, the network address step is obtained, is wrapped It includes:
If the network address of web page windows component accesses malfunctions, the network address of the first application error is notified by call back function.
In embodiments of the present invention, after the aforementioned mistake of webview appearance can be monitored, webview pop-up can be intercepted Then the mistake obtains the link using call back function, while notifying the network address of the process of the first application error.
It is appreciated that a call back function can be arranged in the embodiment of the present invention in webview in advance, which exists There is triggering when ERR_UNKNOWN_URL_SCHEME in webview, and function includes link when obtaining error, and by the link Return to the process of the first application.
Step 130, network address described in the second application access of the network address is corresponded to by third component call.
In embodiments of the present invention, after the process that above-mentioned call back function applies above-mentioned connection to first, the first application Process corresponds to above-mentioned link described in the second application access of the network address by third component call, does not use then at this time The webview of one application goes to access the link, then uses the link of the second application access.
Preferably, described the step of network address described in second application access of the network address is corresponded to by third component call, Include:
Sub-step 131 parses the network address according to pre-defined rule, and whether there is the openable network address in judgement system Second application;
Sub-step 132, if passing through third component notice pair there are the second application of the openable network address in system Answer network address described in the second application access of the network address.
In practical applications, the link of different websites, structure may be different, and the present invention is then according to corresponding website Pre-defined rule parses the link, then therefrom extracts the keyword in predetermined position, is then applied according to the keyword and second Corresponding relationship judges in the system of mobile terminal with the presence or absence of the second application that can open the link.
Certainly, in practical applications, the acquisition permission for having installed APP that application system can be gone, then according to keyword With the corresponding relationship of the second Apply Names, go to search corresponding second application from the list of installation of system, if it is found, then By second application of third component call, it is notified to open the link.
Such as 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 be mentioned therefrom Header fields " taobao: // " is taken, then goes to search corresponding second Apply Names with header fields, then goes in system to search Whether installation corresponding second application is had.
It certainly, can be to be supplied to second download link applied if being fitted without corresponding second application User facilitates user to download.After monitoring user and downloading installation second application, second user opening can be called directly Above-mentioned link.
If do not found, it can prompt user that can not open the link.
Preferably, described to parse the network address according to pre-defined rule, and whether there is the openable net in judgement system The step of second application of location, comprising:
Sub-step 133 parses the network address according to pre-defined rule one by one, and in judgement system from multiple pre-defined rules With the presence or absence of the second application of the openable network address, to be applied until there are the second of the openable network address in judgement system, Or it is completely absent the second application of the openable network address.
In this application, pre-defined rule can be set for the network address of different websites, to the chain for aforementioned mistake occur Tap into capable parsing.Such as it is aforementioned with " taobao: // " beginning link, also such as with " tmall: // " beginning link, certainly, There is likely to be the link of extended formatting, respective links have its special APP that can open.It is predetermined for the link of different websites Rule is agreed can be different, it is also possible to identical.
So the application can first parse link with a predetermined regulation, for example parsing concatenated key is its head Then whether portion's field has corresponding second Apply Names from the second application list with header fields matching, if matching On, then illustrate in the presence of the second application that can open the link.Then it is gone in the installation list of system with second Apply Names It searches whether to be mounted with the application, if be mounted with, by second application of third component call, it is notified to open the chain It connects.
In this way, then not finding corresponding second in the second application list when extracting keyword according to a pre-defined rule It when Apply Names, then can continue to extract keyword according to next pre-defined rule, then be looked in the second application list corresponding The second Apply Names.Until finding the second Apply Names, then enter subsequently through corresponding second application of third component call Open the process of aforementioned link.Or be much to seek the second Apply Names until whole pre-defined rules have parsed, then it can stop Subsequent process prompts user's mistake.
Preferably, the step of network address described in second application access by the corresponding network address of third component notice, Include:
Sub-step A11 is applied by intent component call second, and the network address is sent to the second application and is opened.
Certainly, for this step, page access component above-mentioned is then the page access component of Android system.It can also manage Solution is that abovementioned steps execute in Android system.
In embodiments of the present invention, by taking Android system as an example, which can be intent component, can be used Intent component call second is applied, and the network address is sent to the second application and is opened.The intent component mainly solves Communication between every component of Android application, Intent are responsible for movement, movement to once-through operation in application and are related to counting It is described according to, additional data, Android is responsible for finding corresponding component, by Intent then according to the description of this Intent The component of calling is passed to, and completes the calling of component.
In embodiments of the present invention, in sub-step A11, Intent () object is created first;Then it calls Intent.setAction function calls the movement of the second application to intent registration;Then pass through Uri.parse (url) function Obtain the link of aforementioned error;Then the url write-in for calling intent.setData (content_url) function will acquire Intent, wherein content_url=Uri.parse (url);Then it is being written, then after stating the link of error before write, StartActivity (intent) function is called, calls corresponding second application, and the link of aforementioned error is sent to second and is answered With access.Its pseudocode 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 link of aforementioned error, such as the link of " taobao: // ... ".In embodiments of the present invention, may be used With by the parameter for identifying application identities in url " taobao: // ... ", such as " taobao: // " identify that Taobao applies. Other situations are similar.
Preferably, the step of network address described in second application access by the corresponding network address of third component notice, Include:
Sub-step A12 is applied by NSURL component call second, and the network address is sent to the second application and is opened.
In embodiments of the present invention, in iOS system (apple system, the system that iPhone, pad are used), the third Component can be NSURL component.NSURL component is a set of component that iOS system handles link.
Certainly, for this step, page access component above-mentioned is then the page access component of iOS system.It can also manage Solution is that abovementioned steps execute in iOS system.
It needs to call the second application with open link for aforementioned, the embodiment of the present invention can first pass through NSURL creation NSURLRequest, it is possible to specify caching rule and time-out time;Then for NSURLRequest, pass through NSURLRequestrequestWithURL obtains the link of aforementioned error;Then webViewloadRequest function calls The link is opened in corresponding second application.Its pseudocode is as follows:
NSURLRequest *request =[NSURLRequestrequestWithURL:[NSURL URLWithString:urlStr]];
[webViewloadRequest:request];
Wherein, urlStr is the link of the aforementioned error got.In embodiments of the present invention, url can be passed through Identify the parameter of application identities in " taobao: // ... ", such as " taobao: // " identify that Taobao applies.Other situations It is similar.
In embodiments of the present invention, it for whether malfunctioning when monitoring WebView component accesses network address, can use WebView component is in the web page contents for going to obtain the network address from the background, and when continuing to show that user clicks to WebView component Webpage.When WebView obtains the web page contents success of the network address, then the web page contents are rendered using WebView, by user's point Webpage when hitting jumps as the corresponding webpage of above-mentioned network address.It is when WebView obtains the web page contents failure of the network address, then sharp Corresponding Button Color is changed to the first color with WebView, such as red, it is of course also possible to analyze the network address corresponding the Then two applications obtain the logo picture of the second application, by logo picture addition in the button, so as to jumping Cheng Jinhang is reminded, and so as to prompt that button in technical staff's webpage to jump error, it is facilitated to modify.In addition, this Inventive embodiments are available change Button Color and/or addition logo picture after display interface picture recorded, so The button to go wrong can will be jumped in a manner of picture and is recorded, technology people is facilitated in UI automatic test course Member searches correlative code and modifies.It is, of course, also possible to error flag is stamped into the position of the network address in the code of APP, it is more square Just technical staff checks and modifies.
Whether scheme provided by the invention, the first application of monitoring malfunction when passing through page access component accesses network address, if By malfunctioning when page access component accesses network address, then the network address is obtained;The network address is corresponded to by third component call Network address described in second application access can open this using third component call when webview access network address is unsuccessful Second application access of network address network address, so as to normally open the page of corresponding web site.
Embodiment two
Referring to Fig. 2, it illustrates a kind of step flow diagrams for linking jump method of the embodiment of the present invention, comprising:
Step 210, whether the first application of monitoring when page access component accesses network address by malfunctioning;
Step 220, if obtaining the network address by malfunctioning when page access component accesses network address;
Step 230, from multiple pre-defined rules, the network address is parsed according to pre-defined rule one by one, and be in judgement system It is no that there are the second applications of the openable network address, until there are the second applications of the openable network address in judgement system, or Person is completely absent the second application of the openable network address.
Step 240, if corresponded to there are the second application of the openable network address in system by third component notice Network address described in second application access of the network address.
The step of embodiment of the present invention, is similar with embodiment one, and it be not described in detail herein.
The embodiment of the present invention can open this using third component call when webview access network address is unsuccessful Second application access of network address network address, so as to normally open the page of corresponding web site.
For embodiment of the method, for simple description, therefore, it is stated as a series of action combinations, but this field Technical staff should be aware of, and embodiment of that present invention are not limited by the describe sequence of actions, because implementing according to the present invention Example, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know that, specification Described in embodiment belong to preferred embodiment, the actions involved are not necessarily necessary for embodiments of the present invention.
Embodiment three
Referring to Fig. 3, it illustrates a kind of structural block diagrams for linking jump method of the embodiment of the present invention, comprising:
Monitoring module 310, for monitoring the first application by whether malfunctioning when page access component accesses network address;
Website acquisition module 320, if obtaining the net for by malfunctioning when page access component accesses network address Location;
Calling module 330, for corresponding to network address described in the second application access of the network address by third component call.
Preferably, the website acquisition module includes:
First website acquisition module, it is logical by call back function if the network address for web page windows component accesses malfunctions Know the network address of the first application error.
Preferably, the calling module includes:
Judging submodule for parsing the network address according to pre-defined rule, and whether there is openable institute in judgement system State the second application of network address;
First calls submodule, if passing through third for the second application in system there are the openable network address Network address described in second application access of the corresponding network address of component notice.
Preferably, the judging submodule includes:
Submodule is looped to determine, for parsing the network address according to pre-defined rule one by one, and sentence from multiple pre-defined rules With the presence or absence of the second application of the openable network address in disconnected system, until there are the of the openable network address in judgement system Two applications, or it is completely absent the second application of the openable network address.
Preferably, the first calling submodule includes:
Intent calls submodule, for applying by intent component call second, and the network address is sent to the Two applications are opened.
Preferably, the first calling submodule includes:
NSURL calls submodule, for applying by NSURL component call second, and the network address is sent to second Using opening.
Whether scheme provided by the invention, the first application of monitoring malfunction when passing through page access component accesses network address, if By malfunctioning when page access component accesses network address, then the network address is obtained;The network address is corresponded to by third component call Network address described in second application access can open this using third component call when webview access network address is unsuccessful Second application access of network address network address, so as to normally open the page of corresponding web site.
Example IV
Referring to Fig. 4, it illustrates a kind of structural block diagrams for linking jump method of the embodiment of the present invention.
Monitoring module 410, for monitoring the first application by whether malfunctioning when page access component accesses network address;
Website acquisition module 420, if obtaining the net for by malfunctioning when page access component accesses network address Location;
Calling module 430, for corresponding to network address described in the second application access of the network address by third component call;Tool Body includes:
Judging submodule 431, for parsing the network address according to pre-defined rule, and with the presence or absence of openable in judgement system Second application of the network address;Specifically include: looping to determine submodule 4311, for from multiple pre-defined rules, one by one according to Pre-defined rule parses the network address, and with the presence or absence of the second application of the openable network address in judgement system, until judgement system There are the second applications of the openable network address in system, or are completely absent the second application of the openable network address.
First calls submodule 432, if for the second application in system there are the openable network address, by the Network address described in second application access of the corresponding network address of three components notice.
The embodiment of the present invention can open this using third component call when webview access network address is unsuccessful Second application access of network address network address, so as to normally open the page of corresponding web site.
The embodiment of the present invention can not robbed the access of oneself page that can guarantee the second application by the first wifi application It holds, the content for the page for applying user's normal browsing second does not cause to perplex to user.
The embodiment of the invention also provides a kind of links to jump equipment, as shown in figure 5, for ease of description, illustrating only Part related to the embodiment of the present invention, it is disclosed by specific technical details, please refer to present invention method part.The end End can be include mobile phone, tablet computer, PDA(Personal Digital Assistant, personal digital assistant), POS Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, taking the terminal as an example:
Fig. 5 shows the block diagram of the part-structure of mobile phone relevant to terminal provided in an embodiment of the present invention.With reference to figure 5, mobile phone include: radio frequency (Radio Frequency, RF) circuit 510, memory 520, input unit 530, display unit 540, Sensor 550, voicefrequency circuit 560, Wireless Fidelity (wireless fidelity, WiFi) module 550, processor 580 and The components such as power supply 590.It will be understood by those skilled in the art that handset structure shown in Fig. 5 does not constitute the restriction to mobile phone, It may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to each component parts of the Fig. 5 to mobile phone:
RF circuit 510 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 580;In addition, the data for designing uplink are sent to base station.In general, RF circuit 510 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 510 can also be communicated with network and other equipment by wireless communication. Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 520 can be used for storing software program and module, and processor 580 is stored in memory 520 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 520 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for mobile phone Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 520 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Input unit 530 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 530 may include that touch panel 531 and other inputs are set Standby 532.Touch panel 531, also referred to as touch screen, collect user on it or nearby touch operation (such as user use The operation of any suitable object or attachment such as finger, stylus on touch panel 531 or near touch panel 531), and root Corresponding attachment device is driven according to preset formula.Optionally, touch panel 531 may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinate, then gives processor 580, and can receive order that processor 580 is sent and be executed.Furthermore, it is possible to using electricity The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 531.In addition to touch panel 531, input Unit 530 can also include other input equipments 532.Specifically, other input equipments 532 can include but is not limited to secondary or physical bond One of disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 540 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 540 may include display panel 541, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 541.Further, touch panel 531 can cover display panel 541, when touch panel 531 detect it is on it or attached After close touch operation, processor 580 is sent to determine the type of touch event, is followed by subsequent processing device 580 according to touch event Type corresponding visual output is provided on display panel 541.Although in Fig. 5, touch panel 531 and display panel 541 It is that the input and input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch-control Panel 531 and display panel 541 are integrated and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 550, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 541, proximity sensor can close display panel 541 when mobile phone is moved in one's ear And/or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three axis) acceleration in all directions Size, can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture, (for example horizontal/vertical screen is cut Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensor of configuration, details are not described herein.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 561, be converted to sound by loudspeaker 561 by road 560 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 562, is turned after being received by voicefrequency circuit 560 It is changed to audio data, then by after the processing of audio data output processor 580, such as another mobile phone is sent to through RF circuit 510, Or audio data is exported to memory 520 to be further processed.
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 provides wireless broadband internet access for user.Although Fig. 5 is shown WiFi module 550, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 580 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 520, and call and be stored in memory 520 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 580 can wrap Include one or more processing units;Preferably, processor 580 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 580.
Mobile phone further 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 and processor 580 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 580 included by the terminal is also with the following functions:
Whether the first application of monitoring when page access component accesses network address by malfunctioning;
If obtaining the network address by malfunctioning when page access component accesses network address;
Network address described in the second application access of the network address is corresponded to by third component call.
Certainly, processor can also be performed it is above-mentioned other can be the method for place equipment side the step of.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, the program can store in a kind of computer readable storage medium, on Stating the storage medium mentioned can be read-only memory, disk or CD etc..
A kind of link provided by the present invention is jumped by equipment is described in detail above, for the general skill of this field Art personnel, thought according to an embodiment of the present invention, there will be changes in the specific implementation manner and application range, to sum up institute It states, the contents of this specification are not to be construed as limiting the invention.

Claims (10)

1. a kind of link jump method characterized by comprising
Whether the first application of monitoring when page access component accesses network address by malfunctioning;
If obtaining the network address by malfunctioning when page access component accesses network address;
Network address described in the second application access of the network address is corresponded to by third component call;
Wherein, the page access component is webpage view component;First application is shown using the webpage view component The H5 page, first application trigger when clicking button in the H5 page by user by page access component accesses network address;Institute It states through error when page access component accesses network address are as follows: the access network address is not the network address started with http or https When, there is the error information of the URL format for being linked as nonrecognition of its access in the webpage view component.
If 2. the method according to claim 1, wherein when component accesses network address by page access go out Mistake then obtains the network address step, comprising:
If the network address of web page windows component accesses malfunctions, the network address of the first application error is notified by call back function.
3. method according to claim 1 or 2, which is characterized in that described to correspond to the network address by third component call The second application access described in network address the step of, comprising:
The network address is parsed according to pre-defined rule, and with the presence or absence of the second application of the openable network address in judgement system;
If passing through the of the corresponding network address of third component notice there are the second application of the openable network address in system Network address described in two application access.
4. according to the method described in claim 3, it is characterized in that, described parse the network address according to pre-defined rule, and judging The step of in system with the presence or absence of the second application of the openable network address, comprising:
From multiple pre-defined rules, the network address is parsed according to pre-defined rule one by one, and with the presence or absence of openable in judgement system Second application of the network address until there are the second applications of the openable network address in judgement system, or is completely absent Second application of the openable network address.
5. according to the method described in claim 3, it is characterized in that, described pass through the of the corresponding network address of third component notice The step of network address described in two application access, comprising:
It is applied by intent component call second, and the network address is sent to the second application and is opened.
6. according to the method described in claim 3, it is characterized in that, described pass through the of the corresponding network address of third component notice The step of network address described in two application access, comprising:
It is applied by NSURL component call second, and the network address is sent to the second application and is opened.
7. a kind of link jumps device characterized by comprising
Monitoring module, for monitoring the first application by whether malfunctioning when page access component accesses network address;
Website acquisition module, if obtaining the network address for by malfunctioning when page access component accesses network address;
Calling module, for corresponding to network address described in the second application access of the network address by third component call;
Wherein, the page access component is webpage view component;First application is shown using the webpage view component The H5 page, first application trigger when clicking button in the H5 page by user by page access component accesses network address;Institute It states through error when page access component accesses network address are as follows: the access network address is not the network address started with http or https When, there is the error information of the URL format for being linked as nonrecognition of its access in the webpage view component.
8. device according to claim 7, which is characterized in that the website acquisition module includes:
First website acquisition module notifies the by call back function if the network address for web page windows component accesses malfunctions The network address of one application error.
9. device according to claim 7 or 8, which is characterized in that the calling module includes:
Judging submodule for parsing the network address according to pre-defined rule, and whether there is the openable net in judgement system Second application of location;
First calls submodule, if passing through third component for the second application in system there are the openable network address Network address described in second application access of the corresponding network address of notice.
10. device according to claim 9, which is characterized in that the judging submodule includes:
Loop to determine submodule, for from multiple pre-defined rules, parse the network address according to pre-defined rule one by one, and judge be With the presence or absence of the second application of the openable network address in system, to be answered until there are the second of the openable network address in judgement system With, or it is completely absent the second application of the openable 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 CN106294839A (en) 2017-01-04
CN106294839B true 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)

Families Citing this family (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
CN109802925B (en) * 2017-11-17 2021-10-29 阿里巴巴(中国)有限公司 Authentication method and system for public WiFi access
CN107977566B (en) * 2017-11-27 2021-03-19 珠海市君天电子科技有限公司 Function triggering method and device and electronic equipment
CN108810003B (en) * 2018-06-21 2021-02-26 吉旗(成都)科技有限公司 Safety verification scheme for multi-service party message access
CN109600418B (en) * 2018-11-05 2021-04-20 创新先进技术有限公司 Method, device, equipment and system for tracking application access
CN109933734B (en) * 2019-02-28 2021-04-30 广州方硅信息技术有限公司 Page skipping method, device and system and storage medium
CN110781432A (en) * 2019-10-08 2020-02-11 北京字节跳动网络技术有限公司 Page jump method and device, electronic equipment and computer readable storage medium

Family Cites Families (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
CN1866956B (en) * 2005-12-23 2010-06-02 华为技术有限公司 Method, mobile terminal and system for realizing webpage access
CN102902580B (en) * 2011-07-26 2018-05-15 腾讯科技(深圳)有限公司 A kind of program callback method and device
US20130332284A1 (en) * 2012-06-11 2013-12-12 Retailmenot, Inc. Cross-device offers platform
CN104346396B (en) * 2013-08-05 2020-08-25 腾讯科技(深圳)有限公司 Data processing method, device, terminal and system for instant messaging client
JP6185948B2 (en) * 2015-03-16 2017-08-23 株式会社ソニー・インタラクティブエンタテインメント Information processing apparatus and recording reservation support method

Also Published As

Publication number Publication date
CN106294839A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106294839B (en) A kind of link jump method and device
CN106126562B (en) A kind of pop-up hold-up interception method and terminal
CN104426919B (en) Page sharing method, apparatus and system
CN103702297B (en) Short message enhancement, apparatus and system
CN104135501A (en) Page sharing method, device and system
CN105389259B (en) A kind of method, apparatus and system for carrying out Application testing
CN104423822B (en) Record the method and device of automatic test script
CN105847325B (en) The adjustment method and device of applications client
CN107040609A (en) A kind of network request treating method and apparatus
CN107766358A (en) The method and relevant apparatus that a kind of page is shared
CN106294159B (en) A kind of control method of screenshotss and screenshotss control device
CN104217172B (en) Privacy content inspection method and device
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
CN107276602B (en) Radio frequency interference processing method, device, storage medium and terminal
CN112148579B (en) User interface testing method and device
CN107465841A (en) A kind of fault information reporting method and terminal
CN106649126A (en) Method and apparatus for testing application program
CN106603740B (en) It is connected to the network abnormal processing method and terminal device
CN110378107A (en) A kind of method and relevant apparatus of installation kit detection
CN103399706B (en) Page interaction, device and terminal
CN109324866A (en) Using the processing method of footmark, device, computer readable storage medium and terminal
CN106407771A (en) Message management method and device
CN109102153A (en) A kind of identity management method and device
CN104750722B (en) A kind of acquisition of information and methods of exhibiting and device
US20150007019A1 (en) Apparatuses and methods for phone number processing

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