CN105955723B - The cross-platform treating method and apparatus of mobile terminal - Google Patents

The cross-platform treating method and apparatus of mobile terminal Download PDF

Info

Publication number
CN105955723B
CN105955723B CN201610252444.3A CN201610252444A CN105955723B CN 105955723 B CN105955723 B CN 105955723B CN 201610252444 A CN201610252444 A CN 201610252444A CN 105955723 B CN105955723 B CN 105955723B
Authority
CN
China
Prior art keywords
application module
routing protocol
routing
name
module
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
CN201610252444.3A
Other languages
Chinese (zh)
Other versions
CN105955723A (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.)
Polytron Technologies Inc For All
Original Assignee
Polytron Technologies Inc For All
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 Polytron Technologies Inc For All filed Critical Polytron Technologies Inc For All
Priority to CN201610252444.3A priority Critical patent/CN105955723B/en
Publication of CN105955723A publication Critical patent/CN105955723A/en
Application granted granted Critical
Publication of CN105955723B publication Critical patent/CN105955723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses the cross-platform treating method and apparatus of mobile terminal.This method comprises: obtain the first application module of mobile terminal first jumps signal, first to jump signal be the signal for being selected the first application module and being generated;The Routing Protocol that signal selects the first application module from default routing configuration list is jumped according to first, obtains the first Routing Protocol;The first application module is jumped to according to the first Routing Protocol, executes the first default processing;Obtain the second application module of mobile terminal second jumps signal, and second to jump signal be the signal for being selected the second application module and being generated;The Routing Protocol that signal selects the second application module from default routing configuration list is jumped according to second, obtains secondary route agreement;The second application module is jumped to from the first application module according to secondary route agreement, executes the second default processing.Through the invention, achieved the effect that improve the cross-platform exploitation in mobile terminal and distribution efficiency.

Description

The cross-platform treating method and apparatus of mobile terminal
Technical field
The present invention relates to internet areas, in particular to the cross-platform processing method and dress of a kind of mobile terminal It sets.
Background technique
Currently, carrying out application and development bring for the different platform of mobile terminal with the rapid development of mobile Internet Hidden danger and additional burden increasingly become the problem that mobile terminal developer needs to solve.PhoneGap/ in recent years The cross-platform solution such as Cordova, Xamarin, React Native emerges one after another, in addition Web skill highly developed already Art, more and more companies are promoted development efficiency using cross-platform solution, reduce development and maintenance cost.
Numerous schemes have advantage and disadvantage in varying degrees.For example, the cross-platform solution of Web App can so as not to installation, It can directly use, can be only needed in server end more fresh code, still in upgrading with rapid deployment opening browser The experience property of Web App is poor, and fluency can not show a candle to native applications, and industry is not supported, the mobile terminal of nearly all company is all It is native applications.The Webview control that the cross-platform solution of PhoneGap/Cordova has using each platform, by Web Local is taken in content and experience to, have the effect of uniform logical and UI rendering, thus reduce mobile terminal exploitation and maintenance at This, but rendering speed is slow, has animation effect heavy in hand, keeps the interactive performance of Webview low.React The cross-platform solution of Native thoroughly gets rid of the interaction and performance issue of Webview, and use can be freely combined in JS Native control can directly use the primary animation of Native, can be by updating distal end JS, directly update app, but extend Property be still not so good as Web, be also nothing like directly writing Native code, exploitation strong depend-ence React Native developer exposure Interface, and the first learning cost of React is high, and Component Gallery is not also very abundant.
It is difficult to solve the problems, such as all it can be seen that a certain cross-platform solution is used alone, is difficult a certain work For the unique technical of mobile terminal exploitation, thus the exploitation that keeps mobile terminal cross-platform and distribution low efficiency.
Aiming at the problem that the cross-platform exploitation in mobile terminal in the related technology and distribution low efficiency, not yet propose at present effective Solution.
Summary of the invention
The main purpose of the present invention is to provide a kind of cross-platform treating method and apparatus of mobile terminal, at least to solve The problem of cross-platform exploitation in mobile terminal certainly in the related technology and distribution low efficiency.
To achieve the goals above, according to an aspect of the invention, there is provided at a kind of cross-platform of mobile terminal Reason method.The cross-platform processing method of the mobile terminal includes: to obtain the first application module of mobile terminal first to jump letter Number, wherein first to jump signal be the signal for being selected the first application module and being generated;Signal is jumped from pre- according to first If selecting the Routing Protocol of the first application module in routing configuration list, the first Routing Protocol is obtained;According to the first Routing Protocol The first application module is jumped to, the first default processing is executed;Obtain the second application module of mobile terminal second jumps signal, In, second to jump signal be the signal for being selected the second application module and being generated;Signal is jumped from default road according to second By selecting the Routing Protocol of the second application module in configured list, secondary route agreement is obtained;According to secondary route agreement from One application module jumps to the second application module, executes the second default processing.
Further, the routing that signal selects the first application module from default routing configuration list is being jumped according to first Agreement, after obtaining the first Routing Protocol, method further include: according to the first module name of the first application module in the first via by assisting View is lower to configure Routing Protocol address, wherein the first module name is for the default processing of label first;It is executed according to Routing Protocol address First default processing;The new road that signal selects the first application module from new default routing configuration list is jumped according to first By agreement, the first new Routing Protocol is obtained, wherein new default routing configuration list is the default routing configuration of new version List;New Routing Protocol address is configured under the first new Routing Protocol according to the first module name of the first application module;Root The default processing of new first is executed according to new Routing Protocol address.
Further, the routing that signal selects the first application module from default routing configuration list is being jumped according to first Agreement, before obtaining the first Routing Protocol, the cross-platform processing method of the mobile terminal further include: obtain the first application module The first module name, and using the first module name as the key name of the first Routing Protocol;Obtain the Routing Protocol of the first application module Address, and using the Routing Protocol address of the first application module as the key assignments of the first Routing Protocol;Pass through the first Routing Protocol The key assignments of key name and the first Routing Protocol determines the first Routing Protocol;First Routing Protocol is added to default routing configuration list In.
Further, the Routing Protocol address for obtaining the first application module includes: the protocol name for obtaining the first Routing Protocol, Wherein, protocol name is used to select the routing configuration rule of the first application module, passes through the routing configuration rule of the first application module Determine the first default processing;Obtain the agreement token name of the first Routing Protocol, wherein agreement token name is for judging that first is default The data packet name of processing;Obtain the second module name of the first application module, wherein the second module name applies mould for positioning first The page of block;According to the of the protocol name of the first Routing Protocol, the agreement token name of the first Routing Protocol and the first application module Two module names determine the Routing Protocol address of the first application module.
Further, which issues or is preset in mobile terminal by server.
Further, jumping to the first application module according to the first Routing Protocol includes: according to the logical of the first application module Judge whether the first application module can respond the first via by protocol address with protocol name, wherein entitled first application of puppy parc The general title of module;Judge whether the token name of the first application module is corresponding with the key name in the first Routing Protocol, wherein The token name of first application module is used for the title or domain name of the first application module of label;When according to the logical of the first application module Judge that the first application module can respond the first via by protocol address with protocol name, and judges the label of the first application module When name is corresponding with the key name in the first Routing Protocol, the first application module is jumped to according to routing configuration rule and transmits first The protocol parameter of Routing Protocol.
Further, the routing that signal selects the first application module from default routing configuration list is being jumped according to first Agreement, before obtaining the first Routing Protocol, the cross-platform processing method of the mobile terminal further include: be used for server transmission Request presets the request command of routing configuration list, wherein server stores default routing configuration list, server according to Request command issues default routing configuration list;Default routing configuration list is cached in mobile terminal.
To achieve the goals above, according to another aspect of the present invention, the cross-platform processing unit packet of the mobile terminal Include: first acquisition unit jumps signal for obtaining the first of the first application module of mobile terminal, wherein first jumps signal The signal generated to be selected the first application module;First selecting unit, for jumping signal from default according to first The Routing Protocol that the first application module is selected in routing configuration list obtains the first Routing Protocol;First jump-transfer unit is used for root The first application module is jumped to according to the first Routing Protocol, executes the first default processing;Second acquisition unit, for obtaining mobile terminal The second application module second jump signal, wherein second to jump signal be to be selected the second application module and generated Signal;Second selecting unit selects the second application module for jumping signal from default routing configuration list according to second Routing Protocol, obtain secondary route agreement;Second jump-transfer unit, for being jumped according to secondary route agreement from the first application module The second application module is gone to, the second default processing is executed.
Further, the cross-platform processing unit of the mobile terminal further include: the first configuration unit, for according to the One jumps the Routing Protocol that signal selects the first application module from default routing configuration list, obtain the first Routing Protocol it Afterwards, Routing Protocol address is configured under the first Routing Protocol according to the first module name of the first application module, wherein the first module Name is for the default processing of label first;First execution unit, for executing the first default processing according to Routing Protocol address;Third Selecting unit, for jumping the new road that signal selects the first application module from new default routing configuration list according to first By agreement, the first new Routing Protocol is obtained, wherein new default routing configuration list is the default routing configuration of new version List;Second configuration unit configures under the first new Routing Protocol new for the first module name according to the first application module Routing Protocol address;Second execution unit, for executing the default processing of new first according to new Routing Protocol address.
Further, the cross-platform processing unit of the mobile terminal further include: third acquiring unit, for according to the One jumps the Routing Protocol that signal selects the first application module from default routing configuration list, obtain the first Routing Protocol it Before, the first module name of the first application module is obtained, and using the first module name as the key name of the first Routing Protocol;4th obtains Unit, for obtaining the Routing Protocol address of the first application module, and using the Routing Protocol address of the first application module as The key assignments of one Routing Protocol;Determination unit, the key assignments for key name and the first Routing Protocol by the first Routing Protocol determine First Routing Protocol;Adding unit, for the first Routing Protocol to be added in default routing configuration list.
Further, the 4th acquiring unit includes: the first acquisition module, for obtaining the agreement of the first Routing Protocol Name, wherein protocol name is used to select the routing configuration rule of the first application module, is advised by the routing configuration of the first application module Then determine the first default processing;Second obtains module, for obtaining the agreement token name of the first Routing Protocol, wherein Protocol Standard The data packet name signed for judging the first default processing;Third obtains module, for obtaining the second mould of the first application module Block name, wherein the second module name is used to position the page of the first application module;Determining module, for according to the first Routing Protocol Protocol name, the agreement token name of the first Routing Protocol and the second module name of the first application module determine the first application module Routing Protocol address.
Further, which includes: first judgment module, for the general association according to the first application module View name judges whether the first application module can respond the first via by protocol address, wherein entitled first application module of puppy parc General title;Second judgment module, for judge the first application module token name whether with the key in the first Routing Protocol Name is corresponding, wherein the token name of the first application module is used for the title or domain name of the first application module of label;Jump mould Block judges the first application module with can responding the first Routing Protocol for working as according to the puppy parc name of the first application module Location, and when judging that the token name of the first application module is corresponding with the key name in the first Routing Protocol, according to routing configuration Rule jumps to the first application module and transmits the protocol parameter of the first Routing Protocol.
Further, the cross-platform processing unit of the mobile terminal further include: transmission unit, for being jumped according to first Rotaring signal selects the Routing Protocol of the first application module from default routing configuration list, before obtaining the first Routing Protocol, to Server sends the request command that routing configuration list is preset for request, wherein server stores default routing configuration List, server issue default routing configuration list according to request command;Cache unit, for caching default routing in mobile terminal Configured list.
Through the invention, signal is jumped using the first of the first application module for obtaining mobile terminal, wherein first jumps letter Number for the first application module is selected and the signal that generates;Signal is jumped from default routing configuration list according to first to select The Routing Protocol for selecting the first application module obtains the first Routing Protocol;The first application module is jumped to according to the first Routing Protocol, Execute the first default processing;Obtain the second application module of mobile terminal second jumps signal, wherein second to jump signal be pair Second application module is selected and the signal that generates;Signal, which is jumped, from default routing configuration list according to second selects second The Routing Protocol of application module obtains secondary route agreement;Second is jumped to from the first application module according to secondary route agreement Application module executes the second default processing, solves the cross-platform exploitation in mobile terminal in the related technology and distributes asking for low efficiency Topic, and then achieved the effect that improve the cross-platform exploitation in mobile terminal and distribution efficiency.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the cross-platform processing method of mobile terminal according to a first embodiment of the present invention;
Fig. 2 is the flow chart of the configuration method of Routing Protocol according to an embodiment of the present invention;
Fig. 3 is the flow chart of the application method of Routing Protocol according to an embodiment of the present invention;
Fig. 4 is the flow chart of the cross-platform processing method of mobile terminal according to a second embodiment of the present invention;
Fig. 5 is the flow chart of the cross-platform processing method of mobile terminal according to a third embodiment of the present invention;
Fig. 6 is the schematic diagram of the cross-platform processing unit of mobile terminal according to an embodiment of the present invention.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
In order to more fully understand those skilled in the art, application scheme is handled, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only It is only the embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, the common skill in this field The application protection all should belong in art personnel every other embodiment obtained without making creative work Range.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
The embodiment of the invention provides a kind of cross-platform processing methods of mobile terminal.
Fig. 1 is the flow chart of the cross-platform processing method of mobile terminal according to a first embodiment of the present invention.Such as Fig. 1 institute Show, the cross-platform processing method of the mobile terminal the following steps are included:
Step S101, obtain the first application module of mobile terminal first jump signal.
First application module of mobile terminal can be selected for executing specific processing scheme according to different business characteristics Suitable implementation.First application module can be abstract module, or specific business module.Wherein, it is abstracted industry Business module can be used to indicate that a certain major class business module, for example, have in the homepage of application individual center business module, Good friend's business module etc..Specific business module can be the corresponding subclassification of abstract module, for indicating the tool on a certain page Body business, that is, being the corresponding specific page of code of the first application module, for example, buddy list service module, lookup business Module etc..Optionally, which can be RN module, Hybrid module, one of Native module.
Obtain the first application module of mobile terminal first jumps signal, and first to jump signal be to the first application module for this The signal for being selected and being generated.User can click the first application module and select the first application module, to generate The first of first application module jumps signal, and then obtains first and jump signal.
Step S102 jumps signal according to first and the routing of the first application module is selected to assist from default routing configuration list View, obtains the first Routing Protocol.
Default routing configuration list includes the Routing Protocol configured by different routing configuration rules, different Routing Protocols pair Uniform resource identifier (Uniform should be met in the different disposal scheme of the application module of mobile terminal, the Routing Protocol Resource Identifier, referred to as URI) rule, it can be supported and be identified by various Mobile Development platforms.The default road It can be updated according to practical business demand by configured list.First in the first application module for obtaining mobile terminal jumps letter After number, the Routing Protocol that signal selects the first application module from default routing configuration list is jumped according to first, obtains One Routing Protocol.It include Routing Protocol address of first application module when executing processing in first Routing Protocol.
Step S103 jumps to the first application module according to the first Routing Protocol, executes the first default processing.
The Routing Protocol that signal selects the first application module from default routing configuration list is being jumped according to first, is being obtained After first Routing Protocol, the first default place is executed to the first application module according to the corresponding processing scheme of the first Routing Protocol Reason, opens the corresponding page, realizes corresponding function.Optionally, which is to work as suitable for the first application module The preferred plan of pre-treatment.
Step S104, obtain the second application module of mobile terminal second jump signal.
If the scheme for executing default processing to the first application module is not suitable for the currently processed scene in mobile terminal, obtain The second of second application module of mobile terminal jumps signal.Second application module is that mobile terminal is current in order to be adapted to mobile terminal The scene of processing from the first application module carry out switching at runtime to application module, second application module and the first application module Difference can be RN module, Hybrid module, one of Native module.Second jumps signal as to the second application module The signal for being selected and being generated, user can click the second application module to select the second application module, to produce The second of raw second application module jumps signal, obtains second and jumps signal.
Step S105 jumps signal according to second and the routing of the second application module is selected to assist from default routing configuration list View, obtains secondary route agreement.
Default routing configuration list further includes secondary route agreement other than including the first Routing Protocol.It is moved obtaining After the second of second application module of moved end jumps signal, signal is jumped from default routing configuration list according to second and is selected The Routing Protocol of second application module obtains secondary route agreement.The secondary route agreement can include second with flexible customization Routing Protocol address of the application module when executing processing.
Step S106 jumps to the second application module from the first application module according to secondary route agreement, it is pre- to execute second If processing.
The Routing Protocol that signal selects the second application module from default routing configuration list is being jumped according to second, is being obtained After secondary route agreement, the second default place is executed to the second application module according to the corresponding processing scheme of secondary route agreement Reason, opens the corresponding page, realizes corresponding function, to realize the purpose flexibly handled the application of mobile terminal. Optionally, which is the preferred plan currently processed suitable for the second application module, to realize mobile terminal According to a variety of Routing Protocol mixed developings, by a variety of Routing Protocols of preset configuration Routing Protocol address in different application module Between flexibly switched, lay a good foundation for the modular exploitation in mobile terminal, each module is special according to different business Point selection is suitble to the implementation of oneself, and the calling of each intermodule is no longer mutually quoted, interdepends, but passes through routing association View is communicated, and the exploitation and distribution efficiency of the cross-platform solution in mobile terminal are substantially increased.
The embodiment jumps signal by using the first of the first application module for obtaining mobile terminal, and first, which jumps signal, is The signal that first application module is selected and is generated;Signal is jumped according to first, and is selected from default routing configuration list The Routing Protocol of one application module obtains the first Routing Protocol;The first application module is jumped to according to the first Routing Protocol, is executed First default processing;It obtains the second of the second application module of mobile terminal and jumps signal, second jumps signal to apply to second Module is selected and the signal that generates;Signal, which is jumped, from default routing configuration list according to second selects the second application module Routing Protocol, obtain secondary route agreement;The second application module is jumped to from the first application module according to secondary route agreement, The second default processing is executed, has achieved the effect that improve the cross-platform exploitation in mobile terminal and distribution efficiency.
As an alternative embodiment, selecting first jumping signal from default routing configuration list according to first The Routing Protocol of application module, after obtaining the first Routing Protocol, according to the first module name of the first application module in the first via By configuring Routing Protocol address under agreement, wherein the first module name is for the default processing of label first;According to Routing Protocol address The first default processing is executed, signal is jumped from new default routing configuration list according to first and selects the new of the first application module Routing Protocol, obtain the first new Routing Protocol, wherein new default routing configuration list is the default routing of new version Configured list;According to the first module name of the first application module under the first new Routing Protocol with configuring new Routing Protocol Location;The default processing of new first is executed according to new Routing Protocol address.
Routing Protocol in default routing configuration list can be updated according to the business demand of application module, same to answer It may be applicable in different Routing Protocols in different times with module.Signal is being jumped from default routing configuration list according to first The Routing Protocol of the first application module of middle selection after obtaining the first Routing Protocol, obtains the first module of the first application module Name, wherein first module name is for the default processing of label first, that is, first module name is for marking mobile terminal across flat The scheme of platform can be customized according to different company's different product.According to the first module name of the first application module first Routing Protocol address is configured under Routing Protocol, for example, primary arrangements can be used as the entitled FutureList of the first module Routing Protocol address, routing infrastructure are " Native: //Native/FutureList ", execute first according to Routing Protocol address Default processing.After executing the first default processing according to Routing Protocol address, routing configuration list is preset according to application module Business demand updated, obtain new default routing configuration list, new default routing configuration list is new version Default routing configuration list, that is, the corresponding new default processing of the first module name in new default routing configuration list It is different from the corresponding default processing of the first module name in former default routing configuration list.Signal is jumped from new pre- according to first If selecting the new Routing Protocol of the first application module in routing configuration list, the first new Routing Protocol is obtained, according to first First module name of application module configures new Routing Protocol address under the first new Routing Protocol, for example, when the first module Primary scheme can be replaced with RN scheme and configured to routing protocol address by entitled FutureList, and routing infrastructure is " RN: //main/FutureList " executes the default processing of new first according to new Routing Protocol address, so as to basis Routing rule is flexibly switched in the different implementation of equal modules, it might even be possible in the routing of server-side configuration corresponding module Protocol address list can according to circumstances carry out reasonable disposition and switching, and the different function for realizing same application module is realized Between free switching, achieved the effect that improve the cross-platform exploitation in mobile terminal and distribution efficiency.
As an alternative embodiment, selecting first jumping signal from default routing configuration list according to first The Routing Protocol of application module before obtaining the first Routing Protocol, obtains the first module name of the first application module, and by first Key name of the module name as the first Routing Protocol;Obtain the Routing Protocol address of the first application module, and by the first application module Key assignments of the Routing Protocol address as the first Routing Protocol;Pass through the key name of the first Routing Protocol and the key of the first Routing Protocol It is worth and determines the first Routing Protocol;First Routing Protocol is added in default routing configuration list.
The Routing Protocol that signal selects the first application module from default routing configuration list is being jumped according to first, is being obtained Before first Routing Protocol, routing is configured according to routing configuration rule, obtains default routing configuration list.It is available First module name of the first application module, and using the first module name as the key name of the first Routing Protocol, the first Routing Protocol Key can be made of abstract service module, specific business module.Obtain the Routing Protocol address of the first application module, and by first Key assignments of the Routing Protocol address of application module as the first Routing Protocol.By the key name of the first Routing Protocol and the first via by The key assignments of agreement determines the first Routing Protocol, and finally the first Routing Protocol is added in default routing configuration list, thus real Now default routing configuration list is generated according to routing configuration rule.
Optionally, in routing configuration rule, routing configuration formula are as follows: K=s: wherein, K is key name, Ke Yiyong to //h/m The module name for cross-platform scheme of marking, can customize, and s is solution protocol name, may be used as judging the first application module Which kind of using scheme, can customize, h is the agreement token name of solution, may be used as the packet for the data packet for judging the program Name etc., can customize, and m is the module name of solution, may be used as the locating module page, can customize.
As an alternative embodiment, the Routing Protocol address for obtaining the first application module includes: the acquisition first via By the protocol name of agreement, wherein protocol name is used to select the routing configuration rule of the first application module, passes through the first application module Routing configuration rule determine the first default processing;Obtain the agreement token name of the first Routing Protocol, wherein agreement token name is used In the data packet name of the default processing of judgement first;Obtain the second module name of the first application module, wherein the second module name is used for Position the page of the first application module;According to the protocol name of the first Routing Protocol, the agreement token name of the first Routing Protocol and Second module name of one application module determines the Routing Protocol address of the first application module.
Optionally, the structure of the Routing Protocol address of the first application module is the " protocol name of the first Routing Protocol: // agreement Mark the/the second module name ", optionally, the scheme for routing URI can be customized, for example, the Routing Protocol of Native type, The Routing Protocol etc. of Hybrid type, wherein the Routing Protocol of Native type can promote the interactive experience of user, Hybrid The Routing Protocol of type is applied between Native application between Web.The protocol name of first Routing Protocol is for selecting first The routing configuration rule of application module can be used for judging that the first application module uses any place to determine the first default processing Reason scheme can customize.Agreement token name is the token name of the first default processing, can be used for judging the number of the first default processing According to the packet name etc. of packet, can customize.Second module name is used to position the page of the first application module, is solution module name, The name of the entitled specific page corresponding to a certain code more refined than the first module name of second module, can customize.? Determine the second module name of the protocol name of the first Routing Protocol, the agreement token name of the first Routing Protocol and the first application module Later, according to the protocol name of the first Routing Protocol, the second mould of the agreement token name of the first Routing Protocol and the first application module Block name determines the Routing Protocol address of the first application module.The protocol name, agreement token name, the second module name all can serve as to pacify Full check bit carries out effective safety check, to guarantee the safety of Routing Protocol address, and then improves Routing Protocol address Fault-tolerance.
Table 1 presets routing configuration table
Type Routing configuration example
Native "trade":"Native://Native/bonusList"
React Native "FutureList":"RN://main/FutureList"
Hybrid "investGuide":"Hybrid://www/investGuide"
Web "about":"http://www.example.com"
Table 1 is default routing configuration table, and the Routing Protocol of the routing configuration table includes Native type, React Native Type, Hybrid type, Web type.For the Routing Protocol of Native type, key name is " trade ", may be used as label across The module name of platform scheme can customize, and agreement is entitled " Native ", be the protocol name of solution, may be used as judgement the One application module uses that scheme, can customize, and agreement token name is " Native ", is solution agreement token name, can It for use as the packet name etc. for judging the program, can customize, it is solution module name that the second module is entitled " bonusList ", can For use as the locating module page, can customize.For the Routing Protocol of React Native type, key name is " FutureList ", agreement is entitled " RN ", and agreement token name is " main ", and the second module is entitled " FutureList ";For The Routing Protocol of Hybrid type.Key name is " investGuide ", and agreement is entitled " Hybrid ", and agreement token name is " www ", Second module is entitled " investGuide ".
As an alternative embodiment, default routing configuration list issues or is preset in mobile terminal by server.
The default routing configuration list can be issued by server, or be formed on mobile terminal in advance.In default Routing Protocol root It updates according to business demand, after obtaining new default routing configuration list, which is stored to clothes Business device, or it is preset in mobile terminal.
As an alternative embodiment, jumping to the first application module according to the first Routing Protocol includes: according to The puppy parc name of one application module judges whether the first application module can respond the first via by protocol address, wherein general association Discuss the general title of entitled first application module;Judge the first application module token name whether with the key in the first Routing Protocol Name is corresponding, wherein the token name of the first application module is used for the title or domain name of the first application module of label;When according to The puppy parc name of one application module judges that the first application module can respond the first via by protocol address, and judges first When the token name of application module is corresponding with the key name in the first Routing Protocol, the first application is jumped to according to routing configuration rule Module and the protocol parameter for transmitting the first Routing Protocol.
In default routing configuration list, the Routing Protocol for jumping the first application module of signal behavior according to first is obtained First Routing Protocol.First application module is called first Routing Protocol using rule according to routing.Optionally, on road Does is routing infrastructure puppy parc name: // business module by using in rule? parameter=parameter value.In routing using being set in rule Surely there is puppy parc name, the general title of entitled first application module of the puppy parc, for example, the Alipay name of Alipay application Title, wechat title of wechat application etc..Judge whether the first application module can ring according to the puppy parc name of the first application module Answer the first via by protocol address, that is, judging whether the first application module is able to respond first Routing Protocol by protocol name Routing Protocol address, which can customize.Judge the first application module token name whether with the first via by assisting Key name in view is corresponding, that is, judge whether business module is corresponding with a certain key name in default routing configuration list, it should The token name of first application module is used for the title or domain name of the first application module of label, can be used for verifying, and can be with Customization.When the puppy parc name according to the first application module judges that the first application module can respond the first via by protocol address, And when judging that the token name of the first application module is corresponding with the key name in the first Routing Protocol, according to routing configuration rule It jumps to the first application module and transmits the protocol parameter of the first Routing Protocol.The first via can be defaulted as by protocol parameter Sky, or can be with parameter, for example, the first via is "? id=5&name=tom " by protocol parameter, called side is matched according to routing It sets and matches and jump Transfer Parameters, wherein called side can be the application of mobile terminal, and called side is sentenced according to routing configuration matching Whether the token name of disconnected first application module is corresponding with the key name in the first Routing Protocol, when called side is according to routing configuration When corresponding with the key name in the first Routing Protocol with the token name to judge the first application module, jumped and transmit ginseng Number.
For example, routing using rule can for " sampleapp: //trade/borrow? title=xxx&id= 123 ", wherein " sampleapp " is puppy parc name, and " trade/borrow " is business module, " title=xxx&id= 123 " be parameter=parameter value.Routing using rule for " sampleapp: //FutureList? title=xxx&id=123 ", Wherein, " sampleapp " is puppy parc name, and " FutureList " is business module, and " title=xxx&id=123 " is ginseng Number=parameter value.
Does optionally, routing use formula using the routing in rule are as follows: S: //H? p1=v1&p2=v2 ..., wherein S is Puppy parc name may be used as judging whether the first application module is able to respond the Routing Protocol address, can customize, H The token name of one application module may be used as title or domain name of the first application module of label etc., can be used for verifying, and It can customize.P=v is solution protocol parameter, can be used for the transmitting of data, can customize.
As an alternative embodiment, selecting first jumping signal from default routing configuration list according to first The Routing Protocol of application module before obtaining the first Routing Protocol, sends to server and presets routing configuration for request The request command of list, wherein server stores default routing configuration list, and server issues default routing according to request command Configured list;Default routing configuration list is cached in mobile terminal.
Server stores default routing configuration list, which is issued by server.According to first The Routing Protocol that signal selects the first application module from default routing configuration list is jumped, before obtaining the first Routing Protocol, The request command of the default routing configuration list for request is sent to server, server issues pre- according to request command If routing configuration list, default routing configuration list then is cached in mobile terminal.
The cross-platform Routing Protocol of the versatility of the embodiment of the present invention can be realized with the different solution of flexible customization, free switching Scheme, it might even be possible to reach the switching at runtime of each module different technologies scheme in mobile terminal by routing configuration, i.e., for not of the same trade or business The characteristics of business, formulates different solutions.Some business are suitble to realize using primary code, such as long list or animation requirement Higher module;Some business are suitble to realize using Web technology, as runed class timeliness demand;Some business are suitble to use React Native technology realizes, and by the Routing Protocol can with flexible customization, distribute, switch different schemes.The embodiment Solution diversification, can be with expanded, according to product feature flexible configuration different under different scenes and to extend it suitable Solution is laid a good foundation for mobile terminal Development of Modular, i.e. Mobile Development using module as development block, Each module is suitble to the implementation of oneself according to different business characteristic selections.And the calling of each intermodule no longer mutually quotes phase It mutually relies on and is communicated by Routing Protocol, substantially increase the exploitation and distribution efficiency of the cross-platform solution in mobile terminal.
Technical solution of the present invention is illustrated below with reference to preferred embodiment.
Fig. 2 is the flow chart of the configuration method of Routing Protocol according to an embodiment of the present invention.As shown in Fig. 2, the routing is assisted The configuration method of view the following steps are included:
Step S201, the first application module request newest default routing configuration list to server.
First application module of mobile terminal requests newest default routing configuration list to server on startup.
Step S202 caches newest default routing configuration list.
When server issues the newest default routing configuration list to mobile terminal, newest default routing is matched in mobile terminal List caching is set, to realize routing configuration.
The embodiment requests newest default routing configuration list to server in the first application module, then will be newest Default routing configuration list caching, to complete routing configuration.
Fig. 3 is the flow chart of the application method of Routing Protocol according to an embodiment of the present invention.As shown in figure 3, the routing is assisted The application method of view the following steps are included:
Step S301, obtain the second application module of mobile terminal second jump signal.
Mobile terminal needs to jump to the second application module from the first application module, to adapt to current business demand.It obtains The second of second application module of mobile terminal jumps signal, this second jump signal be the second application module is selected and is given birth to At signal, for example, user, which generates this by clicking second application module, second jumps signal, this second jumps signal It include the key name of the second application module in corresponding jump address.
Step S302 jumps signal in local routing configured list according to second and is looked into according to the key name of secondary route agreement Look for the Routing Protocol address of the second application module.
Routing configuration list can be issued to local by server.Secondary route agreement is in local routing configured list The Routing Protocol of second application module.Obtain the first module name in the second application module, the first mould of second application module Second default processing of the block name for the second application module of label, using the first module name in the second application module as the second tunnel By the key name of agreement, the Routing Protocol address of the second application module is searched according to the key name of secondary route agreement.
Step S303 executes the second default processing according to the Routing Protocol address of the second application module.
After the Routing Protocol address for searching the second application module according to the key name of secondary route agreement, answered according to second The second default processing is executed with the Routing Protocol address of module, the page is opened according to the scheme of the second default processing.
The embodiment jumps signal by obtaining the second of the second application module of mobile terminal, jumps signal according to second and exists The Routing Protocol address for searching the second application module in local routing configured list according to the key name of secondary route agreement, according to the The Routing Protocol address of two application modules executes the second default processing, answers to realize and jump to second from the first application module With module, solution diversification, expansibleization are realized, simultaneously according to product feature flexible configuration different under different scenes Its applicable solution is extended, is laid a good foundation for mobile terminal Development of Modular, each application module is according to different Business characteristic selects the implementation for being suitble to oneself, and no longer mutually reference interdepends and passes through the calling between each application module Routing Protocol is communicated, and has achieved the effect that improve the cross-platform exploitation in mobile terminal and distribution efficiency.
Fig. 4 is the flow chart of the cross-platform processing method of mobile terminal according to a second embodiment of the present invention.Such as Fig. 4 institute Show, the cross-platform processing method of the mobile terminal the following steps are included:
Step S401, obtain the Hybrid module 2 of mobile terminal jumps signal.
Mobile terminal works under the application scenarios of RN module 1, clicks the Hybrid module 2 of mobile terminal, obtains Hybrid mould Block 2 jumps signal, and Hybrid module 2 is selected from default routing configuration list according to the signal that jumps of Hybrid module 2 Routing Protocol.
Step S402 is jumped in default routing configuration list according to the Routing Protocol address of Hybrid module 2 Hybrid module 2.
Step S403, obtain the Native module 3 of mobile terminal jumps signal.
Mobile terminal works under the application scenarios of Hybrid module 2, clicks the Native module 3 of mobile terminal, obtains Native module 3 jumps signal, selects Native from default routing configuration list according to the signal that jumps of Native module 3 The Routing Protocol of module 3.
Step S404 is jumped in default routing configuration list according to the Routing Protocol address of Native module 3 Native module 3.
The embodiment jumps signal by obtaining the Hybrid module 2 of mobile terminal, then in default routing configuration list It is middle that Hybrid module 2 is jumped to according to the Routing Protocol address of Hybrid module 2, obtain the jump of the Native module 3 of mobile terminal Rotaring signal jumps to Native module 3 according to the Routing Protocol address of Native module 3 in default routing configuration list, real Solution diversification, expansibleization are showed, according to product feature flexible configuration different under different scenes and to extend it suitable Solution is laid a good foundation for mobile terminal Development of Modular, and each application module is according to different business characteristics Selection is suitble to the implementation of oneself, and no longer mutually reference interdepends and passes through Routing Protocol the calling between each application module It is communicated, has achieved the effect that improve the cross-platform exploitation in mobile terminal and distribution efficiency.
Fig. 5 is the flow chart of the cross-platform processing method of mobile terminal according to a third embodiment of the present invention.Such as Fig. 5 institute Show, the cross-platform processing method of the mobile terminal the following steps are included:
Step S501, server issue the first default routing configuration list.
Server issues the first default routing configuration list, for example, the first default routing configuration list can be routing 1.0 version of configured list.
Step S502, the first application module use primary arrangements routing ground according to the first default routing configuration list Location.
First application module uses primary arrangements routing address according to the first default routing configuration list.For example, " Native: //Native/FutureList " wherein, " FutureList " corresponds to the key name in the first Routing Protocol.
Step S503, server issue the second default routing configuration list.
Server issues the second default routing configuration list, for example, the second default routing configuration list can be routing 2.0 version of configured list is the more new version of the first default routing configuration list.
Step S504, the first application module use RN arrangements routing address according to the second default routing configuration list.
First application module uses RN arrangements routing address according to the second default routing configuration list.For example, " RN: //main/FutureList " wherein, " FutureList " corresponds to the key name in the first Routing Protocol.
For example, there are serious problems for discovery primary code after mobile terminal publication new version, and send out version and update reparation The problem needs the auditing flow of long period, to cause the major accident of user experience on line.And it is assisted by the routing View can be updated the realization of an other schemes by server-side configuration distributing at any time, solve the accident to repair.
The embodiment issues the first default routing configuration list by server, and then the first application module is pre- according to first If routing configuration list uses primary arrangements routing address, server issues the second default routing configuration list, and first answers RN arrangements routing address is used according to the second default routing configuration list with module, can flexibly be switched according to routing rule Into the different implementation of equal modules, according to circumstances reasonably it can be configured and be switched, reach raising movement Hold the effect of cross-platform exploitation and distribution efficiency.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not The sequence being same as herein executes shown or described step.
The embodiment of the invention also provides a kind of cross-platform processing units of mobile terminal.It should be noted that the reality Apply the mobile terminal of example cross-platform processing unit can be used for executing the embodiment of the present invention mobile terminal cross-platform Processing method.
Fig. 6 is the schematic diagram of the cross-platform processing unit of mobile terminal according to an embodiment of the present invention.As shown in Figure 6. The cross-platform processing unit of the mobile terminal includes: first acquisition unit 10, first selecting unit 20, the first jump-transfer unit 30, second acquisition unit 40, the second selecting unit 50 and the second jump-transfer unit 60.
First acquisition unit 10 jumps signal for obtaining the first of the first application module of mobile terminal, wherein first jumps Rotaring signal is the signal for being selected the first application module and being generated.
First selecting unit 20 selects first to apply mould for jumping signal according to first from default routing configuration list The Routing Protocol of block obtains the first Routing Protocol.
First jump-transfer unit 30 executes the first default place for jumping to the first application module according to the first Routing Protocol Reason.
Second acquisition unit 40 jumps signal for obtaining the second of the second application module of mobile terminal, wherein second jumps Rotaring signal is the signal for being selected the second application module and being generated.
Second selecting unit 50 selects second to apply mould for jumping signal according to second from default routing configuration list The Routing Protocol of block obtains secondary route agreement.
Second jump-transfer unit 60, for jumping to the second application module from the first application module according to secondary route agreement, Execute the second default processing.
Optionally, the cross-platform processing unit of the mobile terminal further include: the first configuration unit, for according to first The Routing Protocol that signal selects the first application module from default routing configuration list is jumped, after obtaining the first Routing Protocol, Routing Protocol address is configured under the first Routing Protocol according to the first module name of the first application module, wherein the first module name For the default processing of label first;First execution unit, for executing the first default processing, third choosing according to Routing Protocol address Unit is selected, for jumping the new routing that signal selects the first application module from new default routing configuration list according to first Agreement obtains the first new Routing Protocol, wherein new default routing configuration list is that the default routing configuration of new version arranges Table;Second configuration unit configures under the first new Routing Protocol newly for the first module name according to the first application module Routing Protocol address;Second execution unit, for executing the default processing of new first according to new Routing Protocol address.
Optionally, the cross-platform processing unit of the mobile terminal further include: third acquiring unit, for according to first The Routing Protocol that signal selects the first application module from default routing configuration list is jumped, before obtaining the first Routing Protocol, The first module name of the first application module is obtained, and using the first module name as the key name of the first Routing Protocol;4th obtains list Member, for obtaining the Routing Protocol address of the first application module, and using the Routing Protocol address of the first application module as first The key assignments of Routing Protocol;Determination unit, the key assignments for key name and the first Routing Protocol by the first Routing Protocol determine One Routing Protocol;And adding unit, for the first Routing Protocol to be added in default routing configuration list.
Optionally, the 4th acquiring unit includes the first acquisition module, and second obtains module, and third obtains module and determines mould Block.Wherein, first module is obtained, for obtaining the protocol name of the first Routing Protocol, wherein protocol name is for selecting the first application The routing configuration rule of module determines the first default processing by the routing configuration rule of the first application module;Second obtains mould Block, for obtaining the agreement token name of the first Routing Protocol, wherein agreement token name is used to judge the data of the first default processing Packet name;Third obtains module, for obtaining the second module name of the first application module, wherein the second module name is for positioning the The page of one application module;And determining module, for the agreement according to the protocol name of the first Routing Protocol, the first Routing Protocol Second module name of token name and the first application module determines the Routing Protocol address of the first application module.
Optionally, the first jump-transfer unit 30 includes first judgment module, the second judgment module and jump module.Wherein, One judgment module, for the puppy parc name according to the first application module judge the first application module whether can respond the first via by Protocol address, wherein the general title of entitled first application module of puppy parc;Second judgment module, for judging that first answers It is whether corresponding with the key name in the first Routing Protocol with the token name of module, wherein the token name of the first application module is used for The title or domain name of the first application module of label;And jump module, for when the puppy parc according to the first application module Name judges that the first application module can respond the first via by protocol address, and judges the token name and the of the first application module When key name in one Routing Protocol is corresponding, the first application module is jumped to according to routing configuration rule and transmits the first via by assisting The protocol parameter of view.
Optionally, the cross-platform processing unit of the mobile terminal further include: transmission unit, for being jumped according to first Signal selects the Routing Protocol of the first application module from default routing configuration list, before obtaining the first Routing Protocol, to clothes Business device sends the request command that routing configuration list is preset for request, wherein server, which stores, presets routing configuration column Table, server issue default routing configuration list according to request command;And cache unit, for caching default road in mobile terminal By configured list.
The embodiment first jumps signal by the first application module that first acquisition unit 10 obtains mobile terminal, and first Jumping signal is the signal for being selected the first application module and being generated, and jumps letter according to first by first selecting unit 20 The Routing Protocol that the first application module number is selected from default routing configuration list, obtains the first Routing Protocol, passes through first and jumps Turn unit 30 and first application module is jumped to according to the first Routing Protocol, executes the first default processing, pass through second acquisition unit The second of second application module of 40 acquisition mobile terminals jumps signal, and second jumps signal to select the second application module And the signal generated, signal is jumped according to second by the second selecting unit 50 and selects second to answer from default routing configuration list With the Routing Protocol of module, secondary route agreement is obtained, is answered according to secondary route agreement from first by the second jump-transfer unit 60 The second application module is jumped to module, the second default processing is executed, has reached and improved mobile terminal cross-platform exploitation and distribution The effect of efficiency.
The Routing Protocol of the embodiment of the present invention meets URI rule, can be supported and be identified by each Mobile Development platform, may customize Change, can be customized according to different company's different product, the difference of equal modules can be flexibly switched to according to routing rule In implementation, it might even be possible in the routing address list of server-side configuration corresponding module, according to circumstances can rationally be matched It sets and switches, solution diversification, expansibleization different feature flexible configurations and extend under different scenes according to product Its applicable solution can be used for safety check, and wherein the positions such as protocol name, token name, module name all can serve as to pacify Full check bit carries out effective safety check, to guarantee that the safety of routing address improves fault-tolerance, melts for mobile terminal module Hair is laid a good foundation, that is, Mobile Development, using module as development block, each module is selected according to different business characteristics The implementation for being suitble to oneself is selected, and no longer mutually reference interdepends and is led to by Routing Protocol the calling of each intermodule News have achieved the effect that improve the cross-platform exploitation in mobile terminal and distribution efficiency.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific Hardware and software combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (13)

