CN107368311B - Method and system for communication among multiple fragments - Google Patents

Method and system for communication among multiple fragments Download PDF

Info

Publication number
CN107368311B
CN107368311B CN201710556420.1A CN201710556420A CN107368311B CN 107368311 B CN107368311 B CN 107368311B CN 201710556420 A CN201710556420 A CN 201710556420A CN 107368311 B CN107368311 B CN 107368311B
Authority
CN
China
Prior art keywords
message
fragment
fragments
interface
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710556420.1A
Other languages
Chinese (zh)
Other versions
CN107368311A (en
Inventor
张磊
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710556420.1A priority Critical patent/CN107368311B/en
Publication of CN107368311A publication Critical patent/CN107368311A/en
Priority to PCT/CN2017/120152 priority patent/WO2019010928A1/en
Application granted granted Critical
Publication of CN107368311B publication Critical patent/CN107368311B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a system for communication among multiple fragments, wherein the method comprises the following steps: s1, configuring a message controller for all Fragment fragments in the interface, and registering all Fragment fragments in the message controller, wherein all registered Fragment fragments are in an equal relationship; s2, based on the command interface and its interface function defined for each Fragment, the message controller forwards the message of the source Fragment to the destination Fragment. The invention configures message managers for all fragments in the interface, realizes the communication between different fragments by the forwarding mode of the message controller, avoids the confusion caused by direct communication among a plurality of fragments, and avoids the problem of complicated communication caused by the existing need of sending messages layer by layer step by step when a plurality of fragments have nested relation.

Description

Method and system for communication among multiple fragments
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for communication among multiple fragments.
Background
In the Android development process, interface-related programming is usually involved, and Fragment is a Fragment element in the whole interface, and can be understood as part of the interface.
One interface can be loaded with one or more fragments, for example, the whole interface contains three tab elements, each tab element is a page in the interface, switching between tab pages is possible, and switching of one tab page can be controlled by one Fragment. In the development process, one Fragment can control the service logic of one page, and a plurality of fragments can separate and independent the service logic of each page, so that the later maintenance is convenient.
The fragments need to communicate with each other, and the conventional method is direct communication between the fragments, so if the number of fragments is large, the communication between the fragments is relatively disordered, and meanwhile, if the fragments have a nested reference relationship, when the fragments at the top layer send messages to the fragments at the bottom layer, the fragments at each level need to be forwarded layer by layer, and the communication speed is slow.
Disclosure of Invention
The present invention provides a method and system for communication between multiple fragments that overcomes, or at least partially solves, the above-mentioned problems.
According to a first aspect of the present invention, there is provided a method for communication between multiple fragments, comprising:
s1, configuring a message controller for all Fragment fragments in the interface, and registering all Fragment fragments in the message controller, wherein all registered Fragment fragments are in an equal relation;
s2, based on the command interface and its interface function defined for each Fragment, the message controller forwards the message of the source Fragment to the destination Fragment.
The invention has the advantages that message managers are configured for all fragments in the interface, and the message controller realizes the purpose that one Fragment sends a message to another Fragment in a forwarding mode, thereby avoiding the confusion of direct communication among a plurality of fragments; when there is a nesting relationship among multiple fragments, because all fragments registered in the message controller in this embodiment are in a peer-to-peer relationship, when a source Fragment sends a message to a destination Fragment having a nesting relationship, the message is directly forwarded to the destination Fragment by the message controller without being transmitted through fragments of one level or one level, thereby avoiding the problem of complex communication caused by the need of issuing messages layer by layer.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the step S2 further includes:
defining a command interface for each Fragment, and defining an interface function for the command interface, wherein the interface function at least comprises a message command word and a message body parameter.
Further, the step S2 further includes:
for all fragments registered with the message controller, a collection of objects is maintained within the message controller for storing all registered Fragment objects.
Further, the step S2 further includes:
when the message controller receives the message sent by the source Fragment, the message is sent to the destination Fragment in a broadcasting mode or a point-to-point mode.
Further, the step S2 further includes:
when the message controller receives the message sent by the source Fragment, broadcasting the message to the Fragment registered with the message controller;
and determining whether the message needs to be processed according to the message command word in the message by the Fragment receiving the message.
Further, the step S2 further includes:
the message controller traverses all Fragment objects in the object set in a circulating mode;
and calling an interface function in the Fragment object every time one Fragment object is extracted, transmitting the message to the interface function of the Fragment object, and determining whether the message needs to be processed or not by the interface function according to a message command word in the message.
Further, the message further includes a destination Fragment identifier, and the step S2 further includes:
the message controller receives the message sent by the source Fragment, and forwards the message to the destination Fragment according to the destination Fragment identifier in the message.
According to the second aspect of the present invention, there is also provided a communication system between multiple fragments, including:
the configuration module is used for configuring the message controller for all fragments in the interface;
a registration module, configured to register all fragments in the message controller;
and the forwarding module is used for forwarding the message of the source Fragment to the destination Fragment by the message controller based on the command interface and the interface function thereof defined for each Fragment.
According to a third aspect of the present invention, there is provided an apparatus of a communication method between multiple fragments, comprising a processor (processor), a memory (memory), and a bus;
the processor and the memory complete mutual communication through the bus;
the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the implementation methods.
According to a fourth aspect of the present invention, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the various implementing methods described above.
Drawings
FIG. 1 is a flowchart of a method for communication between multiple fragments according to an embodiment of the present invention;
FIG. 2 is a block diagram of a communication system connection between multiple fragments according to another embodiment of the present invention;
FIG. 3 is an overall connection block diagram of a communication system between multiple fragments according to still another embodiment of the present invention;
FIG. 4 is a block diagram of the internal connections of a message controller according to yet another embodiment of the present invention;
fig. 5 is a device connection block diagram of a communication method between multiple fragments according to still another embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Referring to fig. 1, a method for communication between multiple fragments according to an embodiment of the present invention is provided, including: s1, configuring a message controller for all Fragment fragments in the interface, and registering all Fragment fragments in the message controller; s2, based on the command interface and its interface function defined for each Fragment, the message controller forwards the message of the source Fragment to the destination Fragment.
In the Android development process, interface-related programming is usually involved, and there are often multiple fragments in one interface, where fragments can be understood as Fragment elements, that is, one interface may contain multiple Fragment elements. One Fragment can manage the service logic of one page, and a plurality of fragments can separate and independent the service logic of each page. The fragments need to communicate with each other, and the traditional mode is direct communication between fragments, that is, the source Fragment directly sends a message to the destination Fragment. By adopting the communication mode, if the number of fragments is large, the communication between the fragments is relatively disordered; meanwhile, if the plurality of fragments have a nested reference relationship, the fragments at the top layer need to be forwarded layer by layer when sending messages to the fragments at the bottom layer, and the communication speed is slow.
Therefore, in order to solve the above problem, this embodiment provides a simple set of communication methods among multiple fragments. In a specific implementation process, in order to implement communication between multiple fragments, a communication protocol for performing communication between multiple fragments is designed, and subsequent fragments perform communication according to the protocol, where the communication protocol between multiple fragments is specifically designed such that a command interface and an interface function are defined for each Fragment in an interface. And meanwhile, configuring a message controller for all fragments in the interface, wherein the message controller is used for controlling all fragments. In the embodiment, the message controller mainly implements forwarding of messages between multiple fragments based on the command interface and interface function defined for each Fragment.
In this embodiment, when one Fragment sends a message to another Fragment, for convenience of description, the Fragment that sends the message is called a source Fragment, and the Fragment that receives the message is called a destination Fragment. The source Fragment sends the message to the message controller, and the message controller forwards the message to the destination Fragment. The target Fragment needs to register in the message controller when receiving the message in the message controller, and only the Fragment registered in the message controller can receive the message forwarded by the message controller. In addition, in the process of communication between the source Fragment and the message controller and between the message controller and the destination Fragment, communication is realized based on the communication protocol.
In this embodiment, all fragments in the interface configure message managers, and a message controller performs forwarding to realize that one Fragment sends a message to another Fragment, so as to avoid confusion of direct communication among multiple fragments; when there is a nesting relationship among multiple fragments, because all fragments registered in the message controller in this embodiment are in a peer-to-peer relationship, when a source Fragment sends a message to a destination Fragment having a nesting relationship, the message is directly forwarded to the destination Fragment by the message controller without being transmitted through fragments of one level or one level, thereby avoiding the problem of complex communication caused by the need of issuing messages layer by layer.
On the basis of the foregoing embodiment, in an embodiment of the present invention, the step S2 further includes: defining a command interface for each Fragment, and defining an interface function for the command interface, wherein the interface function at least comprises a message command word and a message body parameter.
In the process of designing a communication protocol among a plurality of fragments, a set of command interface is designed for each Fragment, in order to be compatible with all messages, the designed communication protocol can be divided into two parts, wherein the first part is a message command word and is mainly used for representing the type of the message, and the second part is a message body, namely the specific content of the message. The program code of the designed command interface is as follows:
Figure BDA0001345864430000061
wherein interface represents that the protocol is an interface protocol, and IMessage represents the name of the interface protocol; the onMessage represents an interface function included in the interface protocol, whose return value is of void type, that is, no return value. The interface function contains two parameter information, one is a String type command which indicates the message command word to be sent, and the other is an Object type message, so that the Object type is designed to receive all types of messages through the interface function.
By observation, it can be seen that each parameter in the above interface function carries a prefix @ nunullable, which indicates that the parameter passed into the interface function cannot be null (null), in order to ensure that the parameter is not null.
The communication interface design is described by the above programming language, any message passing can be performed by the mode of command and message, and Fragment needs to follow the above designed communication protocol in order to be able to receive the message. The representation of the above program is that Fragment needs to inherit the imeessage interface and duplicate the onMessage method therein. After the processing, Fragment is Fragment inherited from the IMessage interface, and has the capability of receiving messages sent by the IMessage interface.
In addition, Fragment must register with the message controller to receive the message forwarded by the message controller, and only Fragment registered with the message controller can receive the message distributed by the message controller. The specific registration process is as follows: fragment is a class, each class has a constructor, and implementing registration in the constructor of Fragment can ensure that Fragment is actively registered in the message controller when being instantiated.
Fragment register (this) in the message controller is called in the constructor of Fragment, and the Fragment object is registered in the message controller. In the present embodiment, the fragments registered in the message controller are all in a peer-to-peer relationship, that is, all fragments belong to an equal relationship, and a plurality of fragments in the existing message controller may have a nested relationship, that is, a plurality of fragments have a hierarchical relationship, but in the present embodiment, the hierarchical relationship is a message by registering with the message controller, and all fragments registered in the message controller are all in a peer-to-peer relationship.
On the basis of the foregoing embodiments, in another embodiment of the present invention, the step S2 further includes: for all fragments registered with the message controller, a collection of objects is maintained within the message controller for storing all registered Fragment objects.
When all fragments in the interface are registered in the message controller, an object set is maintained in the message controller, and the object set is mainly used for storing all fragments registered in the message controller, so that the subsequent message controller can distribute messages like fragments.
On the basis of the foregoing embodiments, in another embodiment of the present invention, the step S2 further includes: when the message controller receives the message sent by the source Fragment, the message is sent to the destination Fragment in a broadcasting mode or a point-to-point mode.
In the process that the message controller receives the message sent by the source Fragment and forwards the message to the destination Fragment, the message controller can forward the message to the destination Fragment in two modes, wherein one mode is to forward the message to the destination Fragment in a broadcasting mode, and the other mode is to forward the message to the destination Fragment in a point-to-point mode, so that flexible distribution in multiple modes is realized.
On the basis of the foregoing embodiments, in an embodiment of the present invention, the step S2 further includes: when the message controller receives the message sent by the source Fragment, broadcasting the message to the Fragment registered with the message controller; and determining whether the message needs to be processed according to the message command word in the message by the Fragment receiving the message.
As described above, when the message controller forwards the message to the destination Fragment, a broadcast manner or a point-to-point manner may be adopted. When the message controller sends a message in a broadcast mode, and the message controller receives a Fragment message, the message controller broadcasts the message to the Fragment registered in the message controller, wherein the message comprises a message command word and a message body. And the Fragment receiving the message determines whether the message is the message required by the Fragment according to the message command word in the message, and if the message is the required message, the Fragment acquires the message and processes the message.
The specific process of the message controller broadcasting the Fragment broadcast message registered in the message controller is as follows: the message controller traverses all Fragment objects in the object set in a for-loop mode, and extracts fragments from the object set one by one. When a Fragment object is extracted, an interface function onMessage in the Fragment object is called, a message received from the Fragment for sending the message is transmitted to the interface function onMessage of the Fragment object, the interface function onMessage determines whether the message needs to be processed according to a message command word in the message, and thus, the process of sending the message from one Fragment to another Fragment is completed through the forwarding of the message controller.
In another embodiment of the present invention, the step S2 further includes: the message controller receives the message sent by the source Fragment, and forwards the message to the destination Fragment according to the destination Fragment identifier in the message.
The message controller in the above embodiment forwards the message in a broadcast manner, whereas the message controller in the present embodiment forwards the message in a point-to-point manner. Specifically, when the message controller receives a message sent by a source Fragment, the message includes a destination Fragment identifier of the message to be sent. And the message controller directly forwards the message to the destination Fragment according to the destination Fragment identifier in the message.
Through the two modes, it can be seen that the message transmission in the scheme is carried out through the message controller, and is not a traditional mode of direct communication between fragments, and the message is transmitted through the message controller, because all fragments registered in the message controller are in a peer-to-peer relationship, when the source Fragment sends a message to the destination Fragment with a nested relationship, the message is directly transmitted to the destination Fragment by the message controller, so that the message is transmitted and received without being associated with the Fragment level, and the problem of complex communication caused by the fact that the message is transmitted layer by layer is avoided.
Referring to fig. 2, a communication system between multiple fragments according to another embodiment of the present invention is provided, which includes a configuration module 21, a registration module 22, and a message controller 23.
And a configuration module 21, configured to configure the message controller for all fragments in the interface.
A registering module 22, configured to register all fragments in the message controller.
A forwarding module 23, configured to forward, by the message controller, the message of the source Fragment to the destination Fragment based on the command interface and its interface function defined for each Fragment.
The configuration module 21 is further specifically configured to:
configuring a command interface for each Fragment, and defining an interface function for the command interface, wherein the interface function comprises a message command word and a message body parameter.
Referring to fig. 3, the communication system between multiple fragments further comprises a maintenance module 24, and the maintenance module 24 is configured to maintain, in the message controller, a set of objects for storing all the registered Fragment objects for all the fragments registered in the message controller.
Wherein, the message controller 23 is further specifically configured to:
when the message controller receives the message sent by the source Fragment, the message is sent to the destination Fragment in a broadcasting mode or a point-to-point mode.
The message controller 23 is further specifically configured to:
when receiving the message sent by the source Fragment, broadcasting the message to the Fragment registered with the message controller so as to enable the Fragment receiving the message to determine whether the message needs to be processed according to the message command word in the message.
Referring to fig. 4, the message controller 23 includes a traversal unit 231 and a calling unit 232, wherein the traversal unit 231 is configured to traverse all Fragment objects in the object set in a loop manner.
The invoking unit 232 is configured to invoke an interface function in the Fragment object every time a Fragment object is extracted, transfer the message to the interface function of the Fragment object, and determine whether the message needs to be processed according to the message command word in the message by the interface function.
Fig. 5 is a block diagram illustrating an apparatus of a communication method between multiple fragments according to an embodiment of the present application.
Referring to fig. 5, the apparatus of the communication method between multiple fragments includes: a processor (processor)501, a memory (memory)502, and a bus 503; the processor 501 and the memory 502 are in communication with each other via the bus 503.
The processor 501 is configured to call program instructions in the memory 502 to perform the methods provided by the above-mentioned method embodiments, for example, including: configuring a message controller for all Fragment fragments in an interface, and registering all Fragment fragments in the message controller; the message of the source Fragment is forwarded by the message controller to the destination Fragment based on the command interface and its interface function defined for each Fragment.
The present invention discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, which when executed by a computer, the computer is capable of executing the method for communication between multiple fragments provided by the corresponding embodiments described above, for example comprising: configuring a message controller for all Fragment fragments in an interface, and registering all Fragment fragments in the message controller; the message of the source Fragment is forwarded by the message controller to the destination Fragment based on the command interface and its interface function defined for each Fragment.
The present invention also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method for communication between multiple fragments provided in the corresponding embodiments, including: configuring a message controller for all Fragment fragments in an interface, and registering all Fragment fragments in the message controller; the message of the source Fragment is forwarded by the message controller to the destination Fragment based on the command interface and its interface function defined for each Fragment.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of devices and the like of the communication method between multiple fragments are merely illustrative, where units illustrated as separate components may or may not be physically separate, and components displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the various embodiments or some parts of the methods of the embodiments.
The invention provides a communication method and a system among multiple fragments, wherein message managers are configured for all fragments in an interface, and the message controllers are used for forwarding to realize that one Fragment sends a message to another Fragment, so that the disorder of direct communication among multiple fragments is avoided; when there is a nesting relationship among multiple fragments, because all fragments registered in the message controller in this embodiment are in a peer-to-peer relationship, when a source Fragment sends a message to a destination Fragment having a nesting relationship, the message is directly forwarded to the destination Fragment by the message controller without being transmitted through fragments of one level or one level, thereby avoiding the problem of complex communication caused by the need of issuing messages layer by layer.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. A method for communication between multiple fragments, comprising:
s1, configuring a message controller for all Fragment fragments in the interface, and registering all Fragment fragments in the message controller, wherein all registered Fragment fragments are in an equal relation, and the message controller is used for controlling all Fragment fragments;
s2, based on the command interface and interface function defined for each Fragment, the message controller forwards the message of the source Fragment to the destination Fragment, wherein the message includes the destination Fragment mark;
the step S2 further includes:
defining a command interface for each Fragment, and defining an interface function for the command interface, wherein the interface function at least comprises a message command word and a message body parameter;
for all fragments registered to the message controller, maintaining an object set used for storing all registered Fragment objects in the message controller;
when the message controller receives the message sent by the source Fragment, the message is forwarded to the destination Fragment in a point-to-point mode according to the destination Fragment identifier in the message.
2. The method for communicating between multiple fragments of claim 1, wherein said step S2 further comprises:
when the message controller receives the message sent by the source Fragment, broadcasting the message to the Fragment registered with the message controller;
and determining whether the message body in the message needs to be processed or not according to the message command word in the message by the Fragment receiving the message.
3. The method for communicating between multiple fragments of claim 2, wherein said step S2 further comprises:
the message controller traverses all Fragment objects in the object set in a circulating mode;
and calling an interface function in the Fragment object every time one Fragment object is extracted, transmitting the message to the interface function of the Fragment object, and determining whether the message body in the message needs to be processed or not by the interface function according to the message command word in the message.
4. A communication system between multiple fragments, comprising:
the configuration module is used for configuring a message controller for all fragments in the interface, and the message controller is used for controlling all fragments; defining a command interface for each Fragment, and defining an interface function for the command interface, wherein the interface function at least comprises a message command word and a message body parameter; for all fragments registered to the message controller, maintaining an object set used for storing all registered Fragment objects in the message controller;
a registration module, configured to register all fragments in the message controller, where all the registered fragments are in an equal relationship;
a forwarding module, configured to forward, by a message controller, a message of a source Fragment to a destination Fragment based on a command interface and an interface function thereof defined for each Fragment, where the message includes a destination Fragment identifier; when the message controller receives the message sent by the source Fragment, the message is forwarded to the destination Fragment in a point-to-point mode according to the destination Fragment identifier in the message.
5. The device of the communication method among the multiple fragments is characterized by comprising a processor, a memory and a bus;
the processor and the memory complete mutual communication through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1-3.
6. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 3.
CN201710556420.1A 2017-07-10 2017-07-10 Method and system for communication among multiple fragments Active CN107368311B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710556420.1A CN107368311B (en) 2017-07-10 2017-07-10 Method and system for communication among multiple fragments
PCT/CN2017/120152 WO2019010928A1 (en) 2017-07-10 2017-12-29 Communication method and system among multiple fragments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710556420.1A CN107368311B (en) 2017-07-10 2017-07-10 Method and system for communication among multiple fragments

Publications (2)

Publication Number Publication Date
CN107368311A CN107368311A (en) 2017-11-21
CN107368311B true CN107368311B (en) 2021-07-23

Family

ID=60306093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710556420.1A Active CN107368311B (en) 2017-07-10 2017-07-10 Method and system for communication among multiple fragments

Country Status (2)

Country Link
CN (1) CN107368311B (en)
WO (1) WO2019010928A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368311B (en) * 2017-07-10 2021-07-23 武汉斗鱼网络科技有限公司 Method and system for communication among multiple fragments
CN109005448B (en) * 2018-06-28 2021-06-15 武汉斗鱼网络科技有限公司 Bullet screen message distribution method, device, equipment and storage medium
CN109086107B (en) * 2018-06-28 2021-06-15 武汉斗鱼网络科技有限公司 Bullet screen message distribution method, device, equipment and storage medium
CN108989872B (en) * 2018-07-10 2021-01-01 武汉斗鱼网络科技有限公司 Android television background fast switching method, framework, server and storage medium
CN108924653B (en) * 2018-07-19 2021-01-01 武汉斗鱼网络科技有限公司 Bullet screen message distribution method, device, equipment and storage medium
CN109089163B (en) * 2018-07-27 2021-05-28 武汉斗鱼网络科技有限公司 Bullet screen message distribution method, device, equipment and storage medium
CN109062650B (en) * 2018-08-01 2021-06-15 武汉斗鱼网络科技有限公司 Bullet screen message distribution method, device, equipment and storage medium
CN109144639B (en) * 2018-08-07 2021-09-07 武汉斗鱼网络科技有限公司 Bullet screen message distribution method, device, equipment and storage medium
CN110968313A (en) * 2018-09-30 2020-04-07 北京奇虎科技有限公司 Fragment management framework, method and device
CN111309415B (en) * 2020-01-17 2024-01-02 北京有竹居网络技术有限公司 User Interface (UI) information processing method and device of application program and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184618A (en) * 2014-08-12 2014-12-03 烽火通信科技股份有限公司 Android terminal and method for realizing TR069 network management agent

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2615557A4 (en) * 2010-09-06 2014-05-14 Funai Electric Co Multi-user communication system, method and device
CN105468344B (en) * 2014-08-26 2019-08-06 腾讯科技(深圳)有限公司 A kind of float layer setting method, device and electronic equipment
CN105224310A (en) * 2015-09-06 2016-01-06 浪潮软件股份有限公司 ANDROID-based multi-FRAGMENT-based method for improving HYBRID application experience
CN105955832B (en) * 2016-05-12 2019-06-21 武汉斗鱼网络科技有限公司 A kind of method and system communicated with each other between the device screen page and subpage frame
CN107368311B (en) * 2017-07-10 2021-07-23 武汉斗鱼网络科技有限公司 Method and system for communication among multiple fragments

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184618A (en) * 2014-08-12 2014-12-03 烽火通信科技股份有限公司 Android terminal and method for realizing TR069 network management agent

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《使用观察者模式解决单 Activity 与多个Fragment通信》;AlphaGao;《https://www.jianshu.com/p/630832792b0e》;20170316;第1-8页 *

Also Published As

Publication number Publication date
CN107368311A (en) 2017-11-21
WO2019010928A1 (en) 2019-01-17

Similar Documents

Publication Publication Date Title
CN107368311B (en) Method and system for communication among multiple fragments
CN101409670B (en) Management component transport protocol interconnect filtering and routing
US20180032327A1 (en) System and method for the data management in the interaction between machines
EP2835938B1 (en) Message publishing and subscribing method and apparatus
US8874686B2 (en) DDS structure with scalability and adaptability and node constituting the same
US20140229504A1 (en) System and method for managing database in data distribution service
CN111866008A (en) Service data processing method, service processing method and equipment
US10938868B2 (en) Application service integration
US10791075B2 (en) System for delivering notification messages across different notification media
CN102843393A (en) Running device and method of network application
CN114448805B (en) Virtual network device, virtual overlay network, configuration and message transmission method
CN112491743A (en) Configuration method and device of exchange chip
CN104683428A (en) Network service processing method and device
US20150195140A1 (en) Apparatus and method for sharing data by using topology
CN107368523B (en) Data processing method and system
CN109313568A (en) Method and apparatus for the mobile virtual network function example between network service instance
CN114710549A (en) Dynamic management method, system and service node of network card in container platform
CN116233217B (en) Page jump method and device based on route, electronic equipment and storage medium
EP2942711B1 (en) Dynamic generation of proxy connections
EP3188071B1 (en) Application accessing control method and device
EP2044526A1 (en) System and method for managing domain-state information
CN104284297A (en) Resource shifting method and device
CN114968617B (en) API conversion system, access request processing method thereof, electronic equipment and medium
CN109144520B (en) Information interaction method, device, equipment and storage medium among different objects in Android
CN113439418A (en) Method, system, terminal and storage medium for changing resource state

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant