Unlock instant, AI-driven research and patent intelligence for your innovation.

A user interface task scheduling method and device

A technology of task scheduling and user interface, applied in the direction of multi-program device, program control device, program startup/switching, etc.

Active Publication Date: 2019-09-20
QINGDAO HISENSE MOBILE COMM TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a user interface task scheduling method and device to solve the problem in the prior art that the operation of Android UI components must be performed in the main thread, resulting in too slow loading, and improve 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
  • A user interface task scheduling method and device
  • A user interface task scheduling method and device
  • A user interface task scheduling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] An embodiment of the present invention provides a user interface task scheduling method, and the method is applied to a device using an Android system. like figure 1 As shown, the task scheduling methods of this user interface include:

[0037] Step 101, the task scheduling device splits the layout file of the main thread into at least two sub-layout files.

[0038] Wherein, the execution subject of the method is a task scheduling device, and for the Andriod system, the task scheduling device may be a main thread running in the task processing device. Specifically, the Android system provides a very rich set of UI components, which can be used in combination to build a complex and powerful user interface. The UI components in the Android system usually include base class controls and container controls. The base class controls include: View class and derived classes of View class, container controls include: ViewGroup class and derived classes of ViewGroup class. Amo...

Embodiment 2

[0064] The embodiment of the present invention also provides a user interface task processing method, such as Figure 4 shown, including:

[0065] Step 201: Receive the identifier of the first sub-layout file sent by the task scheduling apparatus.

[0066] Wherein, the execution subject of the method is a task processing device. For the Andriod system, the task processing device can be a sub-thread running in the task processing device, and the sub-thread can be a sub-thread in an idle state in a thread pool. Include at least one child thread. In addition, the first sub-layout file is obtained by splitting the layout file of the main thread by the task scheduling device. Specifically, the task scheduling device splits the layout file of the main thread into at least two sub-layout files, and the task scheduling device divides the at least two sub-layout files The identifier of the first sub-layout file in the layout file is sent to the task processing device, and correspondi...

Embodiment 3

[0078] An embodiment of the present invention provides a task scheduling device for a user interface. Each functional unit in the task scheduling device corresponds to the task scheduling method for the user interface in Embodiment 1. For details, please refer to the description in Embodiment 1. Here No longer. like Image 6 As shown, the general task scheduling device 60 includes:

[0079] A splitting unit 601, configured to split the layout file of the main thread into at least two sub-layout files;

[0080] The receiving unit 602 is configured to receive the construction Inflate request sent by the application program;

[0081] The sending unit 603 is configured to send the identification of the first sub-layout file in the at least two sub-layout files split by the splitting unit 601 to the corresponding sub-thread according to the Inflate request received by the receiving unit 602, and the identification of the first sub-layout file Used for sub-threads to load the fir...

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 embodiment of the invention provides a task scheduling method and device of a user interface, relates to the technical field of Android, and is used for solving the problem of too low loading speed since the operation of an Android UI (User Interface) component in the prior art must be carried out in a main thread so as to improve user experience. The task scheduling method of the user interface comprises the following steps: splitting a layout file of the main thread into at least two sub layout files by the task scheduling device; receiving an Inflate construction request sent from an application program; and according to the Inflate construction request, sending the identifier of the first sub layout file in the at least two sub layout files to a corresponding sub thread, wherein the identifier of the first sub layout file is used for the sub thread to load the first sub layout file. The task scheduling method and device is applied to equipment which adopts an Android system.

Description

technical field [0001] The present invention relates to the field of Android technology, in particular to a task scheduling method and device for a user interface Background technique [0002] Android (Chinese: Android) is a free and open source operating system based on the Linux platform, which is mainly suitable for mobile devices, such as smart phones, tablet computers, etc. Among them, UI (English full name: user interface, Chinese: user interface) design is the most important component in the program development of the Android system. [0003] Specifically, when an application program in the Android system is started, the Android system will create a separate thread for the application program. This thread is called the main thread. : user interface components) related events; at the same time, because the Android UI component is not thread-safe, so the operation of the Android UI component must be carried out in the main thread, therefore, the main thread is also cal...

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/48G06F9/445
Inventor 张强
Owner QINGDAO HISENSE MOBILE COMM TECH CO LTD