CN106406986A - Resource sharing method and device - Google Patents

Resource sharing method and device Download PDF

Info

Publication number
CN106406986A
CN106406986A CN201611044592.2A CN201611044592A CN106406986A CN 106406986 A CN106406986 A CN 106406986A CN 201611044592 A CN201611044592 A CN 201611044592A CN 106406986 A CN106406986 A CN 106406986A
Authority
CN
China
Prior art keywords
application
anything
resource data
data
attending
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.)
Granted
Application number
CN201611044592.2A
Other languages
Chinese (zh)
Other versions
CN106406986B (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201611044592.2A priority Critical patent/CN106406986B/en
Priority to PCT/CN2016/112760 priority patent/WO2018094809A1/en
Publication of CN106406986A publication Critical patent/CN106406986A/en
Application granted granted Critical
Publication of CN106406986B publication Critical patent/CN106406986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/468Specific access rights for resources, e.g. using capability register
    • 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/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a resource sharing method and device, relates to the technical field of application double-opening, and aims at realizing the data sharing between primary applications and secondary applications in double-opened applications without the help of other external storage devices. The method comprises the following steps of: detecting whether an appointed application satisfies a preset condition of resource data synchronization or not, wherein the appointed application comprises a primary application and a corresponding secondary application; if the appointed applications satisfies the preset condition, synchronizing the resource data of the primary application and the resource data of the secondary application; and accessing to the same resource data through the primary application and the secondary application. The method and device disclosed by the invention are suitable for the data sharing process of double-opened applications.

Description

A kind of resource share method and device
Technical field
The present invention relates to application is double opens technical field, more particularly, to a kind of resource share method and device.
Background technology
Double the opening of application refers to run at least two identical application programs in same terminal simultaneously, opens skill using application is double Art can be realized same application and can open at least two processes simultaneously, and all processes being opened are run simultaneously.This Sample just can meet the demand that same user or different user start multiple same application by multiple accounts, is 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, when the icon of main application is clicked, main Apply corresponding application program to be activated, run originating process;And when the icon of application of attending to anything else is clicked, can run different from source The process of process, and independently carry out.Additionally, double main applications opening application and the corresponding resource data of application of attending to anything else are also mutual Independent, i.e. main application all can only use itself corresponding resource data with application of attending to anything else.
During user is actually used, in order to easy to operate it is likely that needing the main money applied and attend to anything else between application Source data is shared.But due to main application with attend to anything else application corresponding resource data separate, therefore, user generally require by Other external storage equipments, the corresponding resource data of main application needed for user is copied on external storage equipment, afterwards will Resource data needed for user in external storage equipment is copied to attend to anything else applies the storage location of corresponding resource data, or adopts Apply corresponding resource data to be copied to the main storage location applying corresponding resource data in a like fashion by attending to anything else, thus Realize the resource-sharing of main application and application of attending to anything else.As can be seen here, using above-mentioned implementation, not only need external by other Storage device realizes resource-sharing process jointly, and when user needs shared mass data in addition it is also necessary to user expends in a large number Time completes the frequent copy of same data, is not easy to user operation.
Content of the invention
The application provides a kind of resource share method and device, can be in the not situation by other external storage equipments Under, realization is double to open the main data sharing applied and attend to anything else between application in application.
For reaching above-mentioned purpose, 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, methods described includes:
Detection specifies whether application meets the synchronous prerequisite of resource data, and described specified application has corresponding master should With with application of attending to anything else;
After described specified application meets described prerequisite, the resource data of synchronous described main application is with described attend to anything else should Resource data;
Identical resource data is accessed with described application of attending to anything else by described main application.
Second aspect, the present invention provides a kind of resource shared device, and described device includes:
Detection module, for detecting whether specified application meets the synchronous prerequisite of resource data, described specified application Exist and corresponding main apply and attend to anything else application;
Synchronization module, for detecting after described specified application meets described prerequisite in described detection module, synchronous The resource data of described main application and the resource data of described application of attending to anything else;
Access modules, for being accessed through described synchronization module synchronization gained with described application of attending to anything else by described main application The identical resource data arriving.
Resource share method and device that the application provides, are compared in prior art by other external storage equipments The resource data of main application (or attending to anything else application) is copied to this storage device, afterwards by the resource data in this storage device It is transferred to application (or main application) of attending to anything else, to realize data sharing, the application can meet resource specified application is detected After the prerequisite of data syn-chronization, the resource data of synchronous main application and application of attending to anything else, and by main application and application visit of attending to anything else Ask identical resource data, to realize data sharing.As can be seen here, using aforesaid way without external storage equipment, and It is by way of data syn-chronization, makes main application identical with the resource data of application of attending to anything else, afterwards in main application and application of attending to anything else When accessing identical resource data, also it is achieved that the shared of resource data.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below by use required in embodiment Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, can also be obtained other attached according to these accompanying drawings 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 kind resource share method flow chart provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of resource shared device provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is all other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
The embodiment of the present invention can be used for a kind of terminal, this terminal at least exists one and has answering of application double opening function With, and this application has currently had been started up main application and at least one application of attending to anything else.Main application and each of same application are attended to anything else Apply corresponding memory area separate, as shown in figure 1, process a operates in the A of space, process b operates in space B, enters Journey a and process b are two processes of same application.In Data subregion (data partition), it is in two processes of different spaces Corresponding memory area is separate.
If being currently needed for sharing the file X.jpg under the A of space to space B, that is, the process of space B can access X.jpg File, then the application a under the A of space needs to be copied to answering of application a by attempting shared file X.jpg from data/media/A With under catalogue data/user/A/application_a.Application a passes through Content Provider (English afterwards:content Provider), i.e. the interface of the data sharing of application program, will be copied to being shared under the application catalogue of application a File X.jpg is exposed to other processes, so that process b under space B is passed through content provider request and accessed application a Application catalogue under be exposed to the content of other processes, 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 the method includes:
Step 101, detection specify whether application meets the synchronous prerequisite of resource data.
Wherein it is intended that application exists and corresponding main applies and attend to anything else application.
It should be noted that prerequisite at least include main apply and/or attend to anything else application receive specified type data, Have been turned on carrying out the synchronous switch of resource data for triggering main application with application of attending to anything else, and currently reach and carry out data syn-chronization One of Preset Time.Wherein it is intended that type can be species, form of data etc., such as it is intended that type can be wrapped Include:Data is picture/mb-type, or sound-type;Carry out synchronous the opening of resource data for triggering main application with application of attending to anything else Close, be specifically as follows the switch that data syn-chronization button etc. is capable of log-on data synchronizing function, such as, opening this switch can To trigger the data syn-chronization specifying application, close this switch and then continue to keep each application under same application (to include main application With application of attending to anything else) process of current separate storage and access;Preset Time can for the triggering synchronizing process that pre-sets when Between, such as, pre-set at daily 1 point and carry out data syn-chronization, then whenever the time reaching at 1 point, will automatically trigger synchronous mistake Journey.
Step 102, after specified application meets prerequisite, the resource data of synchronous main application and the resource of application of attending to anything else Data.
In embodiments of the present invention, what resource data referred to is exactly the data including the X.jpg file shown in include Fig. 1.By In main apply and attend to anything else to quote can produce different resource datas in running, and these resource datas storage on do not deposit Occuring simultaneously, be separate, therefore, in order to realize resource-sharing, then needing to realize the money of main application and application of attending to anything else The synchronization of source data, it is possible to realize specifying the resource-sharing of application so after execution step 103, and without external Storage device is as the transit node of data.
Step 103, by main application with attend to anything else application access identical resource data.
The resource share method that the application provides, is compared in prior art and answers main by other external storage equipments Copy to this storage device with the resource data of (or attending to anything else application), afterwards the resource data in this storage device is transferred to Attend to anything else application (or main application), to realize data sharing, the application can detect specified application meet resource data with After the prerequisite of step, the resource data of synchronous main application and application of attending to anything else, and identical with application access of attending to anything else by main application Resource data, to realize data sharing.As can be seen here, using aforesaid way without external storage equipment, but pass through The mode of data syn-chronization, makes main application identical with the resource data of application of attending to anything else, accesses phase in main application with application of attending to anything else afterwards With resource data when, be also achieved that the shared of resource data.
After data syn-chronization, for the shared space in storing process of save resources data, in the embodiment of the present invention An implementation in, make main application identical with the access path of application of attending to anything else, thus avoiding repeating to store many points of identicals 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 is after specified application meets prerequisite, the resource data of synchronous main application and the number of resources of application of attending to anything else According to, step 1021 and step 1022 can be implemented as, or step 1023 and step 1024, or step 1025 and step 1026:
Step 1021, the access path of main application is changed to the access path of application of attending to anything else, and the resource by main application Data copy is to the first memory area.
Wherein, the first memory area be attend to anything else application resource data storage location.
The resource data of main application in step 1022, deletion the second memory area.
Wherein, the storage location of the resource data applied based on the second memory area.
By the resource data of main application is copied to the storage location of the resource data of application of attending to anything else, making to attend to anything else, it is right to apply Include the resource data of main application and the resource data of itself in the first memory area answered, make afterwards main apply and attends to anything else answer With all accessing the first memory area of application of attending to anything else, also it is achieved that data sharing.And, the resource data in view of main application It has been copied to the first memory area, and in order to reduce the memory space shared by resource data, in embodiments of the present invention, also The resource data that can complete to copy by main application is deleted from the second memory area.So both will not hinder main application and Application of attending to anything else carries out the access of resource data, meanwhile, the occurrence of decreasing redundant data and take excessive memory space.
Step 1023, by the access path of application based on the change of the access path of application of attending to anything else, and the money by application of attending to anything else Source data is copied to the second memory area.
Step 1024, delete the resource data of application of attending to anything else in the first memory area.
Similar with the technical scheme that above-mentioned steps 1021 and step 1022 are realized, it is by the resource of application of attending to anything else here The storage location of the data copy extremely resource data of main application, and the money of the application of attending to anything else of copy in the first memory area, will be completed Source data is deleted, and the process of implementing may be referred to the technical scheme that above-mentioned steps 1021 and step 1022 are realized, and here is not Repeat.
Step 1025, by the access path of the access path of main application and application of attending to anything else be changed to specify access path, and The resource data of the resource data of main application and application of attending to anything else is copied to the corresponding file of specified access path.
Step 1026, delete the resource data of application of attending to anything else in the first memory area, and main in the second memory area should Resource data.
Except above two copies scheme, the main resource data applying and attend to anything else application can also be copied to respectively same File, and using the access path of this document as the main access path applied with application of attending to anything else.Copy scheme phase with above two With, in order to save memory space, after the copy completing resource data, can be by the first memory area and the second memory area Resource data delete.
It should be noted that identical may be there is with the resource data of application of attending to anything else in the resource data in view of main application Content, in order to reduce the wasting of resources caused by data redundancy, the main resource data applying and attend to anything else application is being stored jointly To the same space memory area when, need duplicate removal process is carried out to the main resource data applying and attend to anything else application.
As can be seen here, above-mentioned three kinds of implementations, are all the access path by the main application of unification and application of attending to anything else, with reality Existing resource data is shared.And after completing resource data synchronization, by deleting the first memory area and/or the second memory area Inside completing the mode of the resource data of copy, effectively having reduced the occupancy of memory space, thus saving a large amount of storage resources.
In view of may be provided with multiple applications in terminal, and not each application can be proposed using the application Technical scheme, therefore, in an implementation of the embodiment of the present invention, needs first all applications installed in terminal to be carried out Screening, and to the application synchronization and the data sharing that meet specified application conditions completing after screening.Therefore, in such as Fig. 2 or Fig. 3 On the basis of shown implementation, it is also implemented as implementation as shown in Figure 4 taking Fig. 2 as a example.Wherein, in execution Before step 101 detection specifies application whether to meet the synchronous prerequisite of resource data, can also carry out step 104:
In step 104, all applications installed in terminal, determine that the application with application of attending to anything else is to specify application.
In embodiments of the present invention, will can be had in all applications mounted in terminal point by the form of list The specified application of body application is arranged, so that the application having application double opening function for those carries out data sharing.Need Illustrate, except the mode of above-mentioned list, can also be owned by being marked to application or other Collator Modes Specify the information of application, for determining the mode specifying application, will not be described here.
In order to ensure the safety of private data, in an implementation of the embodiment of the present invention, in resource data When there is private data, if desired carry out data sharing, then need the identity of first certification user, and in authentication by rear Can this private data synchronous, shared.Therefore, on the basis of implementation as shown in Figure 2 or Figure 3, also may be used taking Fig. 2 as a example To be embodied as implementation as shown in Figure 5.Wherein, step 102 is after specified application meets prerequisite, synchronous main application Resource data and the resource data of application of attending to anything else, can be implemented as step 1027:
If there is private data in the resource data of the resource data of the main application of step 1027 or application of attending to anything else, synchronous Main application and the resource data in addition to private data attended to anything else in application, and the authentication by private data in user Afterwards, synchronous private data.
As can be seen here, if user does not pass through authentication, then above-mentioned synchronizing process can be only limitted to main application and divide Body application in except the unexpected resource data of private data.The safety of private data so not only can be ensured, simultaneously permissible Synchronous, the shared demand specifying application interior part resource data is met by way of synchronous non-private data.Or, terminal This subsynchronous, shared procedure can directly be terminated, thus being further ensured that the safety of the resource data specifying application.
It should be noted that authentication procedures, can be by way of encrypting resource data or setting access rights To realize, such as, to carry out the encryption of resource data, access rights by modes such as password (password)/fingerprint/verbal instructions Then can be realized by the mode such as input account and the password mating with account, here does not limit.
The embodiment of the present invention provides a kind of resource shared device 20, as shown in fig. 6, this device 20 can be used for execution as schemed Arbitrarily a set of method flow shown in 2 to Fig. 5, this device 20 includes:
Detection module 21, for detecting whether specified application meets the synchronous prerequisite of resource data it is intended that application is deposited Main apply and attend to anything else application corresponding.
It should be noted that prerequisite at least include main apply and/or attend to anything else application receive specified type data, Have been turned on carrying out the synchronous switch of resource data for triggering main application with application of attending to anything else, and currently reach and carry out data syn-chronization One of Preset Time.
Synchronization module 22, for detecting after specified application meets prerequisite in detection module 21, synchronous main application The resource data of resource data and application of attending to anything else.
Access modules 23 are identical obtained by synchronization module 22 synchronization for being accessed by main application and application of attending to anything else Resource data.
In an implementation of the embodiment of the present invention, synchronization module 22, specifically for:
The access path of main application is changed to the access path of application of attending to anything else, and by copying module 24 by main application Resource data is copied to the first memory area, the first memory area 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 memory area, the resource data of application based on the second memory area Storage location;
Or,
By the access path of application 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 memory area;And the resource of application of attending to anything else in the first memory area is deleted by removing module 25 Data;
Or,
The access path of the access path of main application and application of attending to anything else is changed to specify access path, and by copying mould The resource data of the resource data of main application and application of attending to anything else is copied to the corresponding file of specified access path by block 24;And pass through Removing module 25 deletes the resource data of application of attending to anything else in the first memory area, and in the second memory area main application resource Data.
In an implementation of the embodiment of the present invention, device also includes:
Determining module 26, in all applications of installation in terminal, determining that the application with application of attending to anything else is specified Application.
In an implementation of the embodiment of the present invention, synchronization module 22, specifically for:
If there is private data in the resource data of the resource data of main application or application of attending to anything else, synchronization is main to apply and divides The resource data in addition to private data in body application, and in user after the authentication of private data, synchronous privacy Data.
Resource share method and device that the application provides, are compared in prior art by other external storage equipments The resource data of main application (or attending to anything else application) is copied to this storage device, afterwards by the resource data in this storage device It is transferred to application (or main application) of attending to anything else, to realize data sharing, the application can meet resource specified application is detected After the prerequisite of data syn-chronization, the resource data of synchronous main application and application of attending to anything else, and by main application and application visit of attending to anything else Ask identical resource data, to realize data sharing.As can be seen here, using aforesaid way without external storage equipment, and It is by way of data syn-chronization, makes main application identical with the resource data of application of attending to anything else, afterwards in main application and application of attending to anything else When accessing identical resource data, also it is achieved that the shared of resource data.
The embodiment of the present invention provides a kind of terminal 30, and it is any one that this terminal 30 can be used for executing as shown in Figures 2 to 5 Set method flow.As shown in fig. 6, this terminal 30 at least includes:Transceiver 31 and processor 32.
Wherein, processor 32, for after the prerequisite specifying application to meet resource data synchronization is detected, synchronous main The resource data of application and the resource data of application of attending to anything else, access identical number of resources by main application with application of attending to anything else afterwards According to.It should be noted that prerequisite at least include main apply and/or attend to anything else application receive the data of specified type, open Employ and carry out the synchronous switch of resource data with application of attending to anything else in triggering main application, and currently reach and carry out the pre- of data syn-chronization If one of time.
Processor 32, is additionally operable to for the access path of main application to be changed to the access path of application of attending to anything else, and by main application Resource data be copied to the first memory area, the first memory area be attend to anything else application resource data storage location;Delete The resource data of main application in second memory area, the storage location of the resource data of application based on the second memory area;
Or,
By the access path of application based on the change of the access path of application of attending to anything else, and the resource data copy by application of attending to anything else To the second memory area;Delete the resource data of application of attending to anything else in the first memory area;
Or,
The access path of the access path of main application and application of attending to anything else is changed to specify access path, and by main application The resource data of resource data and application of attending to anything else is copied to the corresponding file of specified access path;Delete in the first memory area and divide Body application resource data, and in the second memory area main application resource data.
Before detection specifies application whether to meet the synchronous prerequisite of resource data, this processor 32, it is additionally operable to In all applications installed in terminal, determine that the application with application of attending to anything else is to specify application.
This processor 32, specifically for:
If there is private data in the resource data of the resource data of main application or application of attending to anything else, synchronization is main to apply and divides The resource data in addition to private data in body application, and in user after the authentication of private data, synchronous privacy Data.
In embodiments of the present invention, terminal 30 can also include memorizer 33 and bus 34, and wherein, bus 34 can be used for Connect transceiver 31, processor 32 and memorizer 33, to guarantee to enter between any two in transceiver 31, processor 32 and memorizer 33 Row communication;Memorizer 33 can be used for storing the data that terminal produces, and is set from other by what transceiver 31 received Standby data.
The application provide terminal, be compared in prior art by other external storage equipments by main application (or Attend to anything else application) resource data copy to this storage device, being transferred to attend to anything else by the resource data in this storage device afterwards should With (or main application), to realize data sharing, the application can specify application to meet the pre- of resource data synchronization detecting After putting condition, the resource data of synchronous main application and application of attending to anything else, and identical resource is accessed with application of attending to anything else by main application Data, to realize data sharing.As can be seen here, using aforesaid way without external storage equipment, but same by data The mode of step, makes main application identical with the resource data of application of attending to anything else, accesses identical money in main application with application of attending to anything else afterwards During source data, also it is achieved that the shared of resource data.
Each embodiment in this specification is all described by the way of going forward one by one, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Real especially for equipment For applying example, because it is substantially similar to embodiment of the method, so describing fairly simple, referring to embodiment of the method in place of correlation Part illustrate.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible Instruct related hardware to complete by computer program, described program can be stored in computer read/write memory medium In, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described 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, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all answer It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of resource share method is it is characterised in that methods described includes:
Detection specifies whether application meets the synchronous prerequisite of resource data, described specified application exist corresponding main application and Attend to anything else application;
After described specified application meets described prerequisite, the synchronously resource data of described main application and described application of attending to anything else Resource data;
Identical resource data is accessed with described application of attending to anything else by described main application.
2. method according to claim 1 it is characterised in that described prerequisite at least include described main application and/or Described application of attending to anything else is received the data of specified type, has been turned on being provided with described application of attending to anything else for triggering described main application The synchronous switch of source data, and currently reach one of Preset Time carrying out data syn-chronization.
3. method according to claim 1 it is characterised in that the resource data of the described main application of described synchronization with described point The resource data of body application, specifically includes:
By the access path of described main application be changed to described in attend to anything else the access path of application, and the number of resources by described main application According to being copied to the first memory area, described first memory area be described in attend to anything else application resource data storage location;
Delete the resource data of main application described in the second memory area, described second memory area is the resource of described main application The storage location of data;
Or,
The access path of described application of attending to anything else is changed to the access path of described main application, and the resource by described application of attending to anything else Data copy is to described second memory area;
Delete the resource data of application of attending to anything else described in described first memory area;
Or,
The access path of the access path of described main application and described application of attending to anything else is changed to specify access path, and will be described The resource data of the resource data of main application and described application of attending to anything else is copied to the corresponding file of described specified access path;
Delete the resource data of application of attending to anything else described in described first memory area, and main described in described second memory area The resource data of application.
4. whether method as claimed in any of claims 1 to 3 is it is characterised in that specify application in described detection Before meeting the synchronous prerequisite of resource data, methods described also includes:
In all applications installed in terminal, determine that the application with application of attending to anything else is described specified application.
5. method as claimed in any of claims 1 to 3 is it is characterised in that the money of the described main application of described synchronization Source data and the resource data of described application of attending to anything else, specifically include:
If there is private data in the resource data of the resource data of described main application or described application of attending to anything else, synchronous described master Application and the described resource data in addition to described private data attended to anything else in application, and pass through described private data in user After authentication, synchronous described private data.
6. a kind of resource shared device is it is characterised in that described device includes:
Detection module, for detecting whether specified application meets the synchronous prerequisite of resource data, described specified application exists Corresponding main apply and attend to anything else application;
Synchronization module, for detecting after described specified application meets described prerequisite in described detection module, synchronous described The resource data of main application and the resource data of described application of attending to anything else;
Access modules, for being accessed obtained by described synchronization module synchronization with described application of attending to anything else by described main application Identical resource data.
7. device according to claim 6 it is characterised in that described prerequisite at least include described main application and/or Described application of attending to anything else is received the data of specified type, has been turned on being provided with described application of attending to anything else for triggering described main application The synchronous switch of source data, and currently reach one of Preset Time carrying out data syn-chronization.
8. device according to claim 6 is it is characterised in that described synchronization module, specifically for:
By the access path of described main application be changed to described in attend to anything else the access path of application, and by copying module by described master The resource data of application is copied to the first memory area, described first memory area be described in attend to anything else the depositing of resource data of application Storage space is put;And the resource data by main application described in removing module deletion the second memory area, described second memory area Storage location for the resource data of described main application;
Or,
The access path of described application of attending to anything else is changed to the access path of described main application, and by described copy module by institute The resource data stating application of attending to anything else is copied to described second memory area;And described first storage is deleted by described removing module Attend to anything else described in region the resource data of application;
Or,
The access path of the access path of described main application and described application of attending to anything else is changed to specify access path, and passes through institute State copy module and the resource data of the resource data of described main application and described application of attending to anything else is copied to described specified access road The corresponding file in footpath;And the resource data by application of attending to anything else described in described removing module described first memory area of deletion, And the resource data of main application described in described second memory area.
9. the device according to any one in claim 6 to 8 is it is characterised in that described device also includes:
Determining module, in all applications of installation in terminal, determining that the application with application of attending to anything else is that described specifying should With.
10. the device according to any one in claim 6 to 8 is it is characterised in that described synchronization module, specifically for:
If there is private data in the resource data of the resource data of described main application or described application of attending to anything else, synchronous described master Application and the described resource data in addition to described private data attended to anything else in application, and pass through described private data in user After authentication, synchronous described private data.
CN201611044592.2A 2016-11-24 2016-11-24 A kind of resource share method and device Active CN106406986B (en)

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 true CN106406986A (en) 2017-02-15
CN106406986B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197273A (en) * 2018-01-08 2018-06-22 青岛海信移动通信技术股份有限公司 The method and device that a kind of multi-user data synchronizes
CN108228277A (en) * 2017-12-28 2018-06-29 北京奇虎科技有限公司 Into the method and device of application program
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
CN109032686A (en) * 2018-06-07 2018-12-18 北京小米移动软件有限公司 Data processing method and device
CN109271247A (en) * 2017-07-12 2019-01-25 珠海市魅族科技有限公司 Memory Optimize Method, device, computer installation and storage medium
CN110851823A (en) * 2019-11-12 2020-02-28 腾讯科技(深圳)有限公司 Data access method, device, terminal and storage medium
CN111427709A (en) * 2020-03-30 2020-07-17 努比亚技术有限公司 Application program body-separating control method and device and computer readable storage medium
CN112825072A (en) * 2019-11-21 2021-05-21 青岛海信移动通信技术股份有限公司 Communication terminal and data sharing method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Cited By (16)

* Cited by examiner, † Cited by third party
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
CN108228277A (en) * 2017-12-28 2018-06-29 北京奇虎科技有限公司 Into the method and device of application program
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
CN108197273A (en) * 2018-01-08 2018-06-22 青岛海信移动通信技术股份有限公司 The method and device that a kind of multi-user data synchronizes
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
WO2019184683A1 (en) * 2018-03-29 2019-10-03 Oppo广东移动通信有限公司 Method and apparatus for preventing loss of application data, storage medium, and electronic device
CN109032686A (en) * 2018-06-07 2018-12-18 北京小米移动软件有限公司 Data processing method and device
CN109032686B (en) * 2018-06-07 2021-10-22 北京小米移动软件有限公司 Data processing method and device
CN110851823A (en) * 2019-11-12 2020-02-28 腾讯科技(深圳)有限公司 Data access method, device, terminal and storage medium
CN110851823B (en) * 2019-11-12 2023-03-10 腾讯科技(深圳)有限公司 Data access method, device, terminal and storage medium
CN112825072A (en) * 2019-11-21 2021-05-21 青岛海信移动通信技术股份有限公司 Communication terminal and data sharing method
CN112825072B (en) * 2019-11-21 2023-02-17 青岛海信移动通信技术股份有限公司 Communication terminal and data sharing method
CN111427709A (en) * 2020-03-30 2020-07-17 努比亚技术有限公司 Application program body-separating control method and device and computer readable storage medium
CN111427709B (en) * 2020-03-30 2023-07-21 努比亚技术有限公司 Application program splitting control method, device and computer readable storage medium

Also Published As

Publication number Publication date
WO2018094809A1 (en) 2018-05-31
CN106406986B (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN106406986A (en) Resource sharing method and device
AU2015374078B2 (en) Systems and methods for automatically applying firewall policies within data center applications
CN102346740B (en) A kind of file synchronisation method, electronic equipment and synchronization system
US7925751B1 (en) Mechanism for controlled sharing of files in a clustered application environment
CN106569738B (en) A kind of method and device for deleting cascade snapshot
JP6869193B2 (en) Access method and equipment
WO2017128992A1 (en) Method, device and system for migrating physical machine data to cloud
CN104268479B (en) A kind of method of text maninulation isolation, device and mobile terminal
CN104391695B (en) A kind of method and its device that control is synchronized by external equipment
US11693591B2 (en) Multi cloud data framework for secure data access and portability
CN102611745A (en) On-line file moving method, device and system
US9317520B2 (en) State scope data file sharing
CN106844012A (en) A kind of method and system of unshared storage dynamic migration virtual machine
CN111835820A (en) System and method for realizing cloud management
CN104517067B (en) Access the method, apparatus and system of data
CN112887330B (en) Device and method for realizing network ACL isolation floating IP
CN104753852A (en) Virtualization platform and security protection method and device
CN112035062B (en) Migration method of local storage of cloud computing, computer equipment and storage medium
CN110046510B (en) Cross-cloud data migration method, device and system
CN105279454B (en) secure synchronization device and method
CN115604103A (en) Configuration method and device of cloud computing system, storage medium and electronic equipment
CN104023081B (en) The data processing method and IP hard disks of net association IP hard disks
CN114338124A (en) Management method and system of cloud password computing service, electronic device and storage medium
CN104270449A (en) Method and device for achieving time synchronizing among server nodes
CN105354148B (en) A kind of data processing method and relevant apparatus

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