CN107729014B - Page jump method and structure based on Android - Google Patents

Page jump method and structure based on Android Download PDF

Info

Publication number
CN107729014B
CN107729014B CN201710794603.7A CN201710794603A CN107729014B CN 107729014 B CN107729014 B CN 107729014B CN 201710794603 A CN201710794603 A CN 201710794603A CN 107729014 B CN107729014 B CN 107729014B
Authority
CN
China
Prior art keywords
protocol
configuration
jump
layer
matching
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
CN201710794603.7A
Other languages
Chinese (zh)
Other versions
CN107729014A (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
Tianjin May 8th 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 Tianjin May 8th Home Information Technology Co ltd filed Critical Tianjin May 8th 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

Images

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 page jump method based on an Android system, which comprises the following steps: a) the protocol processor of the application program analyzes and converts the link protocol of the external service, and encapsulates the obtained jump keywords and the parameter list into a jump result class to generate a protocol body; b) all interfaces of the application program are stored in a configuration list in the starting process of the application program, and the protocol body is subjected to protocol configuration, so that a jumping body is obtained; c) searching a jump protocol path according to a jump protocol of the jump body, matching the jump protocol path with a protocol configuration key, and jumping to a target interface if matching is successful; if the matching is unsuccessful, returning to the step b) to carry out protocol configuration again. According to the Android-based page jump method, the external service can be jumped to any interface of the application program without publishing the application program.

Description

Page jump method and structure based on Android
Technical Field
The invention relates to the technical field of internet, in particular to a page jump method and structure based on Android.
Background
With the popularization of smart phones and mobile terminals, applications running in Android application programs (APP) are also widely used. In the prior art, the external call-up service provided based on the Android system can only call up the whole APP, but cannot be accurately positioned to a specific certain interface or a certain requirement. For example, in the prior art, only the APP can be invoked by a web message, a push message or a short message of an external service (e.g., a certain housekeeping service message of a web page, a certain housekeeping service message pushed or a certain housekeeping service message sent by a short message), and a specific interface or requirement of the APP (e.g., a housekeeping service interface in the APP) cannot be directly reached.
The above problems in the prior art cause that a user can only enter an APP through external services such as a web message, a push message, or a short message, and cannot directly enter a demand interface, which results in poor user experience.
Therefore, in order to solve the above problems, there is a need for an Android-based page jump method and structure that can jump an external service to any interface of an application without publishing the application and freely control a specific page.
Disclosure of Invention
One aspect of the present invention provides a page jump method based on an Android system, where the method includes:
a) the protocol processor of the application program analyzes and converts the link protocol of the external service, and encapsulates the obtained jump keywords and the parameter list into a jump result class to generate a protocol body;
b) all interfaces of the application program are stored in a configuration list in the starting process of the application program, and the protocol body is subjected to protocol configuration, so that a jumping body is obtained;
c) searching a jump protocol path according to a jump protocol of the jump body, matching the jump protocol path with a protocol configuration key, and jumping to a target interface if matching is successful; if the matching is unsuccessful, returning to the step b) to carry out protocol configuration again.
Preferably, the external service includes a web page, a push and a short message, and a link protocol format of the external service is a URI format.
Preferably, all interfaces of the application are stored in a configuration list in a < key, value > format.
Preferably, the protocol configuration is completed through the following configuration layers in sequence:
the fixed configuration layer protocol configuration is used for storing the fixed link and the fixed page in a one-to-one mode so as to be compatible with the old version of service;
matching configuration layer protocol configuration, issuing a version number by a server, and locally storing a configuration link and a configuration page in a one-to-one manner;
and scanning configuration layer protocol configuration, marking a specific class of the protocol body, matching the specific class with a path, matching other classes except the specific class of the protocol body with the path by adopting class names, and generating full configuration data containing all interfaces of the application program.
Preferably, the fixed link and the fixed page are stored in a one-to-one manner by adopting a static code generation table structure.
Preferably, each time the application is started, the matching configuration layer checks whether the version is updated.
Another aspect of the present invention is to provide a page jump structure based on an Android system, where the structure includes a protocol parsing layer, a protocol configuration layer, and a jump layer
The protocol analysis layer is used for analyzing and converting a link protocol of an external service through a protocol processor of an application program, and packaging the obtained jump keywords and the obtained parameter list into a jump result class to generate a protocol body;
the protocol configuration layer comprises a fixed configuration layer, a matching configuration layer and a scanning configuration layer, all interfaces for the application program are stored in a configuration list in the starting process of the application program, and the protocol configuration is carried out on the protocol body to obtain a jump body;
and the jump layer is used for searching a jump protocol path according to a jump protocol of the jump body and matching the jump protocol path with a protocol configuration key.
Preferably, the fixed configuration layer is used for storing the fixed links and the fixed pages in a one-to-one manner;
the matching configuration layer is used for issuing a version number by the server and locally storing the configuration link and the configuration page in a one-to-one manner;
and the scanning configuration layer is used for marking the specific class of the protocol body and matching the specific class with the path, and matching other classes except the specific class of the protocol body with the path by adopting class names to generate full configuration data containing all interfaces of the application program.
Preferably, the external service comprises a webpage, a push message and a short message, and the link protocol format of the external service is a URI format; all interfaces of the application are stored in a configuration list in the format of < key, value >.
Preferably, the fixed link and the fixed page are stored in a one-to-one manner by adopting a static code generation table structure; and the matching configuration layer checks whether the version is updated or not when the application program is started every time.
According to the page jump method and structure based on Android, provided by the invention, the external service can be jumped to any interface of the application program without publishing the application program, and the specific page can be freely controlled.
The Android-based page jump method and structure provided by the invention can be used for expanding the protocol without version upgrading, have non-invasive access, have no influence on normal sending, have no invasion to a system, and do not need extra work.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
Further objects, features and advantages of the present invention will become apparent from the following description of embodiments of the invention, with reference to the accompanying drawings, in which:
FIG. 1 schematically shows a structural block diagram of a page jump structure based on an Android system in the present invention;
FIG. 2 shows a block diagram of the structure of the protocol configuration layer of the present invention;
FIG. 3 shows a flow chart of the page jump method based on the Android system.
Detailed Description
The objects and functions of the present invention and methods for accomplishing the same will be apparent by reference to the exemplary embodiments. However, the present invention is not limited to the exemplary embodiments disclosed below; it can be implemented in different forms. The nature of the description is merely to assist those skilled in the relevant art in a comprehensive understanding of the specific details of the invention.
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings, and related technical terms should be well known to those skilled in the art. In the drawings, the same reference numerals denote the same or similar parts, or the same or similar steps, unless otherwise specified.
First, a page jump structure based on an Android system provided by the present invention is described with reference to specific embodiments, as shown in fig. 1, a structural block diagram of the page jump structure based on the Android system, and a structural block diagram of a protocol configuration layer of the present invention, shown in fig. 2, the page jump structure based on the Android system of the present invention runs on an Application (APP) to obtain messages of external services, where the external services include, but are not limited to, web pages, push messages, short messages, and other applications, and the messages of the external services include, but are not limited to, web pages, push messages, short messages, and other applications. For example, a page jump structure running on application a retrieves the home services message from the web page, the pushed home services message, the sent home services short message, and the message of application B. The page jump structure of the invention analyzes and configures the message, and uses an interface (such as a home service interface) for the user to directly jump to the application program to respond through the message.
The page jump structure 100 based on the Android system comprises a protocol analysis layer 101, a protocol configuration layer 102 and a jump layer 103, wherein the protocol analysis layer, the protocol configuration layer and the jump layer are arranged in sequence, and the page jump structure 100 is used for analyzing the page of the Android system
And the protocol analysis layer 101 is used for analyzing and converting a link protocol of an external service through a protocol processor of an application program, and encapsulating the obtained jump keywords and the obtained parameter list into a jump result class to generate a protocol body. The link protocol format of the external service is the URI format.
The protocol configuration layer 102 includes a fixed configuration layer 201, a matching configuration layer 202, and a scanning configuration layer 203, and all interfaces for the application are stored in a configuration list during the starting process of the application, and perform protocol configuration on the protocol body to obtain a jump body. All interfaces of the application are stored in the configuration list in the format of < key, value >.
Specifically, the fixed configuration layer 201 is configured to store the fixed links and the fixed pages one to one, and preferably, the fixed links and the fixed pages are stored one to one by using a static code generation table structure.
And the matching configuration layer 202 is used for issuing the version number by the server, and locally storing the configuration link and the configuration page in a one-to-one manner. Preferably, the version is checked for updates each time the application is started.
And the scanning configuration layer 203 is used for labeling the specific class of the protocol body, matching the specific class with a path, matching other classes except the specific class of the protocol body with the path by adopting class names, and generating full configuration data containing all interfaces of the application program.
And the jump layer 103 is used for searching a jump protocol path according to a jump protocol of the jump body and matching the jump protocol path with a protocol configuration key.
Referring to fig. 3, a method for implementing page jump based on a page jump structure of an Android system according to the present invention is described below, in which the page jump method includes the following steps:
s101, analyzing link protocol of external service
And the protocol processor of the application program analyzes and converts the link protocol of the external service, and encapsulates the obtained jump keywords and the parameter list into a jump result class to generate a protocol body. The external service in the embodiment includes, but is not limited to, web pages, push and short messages, and the link protocol format of the external service is the URI format.
S102, carrying out protocol configuration on the protocol body
All interfaces of the application program are stored in the configuration list in the starting process of the application program, and the protocol body obtained in the step S101 is subjected to protocol configuration, so that the jumping body is obtained. All interfaces of the application in the embodiment are stored in the configuration list in the format of < key, value >.
The specific protocol configuration process is completed through the following configuration layers in sequence:
and the fixed configuration layer protocol is configured to store the fixed link and the fixed page in a one-to-one mode so as to be compatible with the old version of service. Preferably, the fixed links and the fixed pages are stored one-to-one using a static code generation table structure.
And matching the configuration layer protocol configuration, issuing a version number by the server, and locally storing the configuration link and the configuration page one to one. And when the application program is started each time, the matching configuration layer checks whether the version is updated.
And scanning configuration layer protocol configuration, marking a specific class of the protocol body, matching the specific class with a path, matching other classes except the specific class of the protocol body with the path by adopting class names, and generating full configuration data containing all interfaces of the application program.
S103, matching the jump protocol path with the protocol configuration key
Searching a jump protocol path according to a jump protocol of the jump body, matching the jump protocol path with a protocol configuration key, and jumping to a target interface if matching is successful; if the matching is unsuccessful, the procedure returns to step S102 to perform protocol configuration again.
The page jump method and structure based on the Android can jump external services to any interface of an application program without publishing the application program, and can freely control a specific page.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

