Communication method among Views in Android system

A communication method and message technology, applied in the communication field, can solve problems such as increasing Activity redundancy, increasing Activity complexity, and not supporting View and View communication mechanisms, so as to reduce complexity and redundancy, enhance function development and extended effect

Active Publication Date: 2015-11-04
湖州帷幄知识产权运营有限公司
View PDF6 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) There is no direct interaction channel between View and View. A single View can only interact with the Activity where it is located, and then the Activity interacts with other Views, so that the entire process needs to be controlled by the Activity, which increases the Activity the complexity of
[0006] (2) Man

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
  • Communication method among Views in Android system
  • Communication method among Views in Android system
  • Communication method among Views in Android system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention.

[0048] It should be noted that the diagrams provided in this embodiment are only schematically illustrating the basic idea of ​​the present invention, and only the components related to the present invention are shown in the diagrams rather than the number, shape and shape of the components in actual implementation. Dimensional drawing, the type, quantity and proportion of each component can be changed arbitrarily during actual impleme...

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 a communication method among Views in an Android system. The communication method comprises the following steps: 1) defining a View message ID (Identity) corresponding to the View, and adopting a way that relevant data is attached to the View message ID to construct a View message; 2) constructing a corresponding Hash table of the View message and a View entity to realize the registration of the View message in the View, and logging off all View messages registered by the View in the Hash table when the View is removed from an interface; and 3) creating a processing thread, and adopting the processing thread to process the View message. The complexity and the redundancy of Activity are lightened, the function development and expansion of the View can be effectively enhanced, and the control of the View by the Activity is not affected.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a communication method between Views in an Android system. Background technique [0002] In the Android system, the View component is responsible for the display and processing of the touch screen time, and the click event on the screen is also processed by the View. The Activity as the View container manages the View and is responsible for the layout of the View and life cycle related operations such as creation and removal. When components such as Activity / Service / Broadcast receive relevant driver messages, they will update the display of View. [0003] During the operation of the interface, if the display status of View changes due to user clicks or various system status changes, View needs to notify the manager Activity so that Activity can perform related processing. To this end, the Android system defines a set of callback functions for the View component. After the...

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): G06F9/44G06F13/38
CPCG06F13/38G06F9/451G06F8/38G06F9/545
Inventor 田泽丰
Owner 湖州帷幄知识产权运营有限公司
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