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

Data sharing method, device, apparatus and storage medium of active window

A technology of active window and data sharing, applied in the computer field, it can solve problems such as the influence of Activity page

Active Publication Date: 2019-01-22
WUHAN DOUYU NETWORK TECH CO LTD
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Then, using the above data sharing method, when the Activity page is switched, if the data corresponding to the Activity page before the switch cached in the static memory cannot be cleared in time (that is, dirty data), it will cause the Activity page after the switch to share the activity page before the switch Dirty data, which will cause the dirty data of the activity page before switching to be displayed on the activity page after switching, which will affect the activity page after switching

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
  • Data sharing method, device, apparatus and storage medium of active window
  • Data sharing method, device, apparatus and storage medium of active window
  • Data sharing method, device, apparatus and storage medium of active window

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] The data sharing method of the active window provided by this embodiment is applicable to the situation that the data in the page scope of each active window is stored globally, independently and in batches, especially for independently storing each active window in an Android application program. In the scenario of an active window page data. The method can be performed by the data sharing device of the active window, which can be realized by software and / or hardware, and the device can be integrated in a device installed with an Android application program, such as a typical user terminal device, such as a mobile phone , tablet or smart TV etc. see figure 1 , the method of this embodiment includes:

[0028] S110. Determine a target sharing object according to the object to be shared.

[0029] Wherein, the shared object refers to an object storing shared data, and the object to be shared refers to an object storing data to be shared, and the data to be shared refers...

Embodiment 2

[0053] In this embodiment, on the basis of the first embodiment above, an operation of reading shared data of the target active window object is added. The explanations of terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated here. see figure 2 , the data sharing method of the active window provided by this embodiment includes:

[0054] S210. Determine a target sharing object according to the object to be shared.

[0055] S220. Using the target context object corresponding to the target active window object as a function input parameter, call the object acquisition function through the data cache class, and acquire the target data cache object corresponding to the target active window object from the target mapping relationship object.

[0056] S230. Call the data storage function in the target data cache object, and correspondingly store the target key and the target value of the target shared object in the target data object i...

Embodiment 3

[0077] In this embodiment, on the basis of the first embodiment above, a step of constructing a data type set is added. On this basis, the step of reading the shared data of the target active window object is added. The explanations of terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated here. see image 3 , the data sharing method of the active window provided by this embodiment includes:

[0078] S310. If the data type set is an associative container map type, use the key of the object to be shared as the map key in the data type set.

[0079] Specifically, in the actual operation process, there is a case of data update, and the data type set of the pre-built enumeration type inevitably has data missing, so that the original data type of the missing shared object cannot be obtained. In this embodiment, in order to realize the dynamic expansion of the data type set, the data type set is set as an associative container map type...

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 discloses a data sharing method, a device, an apparatus and a storage medium of a moving window. The method comprises the following steps of: determining a target shared object according to the object to be shared, wherein the target shared object is a key value pair structure, and the data type of the target value of the target shared object is an ancestor class Object type; taking the target context object corresponding to the target active window object as the function input parameter, calling the object to obtain the function through the data cache class, and obtaining the target data cache object corresponding to the target active window object one by one from the target mapping relation object; calling the data storage function in the target data cacheobject to store the target key and target value of the target shared object correspondingly to the target data object in the target data cache object. By adopting the technical proposal, the data sharing in the scope of the active window page in the Android system is more accurately and quickly realized, and the mutual influence of the shared data among the active window pages can be effectivelyavoided.

Description

technical field [0001] Embodiments of the present invention relate to computer technology, and in particular to a method, device, device and storage medium for data sharing of active windows. Background technique [0002] In the Android system, the active window is called Activity. Activity is a component responsible for interacting with users. An Activity can provide a screen (which can be understood as a screen interface, rather than a physical display screen) to display some controls, listen to and process user events, and so on. [0003] In order to save system memory and improve data processing efficiency in the same Activity, currently the data in the Activity scope of the active window is usually stored in static memory to realize data sharing in the Activity scope. [0004] However, an Android application consists of multiple activities that are loosely related to each other, and one Activity can start another Activity. Then, using the above data sharing method, wh...

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/54
CPCG06F9/544
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD
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