The method, apparatus and terminal device of data sharing between a kind of application program
Technical field
The invention relates to a kind of method of data sharing between Internet technical field more particularly to application program,
Device and terminal device.
Background technology
With the development of mobile communication technology, Mobile operating system is also stronger and stronger, and mobile terminal is commonly installed multiple
Application program.These application programs need the support of various data contents when running, these data contents tend to take up quite a lot of
Memory resource.
In Mobile operating system, clipbook function is generally both provided, for sharing text between different application
Notebook data.Such as in one section of text of A application copies, the text that can be replicated before reading by way of stickup in B applications
Notebook data.But non-textual complex data is shared between these application programs, then can not provide similar text share it is such
Operating method.
Therefore, data sharing is asked as technology urgently to be resolved hurrily in the prior art between how realizing flexible application program
Topic.
Invention content
The embodiment of the present application provides the method, apparatus and terminal device of data sharing between a kind of application program, flexibly
Realization application program between data sharing, promoted user experience.
According to the one side of the embodiment of the present application, the method for providing data sharing between a kind of application program, the side
Method includes:
The data content that first application program selects is sent to data management system by the input interface of calling;
Type of the data management system according to the data content is enabled, the data are stored according to preset storage rule
Content;
The data content that will be stored in the data management system selected by the second application program, is connect by the output of calling
Mouth is read.
According to the other side of the embodiment of the present application, a kind of device of data sharing between application program, institute are additionally provided
Device is stated to include:
Data transmission blocks, the data content for the first application program to be selected are sent to by the input interface of calling
Data management system;
Data management module for enabling type of the data management system according to the data content, is deposited according to preset
Storage rule stores the data content;
Data read module, in the data that will be stored in the data management system selected by the second application program
Hold, read by the output interface of calling.
According to the another aspect of the embodiment of the present application, a kind of terminal device is additionally provided, including:Processor, memory,
Communication interface and communication bus, the processor, the memory and the communication interface complete phase by the communication bus
Communication between mutually;For the memory for storing an at least executable instruction, the executable instruction performs the processor
The corresponding operation of method of data sharing between application program as described above.
According to technical solution provided by the embodiments of the present application, the first application program of the embodiment of the present application passes through data content
Input interface is sent to data management system, and the data management system is according to the type of the data content, according to preset storage
Rule stores the data content, and the second application program is read from the data management system in the data of selection by output interface
Hold.It follows that can to share the data management therein for the first application program of the embodiment of the present application and the second application program
Data content, so as to fulfill the flexibly shared of the complex data content between each application program.
Description of the drawings
Fig. 1 is the step flow chart of the method for data sharing between a kind of application program according to the embodiment of the present application one;
Fig. 2 is the step S102 flows of the method for data sharing between a kind of application program according to the embodiment of the present application one
Figure;
Fig. 3 is the file storage signal of the method for data sharing between a kind of application program according to the embodiment of the present application one
Figure;
Fig. 4 is the step S102 flows of the method for data sharing between a kind of application program according to the embodiment of the present application two
Figure;
Fig. 5 is the step S102 flows of the method for data sharing between a kind of application program according to the embodiment of the present application three
Figure;
Fig. 6 is the structure diagram of the device of data sharing between a kind of application program according to the embodiment of the present application four;
Fig. 7 is the data management module knot of the device of data sharing between a kind of application program according to the embodiment of the present application four
Structure block diagram;
Fig. 8 is the data management module knot of the device of data sharing between a kind of application program according to the embodiment of the present application five
Structure block diagram;
Fig. 9 is the data management module knot of the device of data sharing between a kind of application program according to the embodiment of the present application six
Structure block diagram;
Figure 10 is the structure diagram according to a kind of terminal device of the embodiment of the present application seven.
Specific embodiment
(identical label represents identical element in several attached drawings) and embodiment below in conjunction with the accompanying drawings, implement the application
The specific embodiment of example is described in further detail.Following embodiment is used to illustrate the application, but be not limited to the application
Range.
It will be understood by those skilled in the art that the terms such as " first ", " second " in the embodiment of the present application are only used for distinguishing
Different step, equipment or module etc. neither represent any particular technology meaning, also do not indicate that the inevitable logic between them is suitable
Sequence.
Embodiment one
With reference to Fig. 1, the step of showing the method for data sharing between a kind of application program according to the embodiment of the present application one
Flow chart.
What deserves to be explained is herein described step S101 to S103 does not represent the sequencing of its execution.
The method of data sharing includes the following steps between the application program of the present embodiment:
Step S101:The data content that first application program selects is sent to data management by the input interface of calling
Device.
Specifically, the startup of the startup biconditional operation system of herein described data management system synchronizes.Therefore, it is herein described
Data management system provides the service of system level, can start with the startup of operating system.The data pipe
Reason device can carry out data management after starting, and realize the data sharing between each application program.
Herein described first application program selection carries out the data content of data sharing, first application program
Total data can be selected to be shared, can also selected section data shared.User can also answer by described first
It is configured with the setting option of program, chooses whether to carry out data sharing.
Step S102:Type of the data management system according to the data content is enabled, is deposited according to preset storage rule
Store up the data content.
In the embodiment of the present application in the specific implementation, referring to Fig. 2, herein described step S102 includes:
Step S1021:Judge the type of the data content received, and institute is determined according to the type of the data content
State the storage rule of data content.
Step S1022:According to the storage rule, the data content is stored to the data management system.
Specifically, data management system can preset storage rule a kind of to the type definition of each data content, such as text
Sheet, picture, file etc..Each type of storage rule all will be different, and text data only deposits corresponding text, picture text
Part stores byte data, and the path of file then storage file, and specific storage condition is referring to Fig. 3.
Step S103:The data content that will be stored in the data management system selected by the second application program, passes through tune
Output interface is read.
Second application program described in the embodiment of the present application can read the data content of storage from the data management system,
And pass through and the output interface of the data management system is called to read the data content, so as to fulfill the shared of data content.
Data content is sent to data management system, the number by the first application program of the embodiment of the present application by input interface
According to manager according to the type of the data content, the data content is stored according to preset storage rule, second applies journey
Sequence reads the data content of selection by output interface from the data management system.It follows that the embodiment of the present application first should
Data management data content therein can be shared with program and the second application program, so as to fulfill between each application program
Complex data content is flexibly shared.
The method of data sharing can be by any suitable data between having application program between the application program of the present embodiment
The equipment of shared ability performs, including but not limited to:Various terminal equipment or server-side, including but not limited to PC machine are put down
Plate computer, mobile terminal etc..
Embodiment two
The method of data sharing includes above-mentioned steps S101 to S103 between a kind of application program of the embodiment of the present application two.
Referring to Fig. 4, step S102 includes described in the embodiment of the present application:
Step S1021:Judge the type of the data content received, and institute is determined according to the type of the data content
State the storage rule of data content.
Step S1022:According to the storage rule, the data content is stored to the data management system.
Specifically, data management system can preset storage rule a kind of to the type definition of each data content, such as text
Sheet, picture, file etc..Each type of storage rule all will be different, and text data only deposits corresponding text, picture text
Part stores byte data, and the path of file then storage file, and specific storage condition is referring to Fig. 3.
Step S1023:Data content lookup is carried out according to the type of the data content, obtains second application program
The data content of selection.
Data management system described in the embodiment of the present application is deposited by the type of the data content according to respective preset rules
The data content is stored up, therefore the application can provide and carry out data content lookup according to the type of the data content, obtain
The data content of second application program selection.
For example, the data content that second application program selects is picture, then institute is read according to the storage rule of picture
State the picture stored in data management system.
Data content is sent to data management system, the number by the first application program of the embodiment of the present application by input interface
According to manager according to the type of the data content, the data content is stored according to preset storage rule, second applies journey
Sequence reads the data content of selection by output interface from the data management system.It follows that the embodiment of the present application first should
Data management data content therein can be shared with program and the second application program, so as to fulfill between each application program
Complex data content is flexibly shared.
The method of data sharing can be by any suitable data between having application program between the application program of the present embodiment
The equipment of shared ability performs, including but not limited to:Various terminal equipment or server-side, including but not limited to PC machine are put down
Plate computer, mobile terminal etc..
Embodiment three
The method of data sharing includes above-mentioned steps S101 to S103 between a kind of application program of the embodiment of the present application three.
Referring to Fig. 5, step S102 includes described in the embodiment of the present application:
Step S1021:Judge the type of the data content received, and institute is determined according to the type of the data content
State the storage rule of data content.
Step S1022:According to the storage rule, the data content is stored to the data management system.
Specifically, data management system can preset storage rule a kind of to the type definition of each data content, such as text
Sheet, picture, file etc..Each type of storage rule all will be different, and text data only deposits corresponding text, picture text
Part stores byte data, and the path of file then storage file, and specific storage condition is referring to Fig. 3.
Step S1023:Data content lookup is carried out according to the type of the data content, obtains second application program
The data content of selection.
Data management system described in the embodiment of the present application is deposited by the type of the data content according to respective preset rules
The data content is stored up, therefore the application can provide and carry out data content lookup according to the type of the data content, obtain
The data content of second application program selection.
For example, the data content that second application program selects is picture, then institute is read according to the storage rule of picture
State the picture stored in data management system.
Step S1024:The data content of same type is such as received, then store the data content received and is deposited before removing
The data content of the same type of storage.
Specifically, the corresponding data content of the embodiment of the present application each type can only store portion, if storing institute again
When stating same type of data content, data content before will be eliminated.
Data content is sent to data management system, the number by the first application program of the embodiment of the present application by input interface
According to manager according to the type of the data content, the data content is stored according to preset storage rule, second applies journey
Sequence reads the data content of selection by output interface from the data management system.It follows that the embodiment of the present application first should
Data management data content therein can be shared with program and the second application program, so as to fulfill between each application program
Complex data content is flexibly shared.
The method of data sharing can be by any suitable data between having application program between the application program of the present embodiment
The equipment of shared ability performs, including but not limited to:Various terminal equipment or server-side, including but not limited to PC machine are put down
Plate computer, mobile terminal etc..
Example IV
With reference to Fig. 6, the structure of the device of data sharing between a kind of application program according to the embodiment of the present application four is shown
Block diagram.
The device of data sharing includes between the application program of the present embodiment:
Data transmission blocks 601, for the data content that the first application program selects to be sent out by the input interface of calling
It send to data management system.
Data management module 602, for enabling type of the data management system according to the data content, according to preset
Storage rule stores the data content.
Data read module 603, for the data that will be stored in the data management system selected by the second application program
Content is read by the output interface of calling.
Specifically, the startup of the startup biconditional operation system of herein described data management system synchronizes.Therefore, it is herein described
Data management system provides the service of system level, can start with the startup of operating system.The data pipe
Reason device can carry out data management after starting, and realize the data sharing between each application program.
Herein described first application program selection carries out the data content of data sharing, first application program
Total data can be selected to be shared, can also selected section data shared.User can also answer by described first
It is configured with the setting option of program, chooses whether to carry out data sharing.
In the embodiment of the present application in the specific implementation, referring to Fig. 7, herein described data management module 602 includes:
Type judging unit 6021, for judging the type of the data content received, and according to the data content
Type determine the storage rule of the data content.
Data storage cell 6022, for according to the storage rule, the data content to be stored to the data pipe
Manage device.
Specifically, data management system can preset storage rule a kind of to the type definition of each data content, such as text
Sheet, picture, file etc..Each type of storage rule all will be different, and text data only deposits corresponding text, picture text
Part stores byte data, and the path of file then storage file, and specific storage condition is referring to Fig. 3.
Second application program described in the embodiment of the present application can read the data content of storage from the data management system,
And pass through and the output interface of the data management system is called to read the data content, so as to fulfill the shared of data content.
Data content is sent to data management system, the number by the first application program of the embodiment of the present application by input interface
According to manager according to the type of the data content, the data content is stored according to preset storage rule, second applies journey
Sequence reads the data content of selection by output interface from the data management system.It follows that the embodiment of the present application first should
Data management data content therein can be shared with program and the second application program, so as to fulfill between each application program
Complex data content is flexibly shared.
The method of data sharing can be by any suitable data between having application program between the application program of the present embodiment
The equipment of shared ability performs, including but not limited to:Various terminal equipment or server-side, including but not limited to PC machine are put down
Plate computer, mobile terminal etc..
Embodiment five
The device of data sharing includes above-mentioned module data sending module between a kind of application program of the embodiment of the present application five
601st, data management module 602, data read module 603.
Referring to Fig. 8, data management module 602 includes described in the embodiment of the present application:
Type judging unit 6021, for judging the type of the data content received, and according to the data content
Type determine the storage rule of the data content.
Data storage cell 6022, for according to the storage rule, the data content to be stored to the data pipe
Manage device.
Data searching unit 6023, for carrying out data content lookup according to the type of the data content, described in acquisition
The data content of second application program selection.
Specifically, data management system can preset storage rule a kind of to the type definition of each data content, such as text
Sheet, picture, file etc..Each type of storage rule all will be different, and text data only deposits corresponding text, picture text
Part stores byte data, and the path of file then storage file, and specific storage condition is referring to Fig. 3.
Data management system described in the embodiment of the present application is deposited by the type of the data content according to respective preset rules
The data content is stored up, therefore the application can provide and carry out data content lookup according to the type of the data content, obtain
The data content of second application program selection.
For example, the data content that second application program selects is picture, then institute is read according to the storage rule of picture
State the picture stored in data management system.
Data content is sent to data management system, the number by the first application program of the embodiment of the present application by input interface
According to manager according to the type of the data content, the data content is stored according to preset storage rule, second applies journey
Sequence reads the data content of selection by output interface from the data management system.It follows that the embodiment of the present application first should
Data management data content therein can be shared with program and the second application program, so as to fulfill between each application program
Complex data content is flexibly shared.
The method of data sharing can be by any suitable data between having application program between the application program of the present embodiment
The equipment of shared ability performs, including but not limited to:Various terminal equipment or server-side, including but not limited to PC machine are put down
Plate computer, mobile terminal etc..
Embodiment six
The device of data sharing includes above-mentioned module data sending module between a kind of application program of the embodiment of the present application six
601st, data management module 602, data read module 603.
Referring to Fig. 9, data management module 602 includes described in the embodiment of the present application:
Type judging unit 6021, for judging the type of the data content received, and according to the data content
Type determine the storage rule of the data content.
Data storage cell 6022, for according to the storage rule, the data content to be stored to the data pipe
Manage device.
Data searching unit 6023, for carrying out data content lookup according to the type of the data content, described in acquisition
The data content of second application program selection.
Data cover unit 6024 for such as receiving the data content of same type, then stores the data content received
And remove the data content of same type stored before.
Specifically, data management system can preset storage rule a kind of to the type definition of each data content, such as text
Sheet, picture, file etc..Each type of storage rule all will be different, and text data only deposits corresponding text, picture text
Part stores byte data, and the path of file then storage file, and specific storage condition is referring to Fig. 3.
Data management system described in the embodiment of the present application is deposited by the type of the data content according to respective preset rules
The data content is stored up, therefore the application can provide and carry out data content lookup according to the type of the data content, obtain
The data content of second application program selection.
For example, the data content that second application program selects is picture, then institute is read according to the storage rule of picture
State the picture stored in data management system.
Specifically, the corresponding data content of the embodiment of the present application each type can only store portion, if storing institute again
When stating same type of data content, data content before will be eliminated.
Data content is sent to data management system, the number by the first application program of the embodiment of the present application by input interface
According to manager according to the type of the data content, the data content is stored according to preset storage rule, second applies journey
Sequence reads the data content of selection by output interface from the data management system.It follows that the embodiment of the present application first should
Data management data content therein can be shared with program and the second application program, so as to fulfill between each application program
Complex data content is flexibly shared.
The method of data sharing can be by any suitable data between having application program between the application program of the present embodiment
The equipment of shared ability performs, including but not limited to:Various terminal equipment or server-side, including but not limited to PC machine are put down
Plate computer, mobile terminal etc..
Embodiment seven
With reference to Figure 10, a kind of structure diagram of terminal device according to the embodiment of the present application seven is shown, the application is specific
Embodiment does not limit the specific implementation of terminal device.
As shown in Figure 10, which can include:Processor (processor) 1002, communication interface
(Communications Interface) 1004, memory (memory) 1006 and communication bus 1008.
Wherein:
Processor 1002, communication interface 1004 and memory 1006 complete mutual lead to by communication bus 1008
Letter.
Communication interface 1004, the network element for terminals such as other with miscellaneous equipment or server-side etc. communicate.
Processor 1002 for performing program 1010, can specifically perform the method that above application inter-program data is shared
Correlation step in embodiment.
Specifically, program 1010 can include program code, which includes computer-managed instruction.
Processor 1002 may be central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit) or be arranged to implement the embodiment of the present application one or more integrate electricity
Road.The one or more processors that terminal device includes can be same type of processor, such as one or more CPU;Also may be used
To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 1006, for storing program 1010.Memory 1006 may include high-speed RAM memory, it is also possible to also
Including nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 1010 specifically can be used for so that processor 1002 performs following operation:The number that first application program is selected
Data management system is sent to by the input interface of calling according to content;Enable class of the data management system according to the data content
Type stores the data content according to preset storage rule;It will be in the data management system that selected by the second application program
The data content of storage is read by the output interface of calling.
In a kind of optional embodiment, the startup of the startup biconditional operation system of the data management system synchronizes.
In a kind of optional embodiment, program 1010 is additionally operable to the type for the data content for judging to receive, and
The storage rule of the data content is determined according to the type of the data content;According to the storage rule, by the data
Content is stored to the data management system.
In a kind of optional embodiment, program 1010 is additionally operable to be carried out in data according to the type of the data content
Hold and search, obtain the data content of the second application program selection.
In a kind of optional embodiment, program 1010 is additionally operable to the data content as received same type, then stores
The data content of same type that the data content and removing received stores before.
Data content is sent to data management system, the number by the first application program of the embodiment of the present application by input interface
According to manager according to the type of the data content, the data content is stored according to preset storage rule, second applies journey
Sequence reads the data content of selection by output interface from the data management system.It follows that the embodiment of the present application first should
Data management data content therein can be shared with program and the second application program, so as to fulfill between each application program
Complex data content is flexibly shared.
It may be noted that according to the needs of implementation, all parts/step described in the embodiment of the present application can be split as more
The part operation of two or more components/steps or components/steps can be also combined into new component/step by multi-part/step
Suddenly, to realize the purpose of the embodiment of the present application.
The above-mentioned method according to the embodiment of the present application can be realized or be implemented as in hardware, firmware to be storable in note
Software or computer code in recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk) are implemented through net
The original storage that network is downloaded is in long-range recording medium or nonvolatile machine readable media and will be stored in local recording medium
In computer code, can be stored in using all-purpose computer, application specific processor or can compile so as to method described here
Such software processing in journey or the recording medium of specialized hardware (such as ASIC or FPGA).It is appreciated that computer, processing
Device, microprocessor controller or programmable hardware include can storing or receive software or computer code storage assembly (for example,
RAM, ROM, flash memory etc.), when the software or computer code are by computer, processor or hardware access and when performing, realize
The method of data sharing between application program described here.In addition, when all-purpose computer access be used to implement be shown here should
During the code of method shared with inter-program data, the execution of code is converted to all-purpose computer to perform what is be shown here
The special purpose computer of the method for data sharing between application program.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein
Member and method and step can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The range of the embodiment of the present application.
Embodiment of above is merely to illustrate the embodiment of the present application, and is not the limitation to the embodiment of the present application, related skill
The those of ordinary skill in art field in the case where not departing from the spirit and scope of the embodiment of the present application, can also make various
Variation and modification, therefore all equivalent technical solutions also belong to the scope of the embodiment of the present application, the patent of the embodiment of the present application
Protection domain should be defined by the claims.