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

The method and terminal of loading fragment

A terminal and preloading technology, applied in the Android field, can solve problems such as waste of memory space, waste of memory, impact on user experience, etc., and achieve the effects of achieving feasibility, improving memory usage efficiency, and improving operation efficiency

Active Publication Date: 2018-03-06
FUJIAN TQ DIGITAL
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

A complex Android application usually consists of a large number of Fragments. Different Fragments display different interfaces to implement different operations. When a large number of Fragments are loaded into memory at the same time, the memory space occupied by those Fragments that are not currently displayed is wasted. Generally, at the same time Only 1 to 3 Fragments will be displayed, so if Fragments are not properly managed, a lot of memory will be wasted
In another case, loading Fragment into memory involves disk I / O operations, which are slow and affect user experience

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
  • The method and terminal of loading fragment
  • The method and terminal of loading fragment
  • The method and terminal of loading fragment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to describe the technical content, achieved goals and effects of the present invention in detail, the following descriptions will be made in conjunction with the embodiments and accompanying drawings.

[0024] Please refer to figure 1 , Embodiment 1 of the method of the present invention provides a method for loading a Fragment, including the following steps:

[0025] S110: Generate a tree structure of Fragment nodes;

[0026] S120: Determine the position information of the Fragment node on the tree structure;

[0027] S130: Setting the loading state information of the Fragment node;

[0028] S140: Load the Fragment on the corresponding child node according to the loading status information of the Fragment node;

[0029] S150: Uninstall the Fragment on the parent node of the parent node corresponding to the child node and the Fragment on the sibling node corresponding to the child node.

[0030] Generally, those skilled in the art can define and generate a ...

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 present invention provides a method and terminal for loading a Fragment, wherein the method includes: generating a tree structure of a Fragment node; determining the position information of the Fragment node on the tree structure; setting the loading status information of the Fragment node ; Load the Fragment on the corresponding child node according to the loading status information of the Fragment node; unload the Fragment on the parent node or brother node corresponding to the child node. Through the above method, the present invention can reduce the occupation of memory, release excess memory in time, improve the I / O efficiency of terminal equipment, and also make it possible for complex programs to run on low-end equipment.

Description

technical field [0001] The invention relates to the technical field of Android, in particular to a method and a terminal for loading a Fragment. Background technique [0002] Fragment is a component in Android, which is used to display interface content, and can accept operations such as user clicks and drags to interact with users. A complex Android application usually consists of a large number of Fragments. Different Fragments display different interfaces to implement different operations. When a large number of Fragments are loaded into memory at the same time, the memory space occupied by those Fragments that are not currently displayed is wasted. Generally, at the same time Only 1 to 3 Fragments will be displayed, so if Fragments are not properly managed, a lot of memory will be wasted. In another case, loading Fragment into memory involves disk I / O operations, which are slow and affect user experience. Contents of the invention [0003] The technical problem to be...

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 Patents(China)
IPC IPC(8): G06F9/445G06F17/30
Inventor 刘德建方振华李上杰李洋
Owner FUJIAN TQ DIGITAL
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