An android page return jump method and system based on hybrid development

A page and jump technology, which is applied in other database retrieval, website content management, network data retrieval, etc., can solve the problem that android APP cannot return to the upper-level page in order, and achieve the effect of avoiding page jump errors

Inactive Publication Date: 2019-05-10
NANJING TIANSU AUTOMATION CONTROL SYST
View PDF7 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the problem that the mixed-developed android APP cannot return to the upper-level page in order after the return operation, the present invention proposes a method and system for returning and jumping based on the mixed-development android page. After

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An android page return jump method and system based on hybrid development
  • An android page return jump method and system based on hybrid development

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Below in conjunction with accompanying drawing, technical scheme of the present invention will be further described:

[0020] An android page return and jump method based on hybrid development, such as figure 1 As shown, it specifically includes the following steps:

[0021] S1. The native system intercepts the android physical return key and the web page function return key by overriding the onKeyDown method of the Activity, so as to obtain the click event of either of them.

[0022] S2, call the goBack method of web page registration, call the $ionicHistory.backView method in the goBack method to find the web-side historical records in the $ionicHistory stack, and judge the superior page type of the current web page; in the present invention, the web-side page uses The framework is the ionic framework, and its default package uses $ionicHistoryAPI. Android loads web pages through WebView and stores web page information in the $ionicHistory stack. The history stored i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an android page return jumping method and system based on hybrid development, and the method comprises the following specific steps: S1, enabling a native system to intercept anandroid return key through an onKeyDown method for overwriting Activity, and obtaining a single click event of the return key; S2, calling a backView method in the web end goBack method to search a web end historical record in the IonicHistory stack, and judging a superior page type of the current web page; S3, when the upper-level page is the web page, calling a USID Histolay.goBack method to return to the upper-level web page; and S4, when the superior page is the native page, calling a goBack method registered by the android native page to return to the native page. The system comprises anAndroid terminal monitoring module, a Web terminal monitoring module, a judgment module, a web terminal return module and an Android system return module. According to the method and the system, thetypes of the superior pages can be correctly judged after the return operation occurs, and the superior pages are returned in sequence, so that the problem of page skipping errors of hybrid development software is avoided.

Description

technical field [0001] The invention relates to a method for page jumping of a hybrid developed android APP, belonging to the technical field of APP hybrid development. Background technique [0002] App hybrid development is a common software development model. Usually, part of the functions of the mixed-developed APP are built through native, and the other part is built through html5. Because hybrid development can save development costs and shorten the App development cycle, many Apps have begun to use the hybrid development model. [0003] In the process of mixed development of android APP, two return buttons are usually considered, one is the physical return button that comes with the android native system, and the other is the return button in the upper left or upper right corner of the web page. Under normal circumstances, when we click the physical back button or the back button on the web side, the APP will return to the previous page in order. However, in the actua...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F16/958
Inventor 王晴季建新马锋
Owner NANJING TIANSU AUTOMATION CONTROL SYST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products