Claims (8)

1. A page jump method based on an Android system is characterized by comprising the following steps:
a) the protocol processor of the application program analyzes and converts the link protocol of the external service, and encapsulates the obtained jump keywords and the parameter list into a jump result class to generate a protocol body;
b) all interfaces of the application program are stored in a configuration list in the starting process of the application program, and the protocol body is subjected to protocol configuration, so that a jumping body is obtained;
c) searching a jump protocol path according to a jump protocol of the jump body, matching the jump protocol path with a protocol configuration key, and jumping to a target interface if matching is successful; if the matching is not successful, returning to the step b) to carry out protocol configuration again,
wherein the protocol configuration is completed sequentially through the following configuration layers:
the fixed configuration layer protocol configuration is used for storing the fixed link and the fixed page in a one-to-one mode so as to be compatible with the old version of service;
matching configuration layer protocol configuration, issuing a version number by a server, and locally storing a configuration link and a configuration page in a one-to-one manner;
and scanning configuration layer protocol configuration, marking a specific class of the protocol body, matching the specific class with a path, matching other classes except the specific class of the protocol body with the path by adopting class names, and generating full configuration data containing all interfaces of the application program.
2. The method of claim 1, wherein the external service comprises web pages, push and text messages, and the link protocol format of the external service is URI format.
3. The method of claim 1, wherein all interfaces of the application are stored in a configuration list in a format of < key, value >.
4. The method of claim 1, wherein the fixed links and fixed pages are stored one-to-one using a static code generation table structure.
5. The method of claim 1, wherein the matching configuration layer checks whether the version is updated each time the application is started.
6. A page jump device based on an Android system is characterized by comprising a protocol analysis layer, a protocol configuration layer and a jump layer, wherein the protocol analysis layer, the protocol configuration layer and the jump layer are arranged on the device
The protocol analysis layer is used for analyzing and converting a link protocol of an external service through a protocol processor of an application program, and packaging the obtained jump keywords and the obtained parameter list into a jump result class to generate a protocol body;
the protocol configuration layer comprises a fixed configuration layer, a matching configuration layer and a scanning configuration layer, all interfaces for the application program are stored in a configuration list in the starting process of the application program, and the protocol configuration is carried out on the protocol body to obtain a jump body;
the skip layer is used for searching a skip protocol path according to a skip protocol of the skip body and matching the skip protocol path with a protocol configuration key;
the fixed configuration layer is used for storing the fixed links and the fixed pages in a one-to-one manner;
the matching configuration layer is used for issuing a version number by the server and locally storing the configuration link and the configuration page in a one-to-one manner;
and the scanning configuration layer is used for marking the specific class of the protocol body and matching the specific class with the path, and matching other classes except the specific class of the protocol body with the path by adopting class names to generate full configuration data containing all interfaces of the application program.
7. The apparatus of claim 6, wherein the external service comprises web page, push and SMS, and the link protocol format of the external service is URI format; all interfaces of the application are stored in a configuration list in the format of < key, value >.
8. The apparatus of claim 6, wherein the fixed link and the fixed page are stored one-to-one using a static code generation table structure; and the matching configuration layer checks whether the version is updated or not when the application program is started every time.
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 CN107729014A (en) 2018-02-23
CN107729014B true 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)