1. a kind of cross-platform processing method of mobile terminal characterized by comprising
Obtain the first application module of mobile terminal first jumps signal, wherein described first jumps signal as to described first Application module is selected and the signal that generates;
The Routing Protocol that signal selects first application module from default routing configuration list is jumped according to described first, is obtained To the first Routing Protocol;
First application module is jumped to according to first Routing Protocol, executes the first default processing;
Obtain the second application module of the mobile terminal second jumps signal, wherein described second jumps signal as to described Second application module is selected and the signal that generates;
Jumping signal from the default routing configuration list according to described second selects the routing of second application module to assist View, obtains secondary route agreement;And
Second application module is jumped to from first application module according to the secondary route agreement, it is default to execute second Processing.
2. the method according to claim 1, wherein jumping signal from the default routing according to described first The Routing Protocol that first application module is selected in configured list, after obtaining first Routing Protocol, the method is also Include:
Routing Protocol address is configured under first Routing Protocol according to the first module name of first application module, In, first module name is for marking the described first default processing;
The described first default processing is executed according to the Routing Protocol address;
The new road that signal selects first application module from new default routing configuration list is jumped according to described first By agreement, the first new Routing Protocol is obtained, wherein the new default routing configuration list is the default routing of new version Configured list;
New Routing Protocol is configured under the first new Routing Protocol according to the first module name of first application module Address;
The default processing of new first is executed according to the new Routing Protocol address.
3. the method according to claim 1, wherein jumping signal from the default routing according to described first The Routing Protocol that first application module is selected in configured list, before obtaining first Routing Protocol, the method is also Include:
The first module name of first application module is obtained, and using first module name as first Routing Protocol Key name;
Obtain the Routing Protocol address of first application module, and using the Routing Protocol address of first application module as The key assignments of first Routing Protocol;
First Routing Protocol is determined by the key name of first Routing Protocol and the key assignments of first Routing Protocol;With And
First Routing Protocol is added in the default routing configuration list.
4. according to the method described in claim 3, it is characterized in that, obtaining the Routing Protocol address packet of first application module It includes:
Obtain the protocol name of first Routing Protocol, wherein the protocol name is used to select the road of first application module By configuration rule, the described first default processing is determined by the routing configuration rule of first application module;
Obtain the agreement token name of first Routing Protocol, wherein the agreement token name is for judging that described first is default The data packet name of processing;
Obtain the second module name of first application module, wherein second module name is for positioning first application The page of module;And
Mould is applied according to the protocol name of first Routing Protocol, the agreement token name of first Routing Protocol and described first Second module name of block determines the Routing Protocol address of first application module.
5. the method according to claim 1, wherein the default routing configuration list issued by server or It is preset in the mobile terminal.
6. being answered the method according to claim 1, wherein jumping to described first according to first Routing Protocol Include: with module
Judge whether first application module can respond the first via by assisting according to the puppy parc name of first application module Discuss address, wherein the general title of entitled first application module of puppy parc;
Judge whether the token name of first application module is corresponding with the key name in first Routing Protocol, wherein institute The token name for stating the first application module is used to mark the title or domain name of first application module;And
When judging that first application module can respond the first via according to the puppy parc name of first application module By protocol address, and judge that the token name of first application module is corresponding with the key name in first Routing Protocol When, first application module is jumped to according to routing configuration rule and transmits the protocol parameter of first Routing Protocol.
7. the method according to claim 1, wherein jumping signal from the default routing according to described first The Routing Protocol that first application module is selected in configured list, before obtaining first Routing Protocol, the method is also Include:
The request command for presetting routing configuration list described in request is sent to server, wherein the server is deposited The default routing configuration list is stored up, the server issues the default routing configuration list according to the request command;With And
The default routing configuration list is cached in the mobile terminal.
8. a kind of cross-platform processing unit of mobile terminal characterized by comprising
First acquisition unit jumps signal for obtaining the first of the first application module of mobile terminal, wherein described first jumps Signal is the signal for being selected first application module and being generated;
First selecting unit selects first application for jumping signal according to described first from default routing configuration list The Routing Protocol of module obtains the first Routing Protocol;
It is default to execute first for jumping to first application module according to first Routing Protocol for first jump-transfer unit Processing;
Second acquisition unit jumps signal for obtaining the second of the second application module of the mobile terminal, wherein described second Jumping signal is the signal for being selected second application module and being generated;
Second selecting unit selects described second for jumping signal from the default routing configuration list according to described second The Routing Protocol of application module obtains secondary route agreement;And
Second jump-transfer unit, for jumping to second application from first application module according to the secondary route agreement Module executes the second default processing.
9. device according to claim 8, which is characterized in that described device further include:
First configuration unit, for selecting described from the default routing configuration list jumping signal according to described first The Routing Protocol of one application module, after obtaining first Routing Protocol, according to the first module of first application module Name configures Routing Protocol address under first Routing Protocol, wherein first module name is described first pre- for marking If processing;
First execution unit, for executing the described first default processing according to the Routing Protocol address;
Third selecting unit selects described first for jumping signal from new default routing configuration list according to described first The new Routing Protocol of application module obtains the first new Routing Protocol, wherein the new default routing configuration list is new Version default routing configuration list;
Second configuration unit, for the first module name according to first application module under the first new Routing Protocol Configure new Routing Protocol address;
Second execution unit, for executing the default processing of new first according to the new Routing Protocol address.
10. device according to claim 8, which is characterized in that described device further include:
Third acquiring unit, for selecting described from the default routing configuration list jumping signal according to described first The Routing Protocol of one application module before obtaining first Routing Protocol, obtains the first module of first application module Name, and using first module name as the key name of first Routing Protocol;
4th acquiring unit, for obtaining the Routing Protocol address of first application module, and by first application module Key assignments of the Routing Protocol address as first Routing Protocol;
Determination unit, the key assignments for key name and first Routing Protocol by first Routing Protocol determine described One Routing Protocol;And
Adding unit, for first Routing Protocol to be added in the default routing configuration list.
11. device according to claim 10, which is characterized in that the 4th acquiring unit includes:
First obtains module, for obtaining the protocol name of first Routing Protocol, wherein the protocol name is described for selecting The routing configuration rule of first application module determines that described first is default by the routing configuration rule of first application module Processing;
Second obtains module, for obtaining the agreement token name of first Routing Protocol, wherein the agreement token name is used for Judge the data packet name of the described first default processing;
Third obtains module, for obtaining the second module name of first application module, wherein second module name is used for Position the page of first application module;And
Determining module, for according to the protocol name of first Routing Protocol, the agreement token name of first Routing Protocol and Second module name of first application module determines the Routing Protocol address of first application module.
12. device according to claim 8, which is characterized in that first jump-transfer unit includes:
First judgment module, for whether judging first application module according to the puppy parc name of first application module The first via can be responded by protocol address, wherein the general title of entitled first application module of puppy parc;
Second judgment module, for judge first application module token name whether with the key in first Routing Protocol Name is corresponding, wherein the token name of first application module is used to mark the title or domain name of first application module; And
Jump module judges that first application module can be rung according to the puppy parc name of first application module for working as Answer the first via by protocol address, and judge first application module token name and first Routing Protocol in Key name it is corresponding when, first application module is jumped to according to routing configuration rule and transmits first Routing Protocol Protocol parameter.
13. device according to claim 8, which is characterized in that described device further include:
Transmission unit, for selecting described first to answer jumping signal from the default routing configuration list according to described first With the Routing Protocol of module, before obtaining first Routing Protocol, send to server for presetting road described in request By the request command of configured list, wherein the server stores the default routing configuration list, and the server is according to institute It states request command and issues the default routing configuration list;And
Cache unit, for caching the default routing configuration list in the mobile terminal.
CN201610252444.3A 2016-04-21 2016-04-21 The cross-platform treating method and apparatus of mobile terminal Active CN105955723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610252444.3A CN105955723B (en) 2016-04-21 2016-04-21 The cross-platform treating method and apparatus of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610252444.3A CN105955723B (en) 2016-04-21 2016-04-21 The cross-platform treating method and apparatus of mobile terminal

