CN107729014A - A kind of method for page jump and structure based on Android - Google Patents

A kind of method for page jump and structure based on Android Download PDF

Info

Publication number
CN107729014A
CN107729014A CN201710794603.7A CN201710794603A CN107729014A CN 107729014 A CN107729014 A CN 107729014A CN 201710794603 A CN201710794603 A CN 201710794603A CN 107729014 A CN107729014 A CN 107729014A
Authority
CN
China
Prior art keywords
protocol
configuration
application program
layer
redirects
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710794603.7A
Other languages
Chinese (zh)
Other versions
CN107729014B (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.)
Tianjin May 8th Home Information Technology Co., Ltd.
Original Assignee
Beijing 58 To Home Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 To Home Information Technology Co Ltd filed Critical Beijing 58 To Home Information Technology Co Ltd
Priority to CN201710794603.7A priority Critical patent/CN107729014B/en
Publication of CN107729014A publication Critical patent/CN107729014A/en
Application granted granted Critical
Publication of CN107729014B publication Critical patent/CN107729014B/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/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a kind of method for page jump based on android system, methods described includes:A) protocol processor of application program is parsed and changed to the interlinkage agreement of external service, by obtain redirect keyword and parameter list is encapsulated into redirect in result class and generates protocol entity;B) all interfaces of application program are stored in configured list during application program launching, and carry out protocol configuration to the protocol entity, and body is redirected so as to obtain;C) treaty shopping that redirects that body is redirected according to redirects protocol path, and the protocol path that redirects is matched with protocol configuration key, if the match is successful, jumps to target interface;If matching is unsuccessful, protocol configuration is re-started in return to step b).It is provided by the invention it is a kind of based on Android method for page jump without application program send out version, you can external service is jumped to any interface of application program.

Description

A kind of method for page jump and structure based on Android
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method for page jump and structure based on Android.
Background technology
With the popularization of smart mobile phone and mobile terminal, run on Android application programs (APP) and also widely should With.Adjust service to arouse whole APP based on the outside that android system provides in prior art, and can not be accurately positioned To some specific interface or some demand.Such as in the prior art by the web page message of external service, PUSH message or Person's short message (such as a certain household services message of webpage, a certain housekeeping of push take a certain family of message or short message sending Political affairs service message) APP can only be aroused, and can not directly reach APP specific interface or demand (such as household services in APP Interface).
Above mentioned problem of the prior art is outer by web page message, PUSH message or short message etc. to result in user Portion's service can only enter APP and can not be directly entered demand interface, cause Consumer's Experience bad.
Therefore, in order to solve the above problems, it is necessary to which a kind of send out version without application program, you can jumping to external service should With any interface of program, and freely control the method for page jump and structure based on Android of specific webpage.
The content of the invention
One aspect of the present invention is to provide a kind of method for page jump based on android system, methods described bag Include:
A) protocol processor of application program is parsed and changed to the interlinkage agreement of external service, is redirected what is obtained Keyword and parameter list, which are encapsulated into redirect in result class, generates protocol entity;
B) all interfaces of application program are stored in configured list during application program launching, and to the agreement Body carries out protocol configuration, and body is redirected so as to obtain;
C) treaty shopping that redirects that body is redirected according to redirects protocol path, and redirects protocol path and association by described View configuration key is matched, if the match is successful, jumps to target interface;If matching is unsuccessful, weight in return to step b) It is new to carry out protocol configuration.
Preferably, the external service includes webpage, push and short message, and the interlinkage agreement form of the external service is URI forms.
Preferably, all interfaces of the application program with<key,value>Form be stored in configured list.
Preferably, the protocol configuration passes sequentially through following configuration layer and completed:
Fixed configurations layer protocol configures, by fixed-link and the one-to-one storage of fixed page, with the service of compatible legacy version;
Configuration layer protocol configuration is matched, version number is issued by service end, it is local one-to-one to configuration link and the configuration page Storage;
Configuration layer protocol configuration is scanned, the certain kinds of the protocol entity are marked, and and route matching, to the protocol entity The class of other in addition to certain kinds use class name and route matching, full dose configuration number of the generation comprising all interfaces of application program According to.
Preferably, the fixed-link carries out one-to-one storage with fixed page using static code generation table structure.
Preferably, when application program starts every time, the matching configuration layer verifies whether version updates.
Another aspect of the present invention is to provide a kind of page jump structure based on android system, the structure Including protocol analysis layer, protocol configuration layer and layer is redirected, wherein
The protocol analysis layer, the link for parsing and changing external service by the protocol processor of application program are assisted View, by obtain redirect keyword and parameter list is encapsulated into redirect in result class and generates protocol entity;
The protocol configuration layer includes fixed configurations layer, matching configuration layer and scanning configuration layer, the institute for application program There is interface to be stored in during application program launching in configured list, and protocol configuration acquisition is carried out to the protocol entity and is redirected Body;
Described to redirect layer, the treaty shopping that redirects for redirecting body according to redirects protocol path, and by the jump Turn protocol path to be matched with protocol configuration key.
Preferably, the fixed configurations layer, for by fixed-link and the one-to-one storage of fixed page;
The matching configuration layer, it is local one-to-one to configuration link and the configuration page for issuing version number by service end Storage;
The scanning configuration layer, for the certain kinds mark to the protocol entity, and and route matching, to the protocol entity The class of other in addition to certain kinds use class name and route matching, full dose configuration number of the generation comprising all interfaces of application program According to.
Preferably, the external service includes webpage, push and short message, and the interlinkage agreement form of the external service is URI forms;All interfaces of the application program with<key,value>Form be stored in configured list.
Preferably, the fixed-link carries out one-to-one storage with fixed page using static code generation table structure;Institute State matching configuration layer and verify whether version updates when application program starts every time.
A kind of method for page jump and structure based on Android provided by the invention send out version without application program, you can External service is jumped to any interface of application program, and freely controls specific webpage.
A kind of method for page jump and structure based on Android provided by the invention by edition upgrading without that can be entered The extension of row agreement, non-intrusion type access, normally opened hair is aligned without influence, to system without invasive, without needing extra work.
It should be appreciated that foregoing description substantially and follow-up description in detail are exemplary illustration and explanation, should not As the limitation to the claimed content of the present invention.
Brief description of the drawings
With reference to the accompanying drawing enclosed, the present invention more purpose, function and advantages will pass through the as follows of embodiment of the present invention Description is illustrated, wherein:
Fig. 1 diagrammatically illustrates the structured flowchart of the page jump structure of the invention based on android system;
Fig. 2 shows the structured flowchart of protocol configuration layer of the present invention;
Fig. 3 shows the FB(flow block) of the method for page jump of the invention based on android system.
Embodiment
By reference to one exemplary embodiment, the purpose of the present invention and function and the side for realizing these purposes and function Method will be illustrated.However, the present invention is not limited to one exemplary embodiment as disclosed below;Can by multi-form come It is realized.The essence of specification is only to aid in the detail of the various equivalent modifications Integrated Understanding present invention.
Hereinafter, embodiments of the invention will be described with reference to the drawings, relevant technical terms should be people in the art Known to member.In the accompanying drawings, identical reference represents same or similar part, or same or like step, Unless otherwise indicated.
With reference to specific embodiment first to a kind of page jump knot based on android system provided by the invention Structure illustrates, as shown in Figure 1 the structured flowchart of page jump structure of the present invention based on android system, this hair shown in Fig. 2 The structured flowchart of bright protocol configuration layer, the page jump structure of the invention based on android system are transported in application program (APP) OK, the message of external service is obtained, wherein external service includes but is not limited to webpage, push, short message and other applications, The message of external service includes but is not limited to the message of web page message, PUSH message, short message and other applications.Example As the page jump structure run on application program A obtain the household services message from webpage, the household services message of push, The short breath message of household services of transmission and application program B message.Page jump structure of the present invention to above-mentioned message by entering Row parsing and configuration, interface (such as household services circle of application response are jumped directly to by above-mentioned message using user Face).
Page jump structure 100 of the invention based on android system includes protocol analysis layer 101, protocol configuration layer 102 With redirect layer 103, wherein
Protocol analysis layer 101, the link for parsing and changing external service by the protocol processor of application program are assisted View, by obtain redirect keyword and parameter list is encapsulated into redirect in result class and generates protocol entity.The link association of external service View form is URI forms.
Protocol configuration layer 102 includes fixed configurations layer 201, matching configuration layer 202 and scanning configuration layer 203, for applying All interfaces of program are stored in configured list during application program launching, and carry out protocol configuration acquisition to protocol entity Redirect body.All interfaces of application program with<key,value>Form be stored in configured list.
Specifically, fixed configurations layer 201, for by fixed-link and the one-to-one storage of fixed page, it is preferable that fixed chain Connect and one-to-one storage is carried out using static code generation table structure with fixed page.
Match configuration layer 202, for issuing version number by service end, it is local to configuration link with configuring that the page is one-to-one to be deposited Storage.Preferably, verify whether version updates when application program starts every time.
Configuration layer 203 is scanned, for the certain kinds mark to the protocol entity, and and route matching, to the protocol entity The class of other in addition to certain kinds use class name and route matching, full dose configuration number of the generation comprising all interfaces of application program According to.
Layer 103 is redirected, the treaty shopping that redirects for redirecting body according to redirects protocol path, and is redirected described Protocol path is matched with protocol configuration key.
The method of page jump, which is said, to be realized to a kind of page jump structure based on android system of the present invention below Bright, the FB(flow block) of method for page jump of the present invention based on android system, method for page jump are included such as shown in Figure 3 Lower step:
S101, the interlinkage agreement for parsing external service
The protocol processor of application program is parsed and changed to the interlinkage agreement of external service, and pass is redirected by what is obtained Keyword and parameter list, which are encapsulated into redirect in result class, generates protocol entity.In embodiment outside services package include but be not limited to webpage, Push and short message, the interlinkage agreement form of external service is URI forms.
S102, protocol configuration is carried out to protocol entity
All interfaces of application program are stored in configured list during application program launching, and in step S101 Obtain protocol entity and carry out protocol configuration, body is redirected so as to obtain.In embodiment all interfaces of application program with<key,value> Form be stored in configured list.
Specific protocol configuration process passes sequentially through following configuration layer and completed:
Fixed configurations layer protocol configures, by fixed-link and the one-to-one storage of fixed page, with the service of compatible legacy version. Preferably, fixed-link carries out one-to-one storage with fixed page using static code generation table structure.
Configuration layer protocol configuration is matched, version number is issued by service end, it is local one-to-one to configuration link and the configuration page Storage.When application program starts every time, matching configuration layer verifies whether version updates.
Configuration layer protocol configuration is scanned, the certain kinds of the protocol entity are marked, and and route matching, to the protocol entity The class of other in addition to certain kinds use class name and route matching, full dose configuration number of the generation comprising all interfaces of application program According to.
S103, redirect protocol path and matched with protocol configuration key
The treaty shopping that redirects according to body is redirected redirects protocol path, and will redirect protocol path and protocol configuration key Matched, if the match is successful, jump to target interface;If matching is unsuccessful, association is re-started in return to step S102 View configuration.
A kind of method for page jump and structure based on Android provided by the invention send out version without application program, you can The problem of external service is jumped to any interface of application program, and freely controls specific webpage.
With reference to the explanation of the invention disclosed here and practice, other embodiment of the invention is for those skilled in the art It all will be readily apparent and understand.Illustrate and embodiment is to be considered only as exemplary, of the invention true scope and purport is equal It is defined in the claims.

