CN106406986B - A kind of resource share method and device - Google Patents
A kind of resource share method and device Download PDFInfo
- Publication number
- CN106406986B CN106406986B CN201611044592.2A CN201611044592A CN106406986B CN 106406986 B CN106406986 B CN 106406986B CN 201611044592 A CN201611044592 A CN 201611044592A CN 106406986 B CN106406986 B CN 106406986B
- Authority
- CN
- China
- Prior art keywords
- application
- anything
- attending
- data
- resource data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/468—Specific access rights for resources, e.g. using capability register
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
Abstract
This application discloses a kind of resource share method and device, it is related to opening technical field using double, can realizes double data sharings opened in application between main application and application of attending to anything else in the case where not by other external storage equipments.The method include that whether the specified application of detection meets the synchronous prerequisite of resource data, there are corresponding main application and applications of attending to anything else for the specified application;After the specified application meets the prerequisite, the resource data of the main application and the resource data of the application of attending to anything else are synchronized;Pass through identical with the application access of the attending to anything else resource data of the main application.The application is suitable for double data sharing process for opening application.
Description
Technical field
The present invention relates to applications pair to open technical field more particularly to a kind of resource share method and device.
Background technique
Refer in same terminal while running at least two identical application programs using double open, opens skill using application is double
Same application, which may be implemented, in art can open simultaneously at least two processes, and all processes being opened while run.This
Sample can meet the needs of same user or different user start multiple same applications by multiple accounts, be the use of user
Convenience is provided.
In terminal each application program can correspond to an access entrance on the display interface of terminal, i.e. application program
Icon.Double applications opened include the main application of same application and application of attending to anything else, wherein main when the icon of main application is clicked
It is activated using corresponding application program, runs originating process;And when the icon for application of attending to anything else is clicked, it can run different from source
The process of process, and independent progress.In addition, double main applications for opening application and the corresponding resource data of application of attending to anything else are also mutual
Independent, i.e., main application can only all use itself corresponding resource data with application of attending to anything else.
User in actual use, in order to easy to operate, it is likely that need it is main application and attend to anything else application between money
Source data is shared.But due to it is main application and attend to anything else using corresponding resource data it is mutually indepedent, user generally require by
Other external storage equipments copy the corresponding resource data of main application needed for user on external storage equipment to, later will
Resource data needed for user is copied to the storage location attended to anything else using corresponding resource data in external storage equipment, or adopts
It will attend to anything else in a like fashion and be copied to the main storage location using corresponding resource data using corresponding resource data, thus
Realize the resource-sharing of main application and application of attending to anything else.It can be seen that not only being needed external by other using above-mentioned implementation
Storage equipment realizes resource-sharing process jointly, and when user needs shared mass data, it is also necessary to which user expends a large amount of
Time completes the frequent copy of same data, is not easy to user's operation.
Summary of the invention
The application provides a kind of resource share method and device, can be not by other external storage equipments the case where
Under, realize double data sharings opened in application between main application and application of attending to anything else.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the present invention provides a kind of resource share method, which comprises
Whether the specified application of detection meets the synchronous prerequisite of resource data, and there are corresponding masters to answer for the specified application
With with application of attending to anything else;
After the specified application meets the prerequisite, synchronize the resource data of the main application with it is described attend to anything else answer
Resource data;
Pass through identical with the application access of the attending to anything else resource data of the main application.
Second aspect, the present invention provide a kind of resource shared device, and described device includes:
Detection module, for detecting whether specified application meets the synchronous prerequisite of resource data, the specified application
There are corresponding main application and applications of attending to anything else;
Synchronization module, for synchronizing after the detection module detects that the specified application meets the prerequisite
The resource data of the resource data of the main application and the application of attending to anything else;
Access modules, for as it is described it is main application with it is described attend to anything else application access by the synchronization module it is synchronous obtained by
The identical resource data arrived.
Resource share method and device provided by the present application are compared in the prior art by other external storage equipments
The resource data of main application (or attending to anything else application) is copied into the storage equipment, later by the resource data in the storage equipment
It is transferred to application of attending to anything else (or main application), to realize data sharing, the application can meet resource detecting specified application
After the prerequisite that data synchronize, the resource data of main application and application of attending to anything else is synchronized, and passes through main application and attends to anything else using visit
Identical resource data is asked, to realize data sharing.It can be seen that using aforesaid way without external storage equipment, and
It is to keep main application identical as the resource data for application of attending to anything else in such a way that data are synchronous, later in main application and application of attending to anything else
When accessing identical resource data, it is also achieved that the shared of resource data.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of concrete application scene schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of resource share method flow chart provided in an embodiment of the present invention;
Fig. 3 to Fig. 5 is another resource share method flow chart provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of resource shared device provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention can be used for a kind of terminal, and at least having one in the terminal has answering using double opening function
With, and the application has currently had been started up main application and at least one application of attending to anything else.The main application of same application is attended to anything else with each
Mutually indepedent using corresponding storage region, as shown in Figure 1, process a is operated in the A of space, process b is operated in space B, into
Journey a and process b is two processes of same application.In Data subregion (data subregion), two processes in different spaces
Corresponding storage region is independent from each other.
If currently needing to share the file X.jpg under the A of space to space B, the i.e. accessible X.jpg of the process of space B
File, then using a needing that shared file X.jpg will be attempted to be copied to answering using a from data/media/A under the A of space
With under catalogue data/user/A/application_a.Pass through Content Provider (English: content using a later
Provider), i.e. the interface of the data sharing of application program, will be copied to using a using being shared under catalogue
File X.jpg is exposed to other processes, so that the process b under making space B is requested access to by content provider using a
Using the content for being exposed to other processes under catalogue, to realize the shared of X.jpg file.
The embodiment of the present invention provides a kind of resource share method, as shown in Fig. 2, this method comprises:
Whether step 101, the specified application of detection meet the synchronous prerequisite of resource data.
Wherein, specifying application, there are corresponding main application and applications of attending to anything else.
It should be noted that prerequisite include at least it is main application and/or attend to anything else using receive specified type data,
It has been turned on for triggering main application and attend to anything else using carrying out the synchronous switch of resource data, and currently reaches and carry out data and synchronize
One of preset time.Wherein, specified type can be type, the format etc. of data, for example, specified type can wrap
Include: data are picture type or sound-type;For trigger main application with attend to anything else that resource data is synchronous opens using carrying out
It closes, is specifically as follows the switch that data lockage button etc. is capable of log-on data synchronizing function, for example, opening this switch can
It is synchronous with the data for triggering specified application, it closes this switch and then continues to keep (including the main application of each application under same application
With application of attending to anything else) process of current separate storage and access;Preset time can for it is pre-set triggering synchronizing process when
Between, for example, preset at daily 1 point into line number according to synchronization, then whenever the time reaching at 1, will automatic trigger synchronized
Journey.
Step 102 is being specified using the resource data and the resource for application of attending to anything else for after meeting prerequisite, synchronizing main application
Data.
In embodiments of the present invention, what resource data referred to is exactly the data including X.jpg file shown in FIG. 1.By
Different resource datas can be generated in the process of running in main application and reference of attending to anything else, and these resource datas are not deposited in storage
It in intersection, is independent from each other, therefore, in order to realize resource-sharing, then needs to realize the money of main application and application of attending to anything else
The synchronization of source data, in this way after executing step 103, so that it may realize the resource-sharing of specified application, and without external
Store transit node of the equipment as data.
Step 103 passes through main application resource data identical with application access of attending to anything else.
Resource share method provided by the present application is compared to and in the prior art answers master by other external storage equipments
The storage equipment is copied to the resource data of (or attending to anything else application), is later transferred to the resource data in the storage equipment
Attend to anything else application (or main application), to realize data sharing, the application can detect that it is same that specified application meets resource data
After the prerequisite of step, the resource data of main application and application of attending to anything else is synchronized, and identical as application access of attending to anything else by main application
Resource data, to realize data sharing.It can be seen that using aforesaid way without external storage equipment, but pass through
The synchronous mode of data keeps main application identical as the resource data for application of attending to anything else, later in main application and application access phase of attending to anything else
With resource data when, be also achieved that the shared of resource data.
After data synchronize, in order to save resource data occupied space in storing process, in the embodiment of the present invention
An implementation in, make it is main application it is identical as the access path for application of attending to anything else, thus avoid repeat store more points it is identical
Resource data.Therefore, on the basis of implementation as shown in Figure 2, it is also implemented as implementation as shown in Figure 3.
Wherein, step 102 synchronizes the resource data and the number of resources for application of attending to anything else of main application after specified application meets prerequisite
According to step 1021 and step 1022 perhaps step 1023 and step 1024 or step 1025 and step can be implemented as
1026:
Step 1021, the access path for the application that is changed to attend to anything else by the access path of main application, and by the resource of main application
Data copy is to the first storage region.
Wherein, the first storage region be attend to anything else application resource data storage location.
Step 1022, the resource data for deleting main application in the second storage region.
Wherein, the storage location for the resource data applied based on the second storage region.
By the way that the resource data of main application to be copied to the storage location of the resource data for application of attending to anything else, make application pair of attending to anything else
Include the resource data and the resource data of itself of main application in the first storage region answered, makes main application later and attend to anything else to answer
With the first storage region for accessing application of attending to anything else, it is also achieved that data sharing.Also, consider the resource data of main application
It has been copied to the first storage region, and in order to reduce the occupied memory space of resource data, in embodiments of the present invention, also
The resource data that copy has been completed in main application can be deleted from the second storage region.Will not both interfere in this way it is main application and
Attend to anything else using the access for carrying out resource data, meanwhile, decrease the occurrence of redundant data occupies excessive memory space.
Step 1023, the access path that will be applied based on the change of the access path of application of attending to anything else, and by the money for application of attending to anything else
Source data is copied to the second storage region.
Step 1024, the resource data for deleting application of attending to anything else in the first storage region.
It is similar with the technical solution that above-mentioned steps 1021 and step 1022 are realized, it is the resource of application of attending to anything else herein
Data copy to main application resource data storage location, and will in the first storage region complete copy application of attending to anything else money
Source data is deleted, and specific implementation process can be with reference to the technical solution that above-mentioned steps 1021 and step 1022 are realized, herein not
It repeats.
The access path of the access path of main application and application of attending to anything else is changed to specified access path by step 1025, and
The resource data of main application and the resource data for application of attending to anything else are copied to the corresponding file of specified access path.
Master answers in step 1026, the resource data for deleting application of attending to anything else in the first storage region and the second storage region
Resource data.
In addition to above two copy scheme, the resource data of main application and application of attending to anything else can also be copied to respectively same
File, and using the access path of this document as the access path of main application and application of attending to anything else.With above two copy scheme phase
It together,, can be by the first storage region and the second storage region after the copy for completing resource data in order to save memory space
Resource data delete.
It should be noted that in view of main application resource data may there are identical with the resource data of application of attending to anything else
Content stores to reduce the wasting of resources caused by data redundancy by the resource data of main application and application of attending to anything else jointly
To the same space storage region when, need to it is main application and application of attending to anything else resource data carry out duplicate removal processing.
It can be seen that above-mentioned three kinds of implementations, are by the access path of unified main application and application of attending to anything else, with reality
Existing resource data is shared.And after completing resource data and synchronizing, passes through and delete the first storage region and/or the second storage region
The mode of the resource data of copy is inside completed, effectively reduces the occupancy of memory space, to save a large amount of storage resources.
In view of that may be equipped with multiple applications in terminal, and not each application can use the application to be proposed
Therefore technical solution in an implementation of the embodiment of the present invention, needs first to carry out all applications installed in terminal
Screening, and extremely synchronous to the application for meeting specified application conditions after completion screening and data sharing.Therefore, in such as Fig. 2 or Fig. 3
Shown on the basis of implementation, by taking Fig. 2 as an example, be also implemented as implementation as shown in Figure 4.Wherein, it is executing
Before whether the specified application of step 101 detection meets the synchronous prerequisite of resource data, step 104 can also be performed:
In step 104, all applications installed at the terminal, determining has the application for application of attending to anything else for specified application.
In embodiments of the present invention, can will have in all applications mounted in terminal and divide by way of list
The specified application of body application is arranged, and carries out data sharing using the application of double opening function to have for those.It needs
Illustrate in addition to the mode of above-mentioned list, can also be owned by application being marked or other Collator Modes
The information of specified application, for determining the mode of specified application, this will not be repeated here.
In order to ensure the safety of private data, in an implementation of the embodiment of the present invention, in resource data
There are when private data, data sharing is if desired carried out, then needs first to authenticate the identity of user, and after authentication passes through
It can synchronize, share the private data.Therefore, on the basis of implementation as shown in Figure 2 or Figure 3, by taking Fig. 2 as an example, may be used also
To be embodied as implementation as shown in Figure 5.Wherein, step 102 synchronizes main application after specified application meets prerequisite
The resource data of resource data and application of attending to anything else, can be implemented as step 1027:
If in the resource data of step 1027, the resource data of main application or application of attending to anything else, there are private datas, synchronize
Main application and the resource data in addition to private data in application of attending to anything else, and the authentication for passing through private data in user
Afterwards, synchronous private data.
It can be seen that above-mentioned synchronizing process can be only limitted to main application and divide if user does not pass through authentication
The unexpected resource data of private data is removed in body application.It not only can ensure the safety of private data, while can be with
Meet the specified synchronization using inner part resource data, shared demand by way of synchronizing non-private data.Alternatively, terminal
A subsynchronous, shared procedure can be directly terminated, to be further ensured that the safety of the resource data of specified application.
It should be noted that authentication procedures, it can be by way of encryption resource data or setting access authority
It realizes, for example, carry out the encryption of resource data, access authority by modes such as password (password)/fingerprint/verbal instructions
It can then be realized by input account and with the modes such as the matched password of account, it is not limited here.
The embodiment of the present invention provides a kind of resource shared device 20, as shown in fig. 6, the device 20 can be used for executing such as figure
2 include: to any a set of method flow shown in fig. 5, the device 20
Detection module 21, for detecting whether specified application meets the synchronous prerequisite of resource data, specified application is deposited
In corresponding main application and application of attending to anything else.
It should be noted that prerequisite include at least it is main application and/or attend to anything else using receive specified type data,
It has been turned on for triggering main application and attend to anything else using carrying out the synchronous switch of resource data, and currently reaches and carry out data and synchronize
One of preset time.
Synchronization module 22, for synchronizing main application after detection module 21 detects that specified application meets prerequisite
The resource data of resource data and application of attending to anything else.
Access modules 23, for by it is main application with attend to anything else application access by synchronization module 22 synchronize it is obtained identical
Resource data.
In an implementation of the embodiment of the present invention, synchronization module 22 is specifically used for:
The access path of main application is changed to attend to anything else the access path of application, and by copy module 24 by main application
Resource data is copied to the first storage region, the first storage region be attend to anything else application resource data storage location;And pass through
Removing module 25 deletes the resource data of main application in the second storage region, the resource data applied based on the second storage region
Storage location;
Alternatively,
The access path that will be applied based on the change of the access path of application of attending to anything else, and will be attended to anything else application by copying module 24
Resource data be copied to the second storage region;And the resource for application of attending to anything else in the first storage region is deleted by removing module 25
Data;
Alternatively,
The access path of the access path of main application and application of attending to anything else is changed to specified access path, and passes through copy mould
The resource data of main application and the resource data for application of attending to anything else are copied to the corresponding file of specified access path by block 24;And pass through
Removing module 25 deletes the resource of main application in the resource data and the second storage region for application of attending to anything else in the first storage region
Data.
In an implementation of the embodiment of the present invention, device further include:
Determining module 26, in all applications for installing at the terminal, it is specified that determining, which has the application for application of attending to anything else,
Using.
In an implementation of the embodiment of the present invention, synchronization module 22 is specifically used for:
If there are private datas in the resource data of main application or the resource data for application of attending to anything else, synchronizes main application and divide
The resource data in addition to private data in body application, and after the authentication that user passes through private data, synchronous privacy
Data.
Resource share method and device provided by the present application are compared in the prior art by other external storage equipments
The resource data of main application (or attending to anything else application) is copied into the storage equipment, later by the resource data in the storage equipment
It is transferred to application of attending to anything else (or main application), to realize data sharing, the application can meet resource detecting specified application
After the prerequisite that data synchronize, the resource data of main application and application of attending to anything else is synchronized, and passes through main application and attends to anything else using visit
Identical resource data is asked, to realize data sharing.It can be seen that using aforesaid way without external storage equipment, and
It is to keep main application identical as the resource data for application of attending to anything else in such a way that data are synchronous, later in main application and application of attending to anything else
When accessing identical resource data, it is also achieved that the shared of resource data.
The embodiment of the present invention provides a kind of terminal 30, which can be used for executing as shown in Figures 2 to 5 any one
Cover method flow.As shown in fig. 6, the terminal 30 includes at least: transceiver 31 and processor 32.
Wherein, processor 32, for synchronizing master after detecting that specified application meets the synchronous prerequisite of resource data
The resource data of the resource data of application and application of attending to anything else passes through main application number of resources identical with application access of attending to anything else later
According to.It applies the data for receiving specified type it should be noted that prerequisite includes at least main application and/or attends to anything else, opened
Employ in triggering main application and attend to anything else using carrying out the synchronous switch of resource data, and currently reach carry out data synchronize it is pre-
If one of time.
Processor 32, the access path for the application that is also used to be changed to the access path of main application to attend to anything else, and by main application
Resource data be copied to the first storage region, the first storage region be attend to anything else application resource data storage location;It deletes
The resource data of main application in second storage region, the storage location for the resource data applied based on the second storage region;
Alternatively,
The access path that will be applied based on the change of the access path of application of attending to anything else, and the resource data for application of attending to anything else is copied
To the second storage region;Delete the resource data for application of attending to anything else in the first storage region;
Alternatively,
The access path of the access path of main application and application of attending to anything else is changed to specified access path, and by main application
Resource data and the resource data for application of attending to anything else are copied to the corresponding file of specified access path;It deletes in the first storage region and divides
The resource data of main application in the resource data of body application and the second storage region.
Before whether the specified application of detection meets the synchronous prerequisite of resource data, which is also used to
In all applications installed in terminal, determining has the application for application of attending to anything else for specified application.
The processor 32, is specifically used for:
If there are private datas in the resource data of main application or the resource data for application of attending to anything else, synchronizes main application and divide
The resource data in addition to private data in body application, and after the authentication that user passes through private data, synchronous privacy
Data.
In embodiments of the present invention, terminal 30 can also include memory 33 and bus 34, wherein bus 34 can be used for
Connect transceiver 31, processor 32 and memory 33, with ensure in transceiver 31, processor 32 and memory 33 between any two into
Row communication;Memory 33 can be used for storing the data of terminal generation, and be set by what transceiver 31 received from other
Standby data.
Terminal provided by the present application, be compared in the prior art by other external storage equipments by it is main application (or
Attend to anything else application) resource data copy to the storage equipment, later the resource data in the storage equipment is transferred to attend to anything else and be answered
With (or main application), to realize data sharing, the application can meet the pre- of resource data synchronization detecting specified apply
After setting condition, the resource data of main application and application of attending to anything else is synchronized, and pass through main application resource identical with application access of attending to anything else
Data, to realize data sharing.It can be seen that using aforesaid way without external storage equipment, but it is same by data
The mode of step keeps main application identical as the resource data for application of attending to anything else, later in main application money identical with application access of attending to anything else
When source data, it is also achieved that the shared of resource data.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for equipment reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (English: Read-Only Memory, ROM) or random access memory (English: Random
Access Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (8)
1. a kind of resource share method, which is characterized in that the described method includes:
Whether the specified application of detection meets the synchronous prerequisite of resource data, the specified application there are corresponding main application and
Attend to anything else application;
After the specified application meets the prerequisite, synchronize the main application resource data and the application of attending to anything else
Resource data;Wherein, it specifically includes: the access path of the main application is changed to the access path of the application of attending to anything else, and
The resource data of the main application is copied to the first storage region, first storage region is the resource of the application of attending to anything else
The storage location of data;
The resource data of main application described in the second storage region is deleted, second storage region is the resource of the main application
The storage location of data;
Alternatively,
The access path of the application of attending to anything else is changed to the access path of the main application, and by the resource of the application of attending to anything else
Data copy is to second storage region;
Delete the resource data for application of attending to anything else described in first storage region;
Alternatively,
The access path of the access path of the main application and the application of attending to anything else is changed to specified access path, and will be described
The resource data of main application and the resource data of the application of attending to anything else are copied to the corresponding file of the specified access path;
Delete application of attending to anything else described in first storage region resource data and second storage region described in it is main
The resource data of application;
Pass through identical with the application access of the attending to anything else resource data of the main application.
2. the method according to claim 1, wherein the prerequisite include at least it is described it is main application and/or
It is described to attend to anything else using receiving the data of specified type, have been turned on and attend to anything else with described using being provided for triggering the main application
The synchronous switch of source data, and currently reach and carry out synchronous one of the preset time of data.
3. method as claimed in any of claims 1 to 2, which is characterized in that whether specify application in the detection
Before meeting the synchronous prerequisite of resource data, the method also includes:
In all applications installed at the terminal, it is the specified application that determining, which has the application for application of attending to anything else,.
4. method as claimed in any of claims 1 to 2, which is characterized in that the money for synchronizing the main application
The resource data of source data and the application of attending to anything else, specifically includes:
If in the resource data of the main application or the resource data of the application of attending to anything else, there are private datas, synchronize the master
Using with the resource data in addition to the private data in the application of attending to anything else, and in user by the private data
After authentication, the private data is synchronized.
5. a kind of resource shared device, which is characterized in that described device includes:
Detection module, for detecting whether specified application meets the synchronous prerequisite of resource data, the specified application exists
Corresponding main application and application of attending to anything else;
Synchronization module, it is described for synchronizing after the detection module detects that the specified application meets the prerequisite
The resource data of the resource data of main application and the application of attending to anything else;The synchronization module, is specifically used for: by the main application
Access path is changed to the access path of the application of attending to anything else, and is copied the resource data of the main application by copy module
To the first storage region, first storage region is the storage location of the resource data of the application of attending to anything else;And pass through deletion
Module deletes the resource data of main application described in the second storage region, and second storage region is the resource of the main application
The storage location of data;
Alternatively,
The access path of the application of attending to anything else is changed to the access path of the main application, and by the copy module by institute
The resource data for stating application of attending to anything else is copied to second storage region;And first storage is deleted by the removing module
Attend to anything else described in region the resource data of application;
Alternatively,
The access path of the access path of the main application and the application of attending to anything else is changed to specified access path, and passes through institute
It states copy module and the resource data of the resource data of the main application and the application of attending to anything else is copied to the specified access road
The corresponding file of diameter;And the resource data for application of attending to anything else described in first storage region is deleted by the removing module,
And the resource data of main application described in second storage region;
Access modules, for synchronous obtained by the synchronization module by the main application and the application access of attending to anything else
Identical resource data.
6. device according to claim 5, which is characterized in that the prerequisite include at least it is described it is main application and/or
It is described to attend to anything else using receiving the data of specified type, have been turned on and attend to anything else with described using being provided for triggering the main application
The synchronous switch of source data, and currently reach and carry out synchronous one of the preset time of data.
7. the device according to any one of claim 5 to 6, which is characterized in that described device further include:
Determining module, in all applications for installing at the terminal, it is described specified answering that determining, which has the application for application of attending to anything else,
With.
8. the device according to any one of claim 5 to 6, which is characterized in that the synchronization module is specifically used for:
If in the resource data of the main application or the resource data of the application of attending to anything else, there are private datas, synchronize the master
Using with the resource data in addition to the private data in the application of attending to anything else, and in user by the private data
After authentication, the private data is synchronized.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611044592.2A CN106406986B (en) | 2016-11-24 | 2016-11-24 | A kind of resource share method and device |
PCT/CN2016/112760 WO2018094809A1 (en) | 2016-11-24 | 2016-12-28 | Resource sharing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611044592.2A CN106406986B (en) | 2016-11-24 | 2016-11-24 | A kind of resource share method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106406986A CN106406986A (en) | 2017-02-15 |
CN106406986B true CN106406986B (en) | 2019-11-12 |
Family
ID=58081939
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611044592.2A Active CN106406986B (en) | 2016-11-24 | 2016-11-24 | A kind of resource share method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106406986B (en) |
WO (1) | WO2018094809A1 (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109271247A (en) * | 2017-07-12 | 2019-01-25 | 珠海市魅族科技有限公司 | Memory Optimize Method, device, computer installation and storage medium |
CN108228277B (en) * | 2017-12-28 | 2022-04-29 | 北京奇虎科技有限公司 | Method and device for entering application program |
CN108197273B (en) * | 2018-01-08 | 2022-04-22 | 青岛海信移动通信技术股份有限公司 | Method and device for multi-user data synchronization |
CN108287765A (en) * | 2018-01-24 | 2018-07-17 | 青岛海信移动通信技术股份有限公司 | Application data sharing method and terminal |
CN108563516A (en) * | 2018-03-29 | 2018-09-21 | 广东欧珀移动通信有限公司 | Using data anti-lost method and device, storage medium, electronic equipment |
CN109032686B (en) * | 2018-06-07 | 2021-10-22 | 北京小米移动软件有限公司 | Data processing method and device |
CN110851823B (en) * | 2019-11-12 | 2023-03-10 | 腾讯科技(深圳)有限公司 | Data access method, device, terminal and storage medium |
CN112825072B (en) * | 2019-11-21 | 2023-02-17 | 青岛海信移动通信技术股份有限公司 | Communication terminal and data sharing method |
CN111427709B (en) * | 2020-03-30 | 2023-07-21 | 努比亚技术有限公司 | Application program splitting control method, device and computer readable storage medium |
CN112464208B (en) * | 2020-11-25 | 2023-05-12 | 深圳市纬旭信息科技服务有限公司 | File access method, mobile terminal and computer readable storage medium |
CN116027881A (en) * | 2021-10-25 | 2023-04-28 | 中兴通讯股份有限公司 | White list management and control method, device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1171581A (en) * | 1996-06-25 | 1998-01-28 | 松下电器产业株式会社 | System for storing and playing multimedia application adding variety of services specific thereto |
CN104885055A (en) * | 2014-03-19 | 2015-09-02 | 华为终端有限公司 | Method and device for application data synchronization |
WO2015172507A1 (en) * | 2014-05-12 | 2015-11-19 | 中兴通讯股份有限公司 | Method, device and mobile terminal for starting applications |
CN105224322A (en) * | 2015-09-25 | 2016-01-06 | 维沃移动通信有限公司 | A kind of attend to anything else method and terminal of application program |
CN106155694A (en) * | 2016-07-28 | 2016-11-23 | 努比亚技术有限公司 | A kind of application and the display packing and device applied of attending to anything else |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7107267B2 (en) * | 2002-01-31 | 2006-09-12 | Sun Microsystems, Inc. | Method, system, program, and data structure for implementing a locking mechanism for a shared resource |
US9953072B2 (en) * | 2014-12-31 | 2018-04-24 | Vmware, Inc. | Disaster recovery of mobile data center via location-aware cloud caching |
CN105956495B (en) * | 2016-04-15 | 2019-08-02 | 奇酷软件(深圳)有限公司 | Progress control method, operation control system and the mobile terminal of social application program |
-
2016
- 2016-11-24 CN CN201611044592.2A patent/CN106406986B/en active Active
- 2016-12-28 WO PCT/CN2016/112760 patent/WO2018094809A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1171581A (en) * | 1996-06-25 | 1998-01-28 | 松下电器产业株式会社 | System for storing and playing multimedia application adding variety of services specific thereto |
CN104885055A (en) * | 2014-03-19 | 2015-09-02 | 华为终端有限公司 | Method and device for application data synchronization |
WO2015172507A1 (en) * | 2014-05-12 | 2015-11-19 | 中兴通讯股份有限公司 | Method, device and mobile terminal for starting applications |
CN105224322A (en) * | 2015-09-25 | 2016-01-06 | 维沃移动通信有限公司 | A kind of attend to anything else method and terminal of application program |
CN106155694A (en) * | 2016-07-28 | 2016-11-23 | 努比亚技术有限公司 | A kind of application and the display packing and device applied of attending to anything else |
Also Published As
Publication number | Publication date |
---|---|
WO2018094809A1 (en) | 2018-05-31 |
CN106406986A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106406986B (en) | A kind of resource share method and device | |
JP6301534B2 (en) | Virtualization server | |
CN102346740B (en) | A kind of file synchronisation method, electronic equipment and synchronization system | |
US7546353B2 (en) | Managed peer-to-peer applications, systems and methods for distributed data access and storage | |
US7934251B2 (en) | Managed peer-to-peer applications, systems and methods for distributed data access and storage | |
US8793374B2 (en) | Managed peer-to-peer applications, systems and methods for distributed data access and storage | |
US9191443B2 (en) | Managed peer-to-peer applications, systems and methods for distributed data access and storage | |
US7925751B1 (en) | Mechanism for controlled sharing of files in a clustered application environment | |
CN110275723A (en) | Obtain method, apparatus, electronic equipment and the readable medium of resource | |
JP2016518653A (en) | Local server for synchronized online content management system | |
JP2008537255A (en) | System and method for peer-to-peer synchronization of files | |
CN108200155A (en) | The mirror image synchronization method in Docker mirror images warehouse and mirror image synchronization system | |
US20150227605A1 (en) | Information processing terminal, synchronization control method, and computer-readable recording medium | |
CN105978948B (en) | A kind of method and system of cloud service | |
JP2018521405A (en) | Access method and apparatus | |
US9509509B2 (en) | Random identifier generation for offline database | |
WO2023098234A1 (en) | Device connection switching method and apparatus, and electronic device and computer-readable storage medium | |
CN111459749A (en) | Prometous-based private cloud monitoring method and device, computer equipment and storage medium | |
KR20130011130A (en) | Memo synchronization system, mobile system and memo synchronization method for synchronizing memo data | |
CN103257889B (en) | Application program management device and management method for hybrid architecture system | |
CN106503157B (en) | Multi-open application system and data sharing access method and system thereof | |
CN105760456B (en) | A kind of method and apparatus keeping data consistency | |
CN110046510B (en) | Cross-cloud data migration method, device and system | |
CN114880717A (en) | Data archiving method and device | |
CN104270449A (en) | Method and device for achieving time synchronizing among server nodes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |