Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Page initialization method and device based on Android system

An initialization method and technology of the Android system, applied in the direction of program control devices, instruments, electrical and digital data processing, etc., can solve problems such as system crashes, and achieve the effect of preventing repeated calls

Inactive Publication Date: 2017-01-11
WUHAN DOUYU NETWORK TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0015] At the same time, since the pre-initialization step (3) of the Android system can be subdivided into multiple small steps, if the developer is not careful enough and writes the post-initialization code in the wrong step, it is easy to cause repeated execution of the post-initialization and cause the system to crash

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
  • Page initialization method and device based on Android system
  • Page initialization method and device based on Android system
  • Page initialization method and device based on Android system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0032] see Figure 6 As shown, the embodiment of the present invention provides a page initialization method based on the Android system, comprising the following steps:

[0033] S1. Intercept the system page initialization entry, generate a Boolean value for judging "whether the page has been initialized", and assign "false" to it, indicating "uninitialized";

[0034] S2. Intercept the system page size measurement entry, and detect the Boolean value of "whether the page has been initialized":

[0035] If the Boolean value is "true", it means that the page has been initialized, and the developer does not need to make a judgment on repeated calls, and the process will be terminated immediately; if the Boolean value is "false", it means that the page has not been initialized, and the value will be reassigned to "true". Notifies the de...

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 discloses a page initialization method and device based on an Android system and relates to the field of application and development of the Android system. The method comprises the following steps: intercepting a system page initialization entrance to generate a Boolean value for judging whether a page is initialized or not, and assigning a value 'false' for representing 'uninitialized'; intercepting a system page size measurement entrance to detect the Boolean value for judging whether the page is initialized or not; if the Boolean value is 'true', representing that the page is initialized and stopping the process; if the Boolean value is 'false', representing that the page is uninitialized and reassigning the value 'true', and informing a developer to carry out later-period initialization. With the adoption of the page initialization method and device, operation authority and attribute information of a view in the page can be obtained and the page is prevented from being repeatedly called.

Description

technical field [0001] The invention relates to the field of application development of the Android system, in particular to a page initialization method and device based on the Android system. Background technique [0002] At present, most Android applications usually include multiple pages (Activities), and each page has a specific function. For example, current mainstream video playback programs often have a main interface, a column list page, a video playback page, a user management page, and the like. [0003] According to the characteristics of the Android system, when a new page is started, the page is in an uninitialized stage and needs to wait for the developer to manually process the initialization of the page. During the waiting process, the view information on the page (such as coordinates, width and height, etc.) is unavailable. [0004] Assume the following scenario, see figure 1 As shown, the page originally had several views, a circle A and three rectangle...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/38
Inventor 霍启圣
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products