Families Citing this family (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
CN110704767B (en) * 2019-09-30 2022-02-15 北京字节跳动网络技术有限公司 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
CN112883361B (en) * 2021-01-29 2023-10-27 平安科技(深圳)有限公司 Function jump method and device of application program, computer equipment and storage medium
CN117130692B (en) * 2023-10-23 2024-01-23 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium

Citations (1)

* 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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512190B (en) * 2015-11-26 2019-03-29 网易(杭州)网络有限公司 Interface jump method and device
CN105955723B (en) * 2016-04-21 2019-03-15 人人行科技股份有限公司 The cross-platform treating method and apparatus of mobile terminal
CN106411930B (en) * 2016-11-09 2019-06-07 腾讯音乐娱乐(深圳)有限公司 A kind of protocol information executes method and its equipment
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 (1)

* 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

Also Published As

Publication number Publication date
CN107729014A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN107729014B (en) Page jump method and structure based on Android
CN110221872B (en) Page jump method and device, electronic equipment and storage medium
CN107870821B (en) Cross-platform calling method and system for application program
CN107515764B (en) Application page opening method, terminal and computer readable storage medium
US7734583B2 (en) Transparent virtual machine for mobile applications
US20140298318A1 (en) Computer-executable application packaging method, computer-executable device and storage media performing the same
CN102393857B (en) Method and system for local call based on web page
CN104077162B (en) Renewal, dissemination method and the device of mobile terminal application template
US20100281475A1 (en) System and method for mobile smartphone application development and delivery
CN106406844B (en) Method and device for realizing public number menu of communication interaction platform
CN108376073B (en) Test software package generation method and terminal
CN111045683A (en) Applet code compiling method, device, equipment and medium
CN108762767B (en) Application publishing method, device and computer readable storage medium
CN109240697B (en) Call processing method and device and storage medium
CN106055375B (en) Application program installation method and device
CN102622237B (en) A kind of collocation method of business function procedure and system
CN101957756A (en) System and method for rapidly generating intelligent mobile terminal program
CN108804120B (en) Page construction method, device, equipment and storage medium
CN108845810B (en) Method and device for dynamically updating application, electronic equipment and storage medium
CN111124544A (en) Interface display method and device, electronic equipment and storage medium
CN111026439A (en) Application program compatibility method, device, equipment and computer storage medium
CN106161656B (en) Interface jumping method and device
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN102523271B (en) Terminal and communication method and system thereof
CN105488199A (en) Mixed form processing method, device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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