Publications (2)

Publication Number Publication Date
CN105955723A CN105955723A (en) 2016-09-21
CN105955723B true CN105955723B (en) 2019-03-15

Family

ID=56914860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610252444.3A Active CN105955723B (en) 2016-04-21 2016-04-21 The cross-platform treating method and apparatus of mobile terminal

Country Status (1)

Country Link
CN (1) CN105955723B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329978A (en) * 2017-05-31 2017-11-07 北京京东尚科信息技术有限公司 The method for routing and device of multi-platform fusion
CN109086143B (en) * 2017-06-14 2022-02-08 北京小米移动软件有限公司 Application interaction method and device
WO2018227899A1 (en) 2017-06-14 2018-12-20 北京小米移动软件有限公司 Application interaction method, interaction method and device
CN107729014B (en) * 2017-09-06 2021-03-30 天津五八到家信息技术有限公司 Page jump method and structure based on Android
CN107818046B (en) * 2017-10-11 2022-03-22 五八有限公司 A/B test method and device for application program page
CN108804197B (en) * 2018-06-19 2022-04-05 北京五八信息技术有限公司 Dynamic componentization implementation method, device, equipment and storage medium
CN108897612A (en) * 2018-07-17 2018-11-27 北京京东金融科技控股有限公司 Route the method and apparatus jumped
CN110780863B (en) * 2019-10-25 2023-06-20 苏州浪潮智能科技有限公司 Cross-platform development method, device, equipment and medium of storage system
CN114064017B (en) * 2020-08-04 2024-08-30 腾讯科技(深圳)有限公司 Drawing method and related equipment
CN112685662A (en) * 2020-12-09 2021-04-20 广东各有所爱信息科技有限公司 Cross-platform custom jump method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6483852B1 (en) * 1997-12-15 2002-11-19 Inria Institut National De Recherche En Informatique Et En Automatique Method and apparatus for connecting network segments
CN104657118A (en) * 2013-11-18 2015-05-27 中国移动通信集团公司 Native + Web mixed mobile application achieving method and device
CN105138340A (en) * 2015-09-15 2015-12-09 北京齐尔布莱特科技有限公司 Interaction method and system for Native and Web pages

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6483852B1 (en) * 1997-12-15 2002-11-19 Inria Institut National De Recherche En Informatique Et En Automatique Method and apparatus for connecting network segments
CN104657118A (en) * 2013-11-18 2015-05-27 中国移动通信集团公司 Native + Web mixed mobile application achieving method and device
CN105138340A (en) * 2015-09-15 2015-12-09 北京齐尔布莱特科技有限公司 Interaction method and system for Native and Web pages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
移动混合开发框架;徐隆龙; 李莹; 白静;《计算机系统应用》;20141231;53-59

Also Published As

Publication number Publication date
CN105955723A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN105955723B (en) The cross-platform treating method and apparatus of mobile terminal
CN112565094B (en) Multi-mode network topology structure
CN104468817B (en) Implementation method and device, server, the client of resource is downloaded by CDN
CN105337961B (en) The method and server communicated with client
CN102047243A (en) Request routing based on class
CN104090825A (en) Dynamically migrating computer networks
CN105577818A (en) Data transmission methods and apparatuses, and vehicle-mounted terminal
CN109391640A (en) Dynamic content accesses accelerated method, system, medium and computing device
CN103534988A (en) Publish and subscribe messaging method and apparatus
CN109063064A (en) A kind of method for page jump, device and computer readable storage medium
CN106357521A (en) Data sharing method and device
CN102484611B (en) Link state identifier collision handling
CN102571446A (en) Method, device and system for upgrading network device
CN104335198B (en) Server, method and the terminal for preventing accessing resource are accessed for management terminal
CN104301439B (en) Load-balancing method, apparatus and system
CN102404387A (en) Method, device and equipment for information synchronization with other nodes
CN105516389A (en) Method and device for modifying domain name and IP mapping relation
CN110222280A (en) Data processing method and device for sharing
CN107172206A (en) A kind of router upgrade method and system
CN102170456A (en) Method, device and system for acquiring content in PPN (peer-to-peer network)
CN105791073A (en) Service deployment method and device in virtual network
CN106304030A (en) A kind of means of communication based on virtual identity information, Apparatus and system
CN109150981B (en) Block chain network networking method, device, equipment and computer readable storage medium
CN103138961B (en) server control method, controlled server and central control server
CN102656942A (en) Method for address translator traversal in 3GPP networks

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