Method and device for rapidly loading Activity data for Android system

A fast and data technology, applied in the direction of program control device, program loading/starting, etc., can solve problems such as delayed loading of Activity data

Active Publication Date: 2016-03-30
ALIBABA GRP HLDG LTD
View PDF3 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] This application provides a method and device for quickly loading Activity data on the Android system to solve the problem of delay loading Activity data on the Android system

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
  • Method and device for rapidly loading Activity data for Android system
  • Method and device for rapidly loading Activity data for Android system
  • Method and device for rapidly loading Activity data for Android system

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0054] Such as figure 2 As shown, it is a schematic flow diagram of a method for fast loading Activity data on the Android system of this application. The method includes the following steps:

[0055] Step S201: Use the user interface component to encapsulate the display controls of the page non-basic elements in the Activity layout file and start the Activity in the UI main thread.

[0056] The basic elements of the page are part or all of the page frame elements. The non-basic elements of the page are page elements other than the basic elements of the page. The user interface component is capable of controlling the layout of the component and will be rendered into the main interface when needed. If the user interface component is not used to encapsulate the display controls of the non-basic elements of the page, the Android system can choose the drawing timing by itself.

[0057] By using the user interface component to encapsulate the display controls of the non-basic elements...

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 application discloses a method and device for rapidly loading Activity data for an Android system The method for rapidly loading Activity data for an Android system comprises: an Activity page non-basic element display control is packed with a user interface component and the Activity is started; an asynchronous loading page data task is started when an onCreate function is called; page basic elements are drawn; when an onWindowFocusChanged function is being called and the asynchronous loading page data task is finished, or when a call of the onWindowFocusChanged function is finished and the asynchronous loading page data task is finished, the component is triggered to draw a page non-basic element display control and the page non-basic element display control is filled with page data. By use of the method provided by the application, users may see the page basic elements as soon as the Activity is opened and page non-basic elements such as asynchronous request response results are rapidly displayed for users.

Description

Technical field [0001] This application relates to the field of smart terminal interface display, and in particular to a method and device for quickly loading Activity data on an Android system. Background technique [0002] Activity is one of the four most basic and commonly used components of Android components (Activity, Service, ContentProvider, BroadcastReceiver). Activity is an application component that provides users with a visual interface to facilitate user operations, such as making calls, taking pictures, sending emails, or browsing maps. In an android application, an activity is usually a separate screen, which can display some controls or listen to user events and respond accordingly. [0003] In the official Android documentation, the life cycle of an Activity is such as figure 1 Shown. Activity calls the onCreate function after the page is opened, then calls the onStart function and onResume function to complete the drawing of the page, and finally displays it to ...

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/445
Inventor 江翔
Owner ALIBABA GRP HLDG LTD
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