Claims (10)

1. a kind of method for page jump based on android system, it is characterised in that methods described includes:
A) protocol processor of application program is parsed and changed to the interlinkage agreement of external service, and key is redirected by what is obtained Word and parameter list, which are encapsulated into redirect in result class, generates protocol entity;
B) all interfaces of application program are stored in configured list during application program launching, and the protocol entity is entered Row protocol configuration, body is redirected so as to obtain;
C) treaty shopping that redirects that body is redirected according to redirects protocol path, and the protocol path that redirects is matched somebody with somebody with agreement Put key to be matched, if the match is successful, jump to target interface;If matching is unsuccessful, enter again in return to step b) Row protocol configuration.
2. according to the method for claim 1, it is characterised in that the external service includes webpage, push and short message, institute The interlinkage agreement form for stating external service is URI forms.
3. according to the method for claim 1, it is characterised in that all interfaces of the application program with<key,value> Form be stored in configured list.
4. according to the method for claim 1, it is characterised in that the protocol configuration passes sequentially through following configuration layer and completed:
Fixed configurations layer protocol configures, by fixed-link and the one-to-one storage of fixed page, with the service of compatible legacy version;
Configuration layer protocol configuration is matched, version number is issued by service end, it is local to configuration link and the configuration one-to-one storage of the page;
Configuration layer protocol configuration is scanned, the certain kinds of the protocol entity are marked, and and route matching, the protocol entity is removed Other classes beyond certain kinds use class name and route matching, and generation includes the full dose configuration data at all interfaces of application program.
5. according to the method for claim 4, it is characterised in that the fixed-link is given birth to fixed page using static code One-to-one storage is carried out into table structure.
6. according to the method for claim 4, it is characterised in that when application program starts every time, the matching configuration layer is equal Whether verification version updates.
7. a kind of page jump structure based on android system, it is characterised in that the structure includes protocol analysis layer, association Discuss configuration layer and redirect layer, wherein
The protocol analysis layer, for parsing and changing the interlinkage agreement of external service by the protocol processor of application program, By obtain redirect keyword and parameter list is encapsulated into redirect in result class and generates protocol entity;
The protocol configuration layer includes fixed configurations layer, matching configuration layer and scanning configuration layer, institute's bounded for application program Face is stored in configured list during application program launching, and protocol configuration acquisition is carried out to the protocol entity and redirects body;
Described to redirect layer, the treaty shopping that redirects for redirecting body according to redirects protocol path, and redirects association by described View path is matched with protocol configuration key.
8. structure according to claim 7, it is characterised in that the fixed configurations layer, for by fixed-link and fixation The one-to-one storage of the page;
The matching configuration layer, it is local to configuration link and the configuration one-to-one storage of the page for issuing version number by service end;
The scanning configuration layer, for the certain kinds mark to the protocol entity, and and route matching, the protocol entity is removed Other classes beyond certain kinds use class name and route matching, and generation includes the full dose configuration data at all interfaces of application program.
9. structure according to claim 7, it is characterised in that the external service includes webpage, push and short message, institute The interlinkage agreement form for stating external service is URI forms;All interfaces of the application program with<key,value>Form deposit Storage is in configured list.
10. structure according to claim 8, it is characterised in that the fixed-link uses static code with fixed page Generate table structure and carry out one-to-one storage;Whether more the matching configuration layer verifies version when application program starts every time Newly.
CN201710794603.7A 2017-09-06 2017-09-06 Page jump method and structure based on Android Active CN107729014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710794603.7A CN107729014B (en) 2017-09-06 2017-09-06 Page jump method and structure based on Android

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710794603.7A CN107729014B (en) 2017-09-06 2017-09-06 Page jump method and structure based on Android

Publications (2)

Publication Number Publication Date
CN107729014A true CN107729014A (en) 2018-02-23
CN107729014B CN107729014B (en) 2021-03-30

Family

ID=61205599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710794603.7A Active CN107729014B (en) 2017-09-06 2017-09-06 Page jump method and structure based on Android

Country Status (1)

Country Link
CN (1) CN107729014B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804555A (en) * 2018-05-22 2018-11-13 阿里巴巴集团控股有限公司 Agreement methods of exhibiting, device and electronic equipment
CN109814960A (en) * 2018-12-21 2019-05-28 北京城市网邻信息技术有限公司 A kind of page returning method, device, electronic equipment and storage medium
CN110704767A (en) * 2019-09-30 2020-01-17 北京字节跳动网络技术有限公司 Page opening method and device, electronic equipment and storage medium
CN112069429A (en) * 2020-09-15 2020-12-11 北京值得买科技股份有限公司 Method for controlling jump in app based on link
CN112416364A (en) * 2020-12-11 2021-02-26 成都商通数治科技有限公司 Method for Android jump interface and receiving return value
CN112883361A (en) * 2021-01-29 2021-06-01 平安科技(深圳)有限公司 Function jump method and device of application program, computer equipment and storage medium
CN117130692A (en) * 2023-10-23 2023-11-28 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512190A (en) * 2015-11-26 2016-04-20 网易(杭州)网络有限公司 Interface jumping method and device
CN105955723A (en) * 2016-04-21 2016-09-21 人人行科技股份有限公司 Method and device for processing cross-platform application of mobile terminal
RU2015111159A (en) * 2014-08-29 2016-10-20 Сяоми Инк. METHOD AND DEVICE FOR NETWORK MANAGEMENT OF OPERATION ON THE NETWORK
CN106411930A (en) * 2016-11-09 2017-02-15 腾讯音乐娱乐(深圳)有限公司 Protocol information execution method and device thereof
CN107133053A (en) * 2017-06-05 2017-09-05 上海鋆创信息技术有限公司 Method for page jump and device, the storage medium and terminal of a kind of application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2015111159A (en) * 2014-08-29 2016-10-20 Сяоми Инк. METHOD AND DEVICE FOR NETWORK MANAGEMENT OF OPERATION ON THE NETWORK
CN105512190A (en) * 2015-11-26 2016-04-20 网易(杭州)网络有限公司 Interface jumping method and device
CN105955723A (en) * 2016-04-21 2016-09-21 人人行科技股份有限公司 Method and device for processing cross-platform application of mobile terminal
CN106411930A (en) * 2016-11-09 2017-02-15 腾讯音乐娱乐(深圳)有限公司 Protocol information execution method and device thereof
CN107133053A (en) * 2017-06-05 2017-09-05 上海鋆创信息技术有限公司 Method for page jump and device, the storage medium and terminal of a kind of application program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
怀君: ""android H5 应用内跳转Scheme协议"", 《CSDN》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804555A (en) * 2018-05-22 2018-11-13 阿里巴巴集团控股有限公司 Agreement methods of exhibiting, device and electronic equipment
CN109814960A (en) * 2018-12-21 2019-05-28 北京城市网邻信息技术有限公司 A kind of page returning method, device, electronic equipment and storage medium
CN110704767A (en) * 2019-09-30 2020-01-17 北京字节跳动网络技术有限公司 Page opening method and device, electronic equipment and storage medium
CN112069429A (en) * 2020-09-15 2020-12-11 北京值得买科技股份有限公司 Method for controlling jump in app based on link
CN112416364A (en) * 2020-12-11 2021-02-26 成都商通数治科技有限公司 Method for Android jump interface and receiving return value
CN112883361A (en) * 2021-01-29 2021-06-01 平安科技(深圳)有限公司 Function jump method and device of application program, computer equipment and storage medium
CN112883361B (en) * 2021-01-29 2023-10-27 平安科技(深圳)有限公司 Function jump method and device of application program, computer equipment and storage medium
CN117130692A (en) * 2023-10-23 2023-11-28 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium
CN117130692B (en) * 2023-10-23 2024-01-23 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107729014B (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN107729014A (en) A kind of method for page jump and structure based on Android
US9235383B2 (en) Method and apparatus for code virtualization and remote process call generation
US7596622B2 (en) Apparatus and method for processing web service descriptions
CN104572114B (en) A kind of binding device, using updating device and method
US20080127175A1 (en) Packaging software products as single-file executables containing scripting logic
US20230308504A9 (en) Method and system of application development for multiple device client platforms
US20080282223A1 (en) Xml push and remote execution of a wireless applications
US20090150125A1 (en) Computer Method and Apparatus for Chaining of Model-To-Model Transformations
US20090249288A1 (en) Rebuildable service-oriented applications
CN106533813A (en) Method for remotely controlling upgrade of intelligent device
CN108052340A (en) A kind of application upgrade method, apparatus
CN109062626A (en) Exchange method, device and the equipment of Web page component and Native component
CN103716308A (en) Multiprotocol platform communication method and multiprotocol platform
US20130290453A1 (en) System and method for a connector being able to adapt to newer features introduced to a messaging provider with only configuration changes
CN110058864A (en) The dispositions method and device of micro services
CN109240733A (en) A kind of method and terminal updating advertisement SDK based on Android system
CN108874464A (en) Middleware automatically scanning assembly method, device and storage medium
CN109213533A (en) A kind of advertisement SDK dynamic loading method, device and terminal
CN106775862A (en) Using loading method and device
CN104426857A (en) Method, system and apparatus for verifying client data
EP1612994A2 (en) Methods and devices for generating XML expressed management transactions that include an XPath expression
Wu et al. A domain‐specific modeling approach to realizing user‐centric communication
Achilleos et al. Pervasive service creation using a model driven petri net based approach
CN108804088A (en) protocol processing method and device
Juneau et al. RESTful Web Services

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20190419

Address after: 300450 Jinzuo Square 808, No. 5 Meiyuan Road, Binhai High-tech Zone, Tianjin

Applicant after: Tianjin May 8th Home Information Technology Co., Ltd.

Address before: Room 102, Building 15, No. 3, Garden Road, Haidian District, Beijing 100083

Applicant before: Beijing 58 to home Information Technology Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant