WO2017016068A1 - 一种多域间切换时的应用同步方法及用户终端 - Google Patents
一种多域间切换时的应用同步方法及用户终端 Download PDFInfo
- Publication number
- WO2017016068A1 WO2017016068A1 PCT/CN2015/091341 CN2015091341W WO2017016068A1 WO 2017016068 A1 WO2017016068 A1 WO 2017016068A1 CN 2015091341 W CN2015091341 W CN 2015091341W WO 2017016068 A1 WO2017016068 A1 WO 2017016068A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- private
- shared
- domain
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
Definitions
- the present invention relates to the field of intelligent terminal technologies, and in particular, to an application synchronization method and a user terminal when switching between multiple domains.
- a user terminal may include multiple domains supported by an operating platform (such as an operating system Android or iOS or Windows), such as a work domain, an entertainment domain, a living domain, etc., where each domain All resources provided by the operating platform can be used independently, such as CPU operations, memory access, external devices, and the like.
- an operating platform such as an operating system Android or iOS or Windows
- Each domain can provide an operating environment for applications supported by the domain. For example, a work application (such as a mail application) runs in the environment provided by the work domain, and an entertainment application (such as a music application) is provided in an environment provided by the entertainment domain. run.
- the user terminal needs to switch the entertainment domain where the entertainment application is located to the work domain where the work application is located, and the entertainment application running in the entertainment domain is required. Stop, however, sometimes the entertainment application that the user wants to run in the entertainment domain can continue to run when switching to the work domain, for example: music is playing in the entertainment domain, when switching to the work domain, the user wants to be in the work domain The music in the entertainment domain can still be played. It can be seen that how to solve the synchronization of the application when switching between multiple domains is a technical problem to be solved.
- the embodiment of the invention provides an application synchronization method and a user terminal when switching between multiple domains, and can synchronously synchronize applications when switching between multiple domains.
- the first aspect of the embodiment of the present invention discloses an application synchronization method when switching between multiple domains, including:
- the first shared application is included in the application that is currently running in the first domain, and the application currently running in the first domain includes the first shared application and At least one of the first private applications;
- the first shared application is run using the first shared data of the call.
- a second aspect of the embodiment of the present invention discloses a user terminal, including:
- a first determining unit configured to: when detecting that the application currently running in the first domain includes a preset first shared application, where the first domain is currently running, when detecting that the first domain is switched to the second domain
- the application includes at least one of a first shared application and a first private application
- a calling unit configured to: when the first determining unit detects that the application currently running in the first domain includes a preset first shared application, when the first determining unit detects that the first domain is switched from the first domain to the second domain, a first shared data in the shared cache that matches the first shared application;
- a running unit configured to run the first shared application by using the first shared data of the call in the second domain.
- the user terminal when detecting that the device is switched from the first domain to the second domain, may first determine whether the application currently running in the first domain includes a preset first shared application, where the first domain is currently running.
- the application includes at least one of the first shared application and the first private application; if yes, the user terminal can invoke the first shared data stored in the shared cache that matches the first shared application; thus, the user terminal can In the second domain, the first shared application is run with the first shared data invoked. It can be seen that, when the user terminal detects that the current domain is switched to another domain, the user terminal can intelligently synchronize the shared application running in the current domain to another domain, thereby implementing multi-domain switching. When the application is synchronized.
- FIG. 1 is a schematic flowchart of an application synchronization method in multi-domain handover according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of another application synchronization method in multi-domain handover according to an embodiment of the present disclosure
- FIG. 3 is a schematic structural diagram of a user terminal according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
- the embodiment of the invention discloses an application synchronization method and a user terminal when switching between multiple domains, and can synchronously synchronize applications when switching between multiple domains. The details are described below separately.
- the user terminal may include, but is not limited to, a smart phone, a notebook computer, a personal computer (PC), a personal digital assistant (PDA), a mobile internet device (MID), Various types of user terminals such as smart wearable devices (such as smart watches and smart bracelets).
- the operating system of the user terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows Phone 8 operating system, and the like. limited.
- FIG. 1 is a schematic flowchart diagram of an application synchronization method during multi-domain handover according to an embodiment of the present invention. As shown in FIG. 1, the method can include the following steps.
- step S101 When detecting that the first domain is switched to the second domain, determine whether the currently running application in the first domain includes the first shared application that is preset. If yes, go to step S102. If no, end the process.
- the user terminal may include multiple domains supported by an operating platform (such as an operating system Android or iOS or Windows), such as a work domain, an entertainment domain, a living domain, and the like.
- an operating platform such as an operating system Android or iOS or Windows
- Each domain can independently use all the resources provided by the operating platform, such as CPU operations, memory access, external devices, and so on.
- Each domain can provide an operating environment for applications supported by the domain. For example, a work application (such as a mail application) runs in the environment provided by the work domain, and an entertainment application (such as a music application) is provided in an environment provided by the entertainment domain. run.
- the switching of the domain may be triggered in multiple manners. For example, when the user clicks the icon of the target application, the user terminal automatically switches from the current domain to the target domain where the target application is located in the background to implement the target application. Run, for example: the user can select a target domain in the list of domains. In this way, the user terminal will switch the current domain to the target domain.
- the user may set a shared application and a private application for each domain in advance before the application is run, where the shared application is an application that can be run in other domains, and the private application is only in its own domain.
- An application running in a domain is an application running in a domain.
- the user terminal may determine whether the application currently running in the first domain includes a preset first shared application, where the application currently running in the first domain includes the first share. At least one of the application and the first private application, that is, the application currently running in the first domain is the first shared application, or the application currently running in the first domain is the first private application, or the first domain is currently running.
- the application is the first private application and the first shared application.
- the memory is divided in advance, and is mainly divided into three parts: an operating system management area, a shared buffer, and a private buffer area. Further, the operating system management area may also be divided into a shared memory management unit and resident. unit.
- the shared memory management unit is configured to store a preset shared application identifier and a location where the shared data required by the shared application is stored, and the resident unit is configured to manage a page to be accessed by the process during a certain time interval. Resident set.
- the shared buffer is used to store shared data that the shared application matches, and the private buffer is used to store private data that the private application matches.
- the user terminal When the application is run in a certain domain, the user terminal will load the resources required by the running application in the current domain into the cache area, for example, if the shared application is currently running, the user terminal needs the shared application. The shared data is loaded into the shared cache. If the private application is currently running, the user terminal loads the private data required by the private application into the private cache.
- the user terminal when detecting that the application that is currently running in the first domain includes the first shared application that is set in advance, may call the storage in the shared cache area when detecting that the application is switched from the first domain to the second domain.
- the first shared data that matches the first shared application Specifically, the user terminal may query, in the shared memory management unit, the target location in the shared cache area where the first shared data that is currently running, the first shared application matches, and further, the target location in the shared cache area is called and The first shared data that the first shared application matches.
- the user terminal may run the first share in the second domain by using the invoked first shared data. application.
- the method may further include the following steps:
- the user terminal when the first shared application runs, the user terminal can delete the first shared data stored in the shared cache, so that the memory space of the user terminal can be saved, and at the same time, the system running speed can be improved. .
- the user terminal when detecting the switch from the first domain to the second domain, may first determine whether the currently running application in the first domain includes a preset first shared application, where The application currently running by the domain includes at least one of the first shared application and the first private application; if so, the user terminal can invoke the first shared data that is stored in the shared cache and matches the first shared application; thus, The user terminal can then run the first shared application in the second domain with the first shared data that is invoked. It can be seen that, when the user terminal detects that the current domain is switched to another domain, the user terminal can intelligently synchronize the shared application running in the current domain to another domain, thereby implementing multi-domain switching. When the application is synchronized.
- FIG. 2 is a schematic flowchart of another application synchronization method in multi-domain handover according to an embodiment of the present invention. As shown in FIG. 2, the method can include the following steps.
- S201 When detecting that the device is switched from the first domain to the second domain, the user terminal determines whether the application currently running in the first domain includes the first shared application that is set in advance, and if yes, performs steps S202-S203, and if not, performs steps. S204.
- the user terminal invokes the first shared data that is stored in the shared cache and matches the first shared application.
- the user terminal runs the first shared application by using the invoked first shared data in the second domain.
- the user terminal deletes the first private data that is matched by the first private application stored in the private cache.
- the user terminal when the user terminal determines that the application currently running in the first domain does not include the first shared application, that is, the application currently running in the first domain is the first private application, the user terminal may delete and store the The first private data matched by the first private application in the private cache. In this way, the memory space of the user terminal can be saved, and at the same time, the system running speed can be improved.
- the user terminal may further determine whether the currently running application in the first domain includes the preset For a private application, if the application currently running in the first domain further includes a preset first private application, the user terminal may also perform step S204.
- step S205 The user terminal determines whether the second private application that is to be run is included in the application that is to be run in the second domain. If yes, step S206 is performed, and if not, S210 to S211 are performed.
- the user terminal when the user terminal is switched to the second domain, the user terminal may determine whether the application to be run in the second domain includes the second private application that is set in advance, where the application to be run in the second domain includes the first At least one of a shared application and a second private application.
- step S206 The user terminal determines whether the memory space occupied by the second private data required by the second private application is greater than the space of the private buffer area. If yes, step S207 is performed, and if no, step S208 is performed.
- the private data required by the private application occupies a relatively large memory space. Therefore, when the private application is running, the private data required by the private application may occupy more space than the private cache. Therefore, in order to ensure the normal operation of the private application, when the user terminal determines that the second domain application to be run includes the preset second private application, the user terminal may further determine the second private data required by the second private application. Whether the memory space is larger than the space of the private cache.
- the user terminal loads the first part of the private data in the second private data into the private buffer, and loads the second part of the private data in the second private data into the shared buffer.
- the user terminal when the user terminal determines that the second private data required by the second private application occupies a larger space than the private buffer, the user terminal may divide the second private data into two parts: the first part of the private data and the first part.
- the second part of the private data further, the user terminal can load the first part of the private data in the second private data into the private buffer, and load the second part of the private data in the second private data into the shared buffer, wherein
- the sum of the first part of the private data and the second part of the private data is the second private data
- the memory space occupied by the first part of the private data is the space of the private buffer area.
- the default second part of the private data here occupies less space than the shared buffer.
- the user terminal loads the second part of the private data in the second private data into the shared buffer area. If the second part of the private data occupies more space than the shared buffer, the system Will crash, there will be a stuck condition, ie the second private application will not be positive Always running.
- the user terminal loads the second private data into the private buffer.
- the user terminal when the user terminal determines that the second private data required by the second private application occupies less than or equal to the space of the private buffer, the user terminal may load the second private data into the private buffer.
- the user terminal invokes the second private data, and runs the second private application by using the second private data.
- the second private application when the second private application ends or the second domain is switched, the second private application temporarily stores the first partial private data in the private cache and the temporary storage in the shared cache. The two parts of private data are no longer needed.
- the user terminal can delete the first part of the private data stored in the private buffer and the second part of the private data stored in the shared buffer. In this way, the memory space of the user terminal can be saved, and at the same time, the system running speed can be improved.
- the user terminal loads the stored second shared data that is shared by the second shared application into the shared cache.
- the user terminal when the user terminal determines that the application to be run in the second domain does not include the second private application that is set in advance, that is, the application that is to be run in the second domain is the second shared application, the user terminal may Loading the second shared data matched by the stored second shared application into the shared cache.
- the user terminal invokes the second shared data, and runs the second shared application by using the second shared data.
- the user terminal may delete the first private data that is matched by the first private application stored in the private cache when the first application is included in the application that is currently running in the first domain, and further Determining whether the application to be run in the second domain includes a second private application that is preset, and if so, loading the second private data matched by the stored second private application into the private buffer, calling the second private data, and Running the second private application by using the second private data, if not, loading the stored second shared data of the second shared application into the shared cache, calling the second shared data, and running the second share by using the second shared data Application, in this way, when the user terminal performs the domain switching, the shared application in the domain before the handover can be ensured to operate normally, and at the same time, the application in the domain after the handover can also be operated, thereby realizing the operation in one domain. Synchronous operation of multiple applications.
- the following is a device embodiment of the present invention.
- the device embodiment of the present invention is used to run the method in the method embodiment of the present invention.
- only parts related to the embodiment of the present invention are shown.
- FIG. 3 is a schematic structural diagram of a user terminal according to an embodiment of the present invention.
- the user terminal 300 may include: a first determining unit 301, a calling unit 302, and an operating unit 303, where :
- the first determining unit 301 is configured to determine, when the first domain is switched to the second domain, whether the application currently running in the first domain includes the first shared application that is preset, and the application currently running in the first domain includes the first At least one of a shared application and a first private application.
- the user terminal may include multiple domains supported by an operating platform (such as an operating system Android or iOS or Windows), such as a work domain, an entertainment domain, a living domain, and the like.
- an operating platform such as an operating system Android or iOS or Windows
- Each domain can independently use all the resources provided by the operating platform, such as CPU operations, memory access, external devices, and so on.
- Each domain can provide an operating environment for applications supported by the domain. For example, a work application (such as a mail application) runs in the environment provided by the work domain, and an entertainment application (such as a music application) is provided in an environment provided by the entertainment domain. run.
- the switching of the domain may be triggered in multiple manners. For example, when the user clicks the icon of the target application, the user terminal automatically switches from the current domain to the target domain where the target application is located in the background to implement the target application. Run, for example: the user can select a target domain in the list of domains, so that the user terminal will switch the current domain to the target domain.
- the user may set a shared application and a private application for each domain in advance before the application is run, where the shared application is an application that can be run in other domains, and the private application is only in its own domain.
- An application running in a domain is an application running in a domain.
- the first determining unit 301 may determine whether the currently running application in the first domain includes a preset first shared application, where the application currently running in the first domain includes At least one of the first shared application and the first private application, that is, the application currently running in the first domain is the first shared application, or the application currently running in the first domain is the first private application, or the first domain The currently running application is the first private application and the first shared application.
- the calling unit 302 is configured to: when the first determining unit 301 detects that the application currently running in the first domain includes the preset first shared application, when the first determining unit 301 detects the switch from the first domain to the second domain, the calling is stored in the shared cache. The first shared data in the zone that matches the first shared application.
- the memory is divided in advance, and is mainly divided into three parts: an operating system.
- the operating system management area can also be divided into a shared memory management unit and a resident unit.
- the shared memory management unit is configured to store a preset shared application identifier and a location where the shared data required by the shared application is stored, and the resident unit is configured to manage a page to be accessed by the process during a certain time interval. Resident set.
- the shared buffer is used to store shared data that the shared application matches, and the private buffer is used to store private data that the private application matches.
- the user terminal When the application is run in a certain domain, the user terminal will load the resources required by the running application in the current domain into the cache area, for example, if the shared application is currently running, the user terminal needs the shared application. The shared data is loaded into the shared cache. If the private application is currently running, the user terminal loads the private data required by the private application into the private cache.
- the calling unit 302 may call the storage when detecting the switch from the first domain to the second domain.
- the first shared data in the shared cache that matches the first shared application may query, in the shared memory management unit, a target location in the shared cache area where the first shared data that is currently running, the first shared application matches, and further, invoke the target location in the shared cache area.
- the first shared data that matches the first shared application may be query, in the shared memory management unit, a target location in the shared cache area where the first shared data that is currently running, the first shared application matches, and further, invoke the target location in the shared cache area.
- the running unit 303 is configured to run the first shared application by using the invoked first shared data in the second domain.
- the running unit 303 may run the first shared data in the second domain by using the called first shared data.
- a shared application
- FIG. 4 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
- the user terminal shown in FIG. 4 is further optimized based on the user terminal shown in FIG.
- the user terminal shown in FIG. 3 may include: in addition to all the units of the user terminal shown in FIG. 3, the user terminal shown in FIG.
- the first deleting unit 304 is configured to: when the first determining unit 301 determines that the first private application is included in the currently running application of the first domain, delete the first private data that is matched by the first private application stored in the private buffer.
- the first deleting unit 304 may delete the first private data that is matched by the first private application stored in the private buffer. In this way, the memory space of the user terminal can be saved, and at the same time, the system running speed can be improved.
- the second determining unit 305 is configured to determine whether the application to be run in the second domain includes a second private application that is preset, and the application to be executed in the second domain includes at least one of the second shared application and the second private application.
- the second determining unit 305 may determine whether the application to be run in the second domain includes a second private application that is preset, where the second domain is to be operated.
- the application includes at least one of a second shared application and a second private application.
- the loading unit 306 is configured to: when the second determining unit 305 determines that the second domain application to be run includes the second private application, the second private data matched by the stored second private application is loaded into the private buffer. .
- the calling unit 302 is further configured to invoke the second private data.
- the running unit 303 is further configured to run the second private application by using the second private data.
- the foregoing second determining unit 305 is further configured to: after determining that the second private application is included in the application to be run in the second domain, and matching the stored second private application in the loading unit 306 Before the second private data is loaded into the private buffer, it is determined whether the second private data required by the second private application occupies more space than the private buffer.
- the private data required by the private application occupies a relatively large memory space. Therefore, when the private application is running, the private data required by the private application may occupy more space than the private cache.
- the second judging unit 305 may further determine that the second private application needs to be determined when the second judging unit 305 determines that the second domain application to be run includes the pre-set second private application. Whether the second private data occupies more space than the private cache.
- the loading unit 306 is configured to: when the second determining unit 305 determines that the second private data required by the second private application occupies a larger space than the private buffer, and loads the first partial private data in the second private data. Inserting into the private buffer area, and loading the second part of the private data in the second private data into the shared buffer area, wherein the sum of the first part of the private data and the second part of the private data is the second private data, and the first part of the private data The occupied memory space is the space of the private cache area.
- the loading unit 306 may divide the second private data into two parts: the first part of the private data and the second part of the private data. Further, the loading unit 306 may be in the second private data. The first part of the private data is loaded into the private buffer, and the second part of the private data in the second private data is loaded into the shared buffer, wherein the sum of the first part of the private data and the second part of the private data is the second private Data, the first part of the private data occupied by the memory space is the space of the private buffer.
- the default second part of the private data here occupies less space than the shared buffer.
- the loading unit 306 loads the second part of the private data in the second private data into the shared buffer area. If the second part of the private data occupies more space than the shared buffer. The system will crash and there will be a stuck condition, ie the second private application will not function properly.
- the loading unit 306 is further configured to: when the second determining unit 305 determines that the second shared application is included in the second domain to be run, the stored second shared application is matched. The second shared data is loaded into the shared cache.
- the second determining unit 305 determines that the second domain application to be run does not include the second private application that is to be set in advance, that is, the application to be run in the second domain is the second shared application, at this time,
- the loading unit 306 can load the stored second shared data matching the second shared data into the shared buffer.
- the calling unit 302 is further configured to invoke the second shared data.
- the running unit 303 is further configured to run the second shared application by using the second shared data.
- FIG. 5 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
- the user terminal shown in FIG. 5 is further optimized based on the user terminal shown in FIG.
- the user terminal shown in FIG. 3 may include: in addition to all the units of the user terminal shown in FIG. 3, the user terminal shown in FIG.
- the second deleting unit 307 is configured to delete, in the second domain, the first shared data stored in the shared cache when the first shared application runs.
- the second deleting unit 307 can delete the first shared data stored in the shared buffer, so that the memory space of the user terminal can be saved, and at the same time, the system running speed can be improved.
- the first determining unit 301 may first determine whether the currently running application in the first domain includes a preset number. a shared application, wherein the application currently running by the first domain includes at least one of the first shared application and the first private application; if so, the calling unit 302 can invoke the first shared application that is stored in the shared cache. The first shared data; in this way, the running unit 303 can run the first shared application in the second domain with the first shared data that is called. It can be seen that, when detecting that the current domain is switched to another domain, the user terminal can intelligently synchronize the running shared application in the current domain to another domain, thereby implementing the application between multiple inter-domain handovers. Synchronization.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
本发明实施例公开了一种多域间切换时的应用同步方法及用户终端。其中,该方法包括:当检测到从第一域切换到第二域时,判断所述第一域当前运行的应用中是否包括预先设置的第一共享应用,所述第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种;若是,则调用存储在共享缓存区中的与所述第一共享应用匹配的第一共享数据;在所述第二域中,利用所述调用的所述第一共享数据运行所述第一共享应用。实施本发明实施例可以在多域间切换时智能地同步应用。
Description
本发明涉及智能终端技术领域,尤其涉及一种多域间切换时的应用同步方法及用户终端。
通常,用户终端(如智能手机、平板电脑)上可以包括操作平台(如操作系统Android或iOS或Windows等)支持的多个域,如工作域、娱乐域、生活域等,其中,每一个域可以独立使用该操作平台提供的所有资源,例如CPU的运算、内存的访问、外部设备等。每一个域可以为该域所支持的应用提供一个运行环境,比如:工作应用(如邮件应用)在工作域所提供的环境下运行,娱乐应用(如音乐应用)在娱乐域所提供的环境下运行。
然而实践中发现,当用户将当前正在运行的娱乐应用切换到工作应用时,用户终端需要将娱乐应用所在的娱乐域切换到工作应用所在的工作域,在娱乐域中正在运行的娱乐应用就要停止,可是,有时候用户希望在娱乐域中正在运行的娱乐应用在切换到工作域时仍能继续运行,比如:娱乐域中正在播放音乐,当切换到工作域时,用户希望在工作域中仍能继续播放娱乐域中的音乐。可见,如何解决在多域间切换时实现应用的同步是一个亟待解决的技术课题。
发明内容
本发明实施例提供了一种多域间切换时的应用同步方法及用户终端,可以在多域间切换时智能地同步应用。
本发明实施例第一方面公开了一种多域间切换时的应用同步方法,包括:
当检测到从第一域切换到第二域时,判断所述第一域当前运行的应用中是否包括预先设置的第一共享应用,所述第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种;
若是,则调用存储在共享缓存区中的与所述第一共享应用匹配的第一共享
数据;
在所述第二域中,利用所述调用的所述第一共享数据运行所述第一共享应用。
本发明实施例第二方面公开了一种用户终端,包括:
第一判断单元,用于当检测到从第一域切换到第二域时,判断所述第一域当前运行的应用中是否包括预先设置的第一共享应用,所述第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种;
调用单元,用于当所述第一判断单元当检测到从第一域切换到第二域时,判断所述第一域当前运行的应用中包括预先设置的第一共享应用时,调用存储在共享缓存区中的与所述第一共享应用匹配的第一共享数据;
运行单元,用于在所述第二域中,利用所述调用的所述第一共享数据运行所述第一共享应用。
本发明实施例中,当检测到从第一域切换到第二域时,用户终端可以先判断第一域当前运行的应用中是否包括预先设置的第一共享应用,其中,第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种;若是,则用户终端可以调用存储在共享缓存区中的与第一共享应用匹配的第一共享数据;这样,用户终端就可以在第二域中,利用调用的第一共享数据运行第一共享应用。可见,通过本发明实施例,当用户终端检测到当前域被切换到另一个域时,用户终端可以智能地将当前域中正在运行的共享应用同步到另一个域中,从而实现多域间切换时应用的同步。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例公开的一种多域间切换时的应用同步方法的流程示意图;
图2是本发明实施例公开的另一种多域间切换时的应用同步方法的流程示意图;
图3是本发明实施例公开的一种用户终端的结构示意图;
图4是本发明实施例公开的另一种用户终端的结构示意图;
图5是本发明实施例公开的另一种用户终端的结构示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例公开了一种多域间切换时的应用同步方法及用户终端,可以在多域间切换时智能地同步应用。以下分别进行详细说明。
本发明实施例中,用户终端可以包括但不限于智能手机、笔记本电脑、个人计算机(Personal Computer,PC)、个人数字助理(Personal Digital Assistant,PDA)、移动互联网设备(Mobile Internet Device,MID)、智能穿戴设备(如智能手表、智能手环)等各类用户终端。其中,该用户终端的操作系统可包括但不限于Android操作系统、IOS操作系统、Symbian(塞班)操作系统、Black Berry(黑莓)操作系统、Windows Phone8操作系统等等,本发明实施例不做限定。
请参见图1,图1是本发明实施例公开的一种多域间切换时的应用同步方法的流程示意图。如图1所示,该方法可以包括以下步骤。
S101、当检测到从第一域切换到第二域时,判断第一域当前运行的应用中是否包括预先设置的第一共享应用,若是,执行步骤S102、若否,结束本流程。
本发明实施例中,用户终端可以包括操作平台(如操作系统Android或iOS或Windows等)支持的多个域,例如:工作域、娱乐域、生活域等。每一个域可以独立使用该操作平台提供的所有资源,例如CPU的运算、内存的访问、外部设备等。每一个域可以为该域所支持的应用提供一个运行环境,比如:工作应用(如邮件应用)在工作域所提供的环境下运行,娱乐应用(如音乐应用)在娱乐域所提供的环境下运行。
本发明实施例中,可以通过多种方式触发域的切换,比如:用户点击目标应用的图标,用户终端就会在后台自动从当前域切换到目标应用所在的目标域中,以实现目标应用的运行,又比如:用户可以在域的列表中选择一个目标域,
这样,用户终端就会将当前域切换到目标域中。
本发明实施例中,用户可以在应用运行之前,预先为每一个域设置共享应用和私有应用,其中,该共享应用为可以在其他域中运行的应用,该私有应用为只能在自身所在的域中运行的应用。
当检测到从第一域切换到第二域时,用户终端可以判断第一域当前运行的应用中是否包括预先设置的第一共享应用,其中,该第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种,即:第一域当前运行的应用为第一共享应用,或者,第一域当前运行的应用为第一私有应用,或者,第一域当前运行的应用为第一私有应用和第一共享应用。
S102、调用存储在共享缓存区中的与第一共享应用匹配的第一共享数据。
本发明实施例中,预先对内存进行了划分,主要划分为三部分:操作系统管理区、共享缓冲区以及私有缓存区,进一步地,操作系统管理区还可以划分为共享内存管理单元和驻留单元。其中,共享内存管理单元用于存储预先设置的共享应用的标识以及该共享应用所需的共享数据所存储的位置,驻留单元用于管理由在某段时间间隔内,进程要访问的页面构成的驻留集。共享缓冲区用于存储共享应用匹配的共享数据,私有缓冲区用于存储私有应用匹配的私有数据。当在某个域中运行应用时,用户终端将会把当前域中正在运行的应用所需的资源加载进缓存区,比如:若当前正在运行共享应用,则用户终端将该共享应用所需的共享数据加载进共享缓存区,若当前正在运行私有应用,则用户终端将该私有应用所需的私有数据加载进私有缓存区。
本发明实施例中,当检测到从第一域切换到第二域时,用户终端判断第一域当前运行的应用中包括预先设置的第一共享应用时,用户终端可以调用存储在共享缓存区中的与第一共享应用匹配的第一共享数据。具体的,用户终端可以在共享内存管理单元中查询当前正在运行的第一共享应用匹配的第一共享数据所在的共享缓存区中的目标位置,进一步地,在共享缓存区中的目标位置调用与第一共享应用匹配的第一共享数据。
S103、在第二域中,利用调用的第一共享数据运行第一共享应用。
本发明实施例中,用户终端调用存储在共享缓存区中的与第一共享应用匹配的第一共享数据之后,用户终端就可以在第二域中,利用调用的第一共享数据运行第一共享应用。
作为一种可选的实施方式,在步骤S103之后,所述方法还可以包括以下步骤:
在第二域中,当第一共享应用运行结束时,删除存储在共享缓存区中的第一共享数据。
在该实施例中,当第一共享应用运行结束时,用户终端可以删除存储在共享缓存区中的第一共享数据,这样,就可以节省用户终端的内存空间,同时,可以提高系统运行的速率。
在图1所描述的方法流程中,当检测到从第一域切换到第二域时,用户终端可以先判断第一域当前运行的应用中是否包括预先设置的第一共享应用,其中,第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种;若是,则用户终端可以调用存储在共享缓存区中的与第一共享应用匹配的第一共享数据;这样,用户终端就可以在第二域中,利用调用的第一共享数据运行第一共享应用。可见,通过本发明实施例,当用户终端检测到当前域被切换到另一个域时,用户终端可以智能地将当前域中正在运行的共享应用同步到另一个域中,从而实现多域间切换时应用的同步。
请参见图2,图2是本发明实施例公开的另一种多域间切换时的应用同步方法的流程示意图。如图2所示,该方法可以包括以下步骤。
S201、当检测到从第一域切换到第二域时,用户终端判断第一域当前运行的应用中是否包括预先设置的第一共享应用,若是,执行步骤S202~S203,若否,执行步骤S204。
S202、用户终端调用存储在共享缓存区中的与第一共享应用匹配的第一共享数据。
S203、用户终端在第二域中,利用调用的第一共享数据运行第一共享应用。
S204、用户终端删除存储在私有缓存区中的第一私有应用匹配的第一私有数据。
本发明实施例中,当用户终端判断第一域当前运行的应用中不包括预先设置的第一共享应用时,即第一域当前运行的应用为第一私有应用时,用户终端可以删除存储在私有缓存区中的第一私有应用匹配的第一私有数据。这样,就可以节省用户终端的内存空间,同时,可以提高系统运行的速率。
作为一种可选的实施方式,当用户终端判断第一域当前运行的应用中包括预先设置的第一共享应用时,用户终端可以进一步判断第一域当前运行的应用中是否包括预先设置的第一私有应用,若第一域当前运行的应用中还包括预先设置的第一私有应用,则用户终端也可以执行步骤S204。
S205、用户终端判断第二域待运行的应用中是否包括预先设置的第二私有应用,若是,执行步骤S206,若否,执行S210~S211。
本发明实施例中,用户终端在切换到第二域时,用户终端可以判断第二域待运行的应用中是否包括预先设置的第二私有应用,其中,该第二域待运行的应用包括第二共享应用和第二私有应用中的至少一种。
S206、用户终端判断第二私有应用需要的第二私有数据所占内存空间是否大于私有缓存区的空间,若是,执行步骤S207,若否,执行步骤S208。
本发明实施例中,私有应用所需的私有数据所占内存空间一般比较大,因此,在运行私有应用时,就可能出现该私有应用所需的私有数据所占内存空间大于私有缓存区的空间的情况,因此,为了确保私有应用的正常运行,用户终端判断第二域待运行的应用中包括预先设置的第二私有应用时,用户终端可以进一步判断第二私有应用需要的第二私有数据所占内存空间是否大于私有缓存区的空间。
S207、用户终端将第二私有数据中的第一部分私有数据加载进私有缓存区中,并将第二私有数据中的第二部分私有数据加载进共享缓存区中。
本发明实施例中,当用户终端判断第二私有应用需要的第二私有数据所占内存空间大于私有缓存区的空间时,用户终端可以将第二私有数据分成两部分:第一部分私有数据和第二部分私有数据,进一步的,用户终端可以将第二私有数据中的第一部分私有数据加载进私有缓存区中,并将第二私有数据中的第二部分私有数据加载进共享缓存区中,其中,第一部分私有数据与第二部分私有数据的总和为第二私有数据,第一部分私有数据所占的内存空间为私有缓存区的空间。这里默认的第二部分私有数据所占内存空间小于共享缓冲区的剩余空间。
本发明实施例中,用户终端将第二私有数据中的第二部分私有数据加载进共享缓存区中,如果此时第二部分私有数据所占的内存空间大于共享缓冲区的剩余空间时,系统将会崩溃,将会出现卡死的情况,即第二私有应用将不能正
常运行。
S208、用户终端将第二私有数据加载进私有缓存区中。
本发明实施例中,当用户终端判断第二私有应用需要的第二私有数据所占内存空间小于或等于私有缓存区的空间时,用户终端可以将第二私有数据加载进私有缓存区中。
S209、用户终端调用第二私有数据,并利用第二私有数据运行第二私有应用。
作为一种可选的实施方式,当第二私有应用运行结束或第二域被切换时,第二私有应用临时存储在私有缓存区中的第一部分私有数据和临时存储在共享缓存区中的第二部分私有数据已经不需要了,此时,用户终端可以删除存储在私有缓存区中的第一部分私有数据和存储在共享缓存区中的第二部分私有数据。这样,就可以节省用户终端的内存空间,同时,可以提高系统运行的速率。
S210、用户终端将存储的第二共享应用匹配的第二共享数据加载进共享缓存区中。
本发明实施例中,当用户终端判断第二域待运行的应用中不包括预先设置的第二私有应用时,即第二域待运行的应用中为第二共享应用,此时,用户终端可以将存储的第二共享应用匹配的第二共享数据加载进共享缓存区中。
S211、用户终端调用第二共享数据,并利用第二共享数据运行第二共享应用。
在图2所描述的方法流程中,用户终端可以在判断第一域当前运行的应用中包括第一私有应用时,删除存储在私有缓存区中的第一私有应用匹配的第一私有数据,进一步地,判断第二域待运行的应用中是否包括预先设置的第二私有应用,若是,将存储的第二私有应用匹配的第二私有数据加载进私有缓存区中,调用第二私有数据,并利用第二私有数据运行第二私有应用,若否,将存储的第二共享应用匹配的第二共享数据加载进共享缓存区中,调用第二共享数据,并利用第二共享数据运行第二共享应用,这样,用户终端在进行域的切换时,既可以确保切换前的域中的共享应用正常运行,同时,也可以确保切换后的域中的应用也一并运行,从而实现了在一个域中多个应用的同步运行。
下面为本发明装置实施例,本发明装置实施例用于运行本发明方法实施例中的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细
节未揭示的,请参照本发明上述方法实施例。
请参见图3,图3是本发明实施例公开的一种用户终端的结构示意图,如图3所示,该用户终端300可以包括:第一判断单元301、调用单元302以及运行单元303,其中:
第一判断单元301,用于当检测到从第一域切换到第二域时,判断第一域当前运行的应用中是否包括预先设置的第一共享应用,第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种。
本发明实施例中,用户终端可以包括操作平台(如操作系统Android或iOS或Windows等)支持的多个域,例如:工作域、娱乐域、生活域等。每一个域可以独立使用该操作平台提供的所有资源,例如CPU的运算、内存的访问、外部设备等。每一个域可以为该域所支持的应用提供一个运行环境,比如:工作应用(如邮件应用)在工作域所提供的环境下运行,娱乐应用(如音乐应用)在娱乐域所提供的环境下运行。
本发明实施例中,可以通过多种方式触发域的切换,比如:用户点击目标应用的图标,用户终端就会在后台自动从当前域切换到目标应用所在的目标域中,以实现目标应用的运行,又比如:用户可以在域的列表中选择一个目标域,这样,用户终端就会将当前域切换到目标域中。
本发明实施例中,用户可以在应用运行之前,预先为每一个域设置共享应用和私有应用,其中,该共享应用为可以在其他域中运行的应用,该私有应用为只能在自身所在的域中运行的应用。
当检测到从第一域切换到第二域时,第一判断单元301可以判断第一域当前运行的应用中是否包括预先设置的第一共享应用,其中,该第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种,即:第一域当前运行的应用为第一共享应用,或者,第一域当前运行的应用为第一私有应用,或者,第一域当前运行的应用为第一私有应用和第一共享应用。
调用单元302,用于当第一判断单元301当检测到从第一域切换到第二域时,判断第一域当前运行的应用中包括预先设置的第一共享应用时,调用存储在共享缓存区中的与第一共享应用匹配的第一共享数据。
本发明实施例中,预先对内存进行了划分,主要划分为三部分:操作系统
管理区、共享缓冲区以及私有缓存区,进一步地,操作系统管理区还可以划分为共享内存管理单元和驻留单元。其中,共享内存管理单元用于存储预先设置的共享应用的标识以及该共享应用所需的共享数据所存储的位置,驻留单元用于管理由在某段时间间隔内,进程要访问的页面构成的驻留集。共享缓冲区用于存储共享应用匹配的共享数据,私有缓冲区用于存储私有应用匹配的私有数据。当在某个域中运行应用时,用户终端将会把当前域中正在运行的应用所需的资源加载进缓存区,比如:若当前正在运行共享应用,则用户终端将该共享应用所需的共享数据加载进共享缓存区,若当前正在运行私有应用,则用户终端将该私有应用所需的私有数据加载进私有缓存区。
本发明实施例中,当检测到从第一域切换到第二域时,第一判断单元301判断第一域当前运行的应用中包括预先设置的第一共享应用时,调用单元302可以调用存储在共享缓存区中的与第一共享应用匹配的第一共享数据。具体的,调用单元302可以在共享内存管理单元中查询当前正在运行的第一共享应用匹配的第一共享数据所在的共享缓存区中的目标位置,进一步地,在共享缓存区中的目标位置调用与第一共享应用匹配的第一共享数据。
运行单元303,用于在第二域中,利用调用的第一共享数据运行第一共享应用。
本发明实施例中,调用单元302调用存储在共享缓存区中的与第一共享应用匹配的第一共享数据之后,运行单元303就可以在第二域中,利用调用的第一共享数据运行第一共享应用。
请参见图4,图4是本发明实施例公开的另一种用户终端的结构示意图,其中,图4所示的用户终端是在图3所示的用户终端的基础上进一步优化得到的,与图3所示的用户终端相比,图4所示的用户终端除了包括图3所示的用户终端的所有单元外,还可以包括:
第一删除单元304,用于当第一判断单元301判断第一域当前运行的应用中包括第一私有应用时,删除存储在私有缓存区中的第一私有应用匹配的第一私有数据。
本发明实施例中,当第一判断单元301判断第一域当前运行的应用中不包括预先设置的第一共享应用时,即第一域当前运行的应用为第一私有应用时,
第一删除单元304可以删除存储在私有缓存区中的第一私有应用匹配的第一私有数据。这样,就可以节省用户终端的内存空间,同时,可以提高系统运行的速率。
第二判断单元305,用于判断第二域待运行的应用中是否包括预先设置的第二私有应用,第二域待运行的应用包括第二共享应用和第二私有应用中的至少一种。
本发明实施例中,用户终端在切换到第二域时,第二判断单元305可以判断第二域待运行的应用中是否包括预先设置的第二私有应用,其中,该第二域待运行的应用包括第二共享应用和第二私有应用中的至少一种。
加载单元306,用于当第二判断单元305判断第二域待运行的应用中包括预先设置的第二私有应用时,将存储的第二私有应用匹配的第二私有数据加载进私有缓存区中。
上述调用单元302,还用于调用第二私有数据。
上述运行单元303,还用于利用第二私有数据运行第二私有应用。
作为一种可选的实施方式,上述第二判断单元305还用于在判断第二域待运行的应用中包括第二私有应用之后,以及在上述加载单元306将存储的第二私有应用匹配的第二私有数据加载进私有缓存区中之前,判断第二私有应用需要的第二私有数据所占内存空间是否大于私有缓存区的空间。
本发明实施例中,私有应用所需的私有数据所占内存空间一般比较大,因此,在运行私有应用时,就可能出现该私有应用所需的私有数据所占内存空间大于私有缓存区的空间的情况,因此,为了确保私有应用的正常运行,第二判断单元305判断第二域待运行的应用中包括预先设置的第二私有应用时,第二判断单元305可以进一步判断第二私有应用需要的第二私有数据所占内存空间是否大于私有缓存区的空间。
上述加载单元306,具体用于当上述第二判断单元305判断第二私有应用需要的第二私有数据所占内存空间大于私有缓存区的空间时,将第二私有数据中的第一部分私有数据加载进私有缓存区中,并将第二私有数据中的第二部分私有数据加载进共享缓存区中,其中,第一部分私有数据与第二部分私有数据的总和为第二私有数据,第一部分私有数据所占的内存空间为私有缓存区的空间。
本发明实施例中,当第二判断单元305判断第二私有应用需要的第二私有
数据所占内存空间大于私有缓存区的空间时,加载单元306可以将第二私有数据分成两部分:第一部分私有数据和第二部分私有数据,进一步的,加载单元306可以将第二私有数据中的第一部分私有数据加载进私有缓存区中,并将第二私有数据中的第二部分私有数据加载进共享缓存区中,其中,第一部分私有数据与第二部分私有数据的总和为第二私有数据,第一部分私有数据所占的内存空间为私有缓存区的空间。这里默认的第二部分私有数据所占内存空间小于共享缓冲区的剩余空间。
本发明实施例中,加载单元306将第二私有数据中的第二部分私有数据加载进共享缓存区中,如果此时第二部分私有数据所占的内存空间大于共享缓冲区的剩余空间时,系统将会崩溃,将会出现卡死的情况,即第二私有应用将不能正常运行。
作为另一种可选的实施方式,上述加载单元306还用于当上述第二判断单元305判断第二域待运行的应用中包括第二共享应用时,将存储的第二共享应用匹配的第二共享数据加载进共享缓存区中。
本发明实施例中,当第二判断单元305判断第二域待运行的应用中不包括预先设置的第二私有应用时,即第二域待运行的应用中为第二共享应用,此时,加载单元306可以将存储的第二共享应用匹配的第二共享数据加载进共享缓存区中。
上述调用单元302,还用于调用第二共享数据。
上述运行单元303,还用于利用第二共享数据运行第二共享应用。
请参见图5,图5是本发明实施例公开的另一种用户终端的结构示意图,其中,图5所示的用户终端是在图3所示的用户终端的基础上进一步优化得到的,与图3所示的用户终端相比,图5所示的用户终端除了包括图3所示的用户终端的所有单元外,还可以包括:
第二删除单元307,用于在第二域中,当第一共享应用运行结束时,删除存储在共享缓存区中的第一共享数据。
当第一共享应用运行结束时,第二删除单元307可以删除存储在共享缓存区中的第一共享数据,这样,就可以节省用户终端的内存空间,同时,可以提高系统运行的速率。
在图3~图5所描述的用户终端300中,当检测到从第一域切换到第二域时,第一判断单元301可以先判断第一域当前运行的应用中是否包括预先设置的第一共享应用,其中,第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种;若是,则调用单元302可以调用存储在共享缓存区中的与第一共享应用匹配的第一共享数据;这样,运行单元303就可以在第二域中,利用调用的第一共享数据运行第一共享应用。可见,通过本发明实施例,当检测到当前域被切换到另一个域时,用户终端可以智能地将当前域中正在运行的共享应用同步到另一个域中,从而实现多域间切换时应用的同步。
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和单元并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在运行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。
Claims (10)
- 一种多域间切换时的应用同步方法,其特征在于,包括:当检测到从第一域切换到第二域时,判断所述第一域当前运行的应用中是否包括预先设置的第一共享应用,所述第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种;若是,则调用存储在共享缓存区中的与所述第一共享应用匹配的第一共享数据;在所述第二域中,利用所述调用的所述第一共享数据运行所述第一共享应用。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:当判断所述第一域当前运行的应用中包括第一私有应用时,删除存储在私有缓存区中的所述第一私有应用匹配的第一私有数据;判断所述第二域待运行的应用中是否包括预先设置的第二私有应用,所述第二域待运行的应用包括第二共享应用和第二私有应用中的至少一种;若是,将存储的所述第二私有应用匹配的第二私有数据加载进所述私有缓存区中;调用所述第二私有数据,并利用所述第二私有数据运行所述第二私有应用。
- 根据权利要求2所述的方法,其特征在于,在判断所述第二域待运行的应用中包括第二私有应用之后,以及在所述将存储的所述第二私有应用匹配的第二私有数据加载进所述私有缓存区中之前,所述方法还包括:判断所述第二私有应用需要的第二私有数据所占内存空间是否大于所述私有缓存区的空间;所述将存储的所述第二私有应用匹配的第二私有数据加载进私有缓存区中包括:当判断所述第二私有应用需要的第二私有数据所占内存空间大于所述私有缓存区的空间时,将所述第二私有数据中的第一部分私有数据加载进所述私有缓存区中,并将所述第二私有数据中的第二部分私有数据加载进所述共享缓存 区中,其中,所述第一部分私有数据与所述第二部分私有数据的总和为所述第二私有数据,所述第一部分私有数据所占的内存空间为所述私有缓存区的空间。
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:当判断所述第二域待运行的应用中包括第二共享应用时,将存储的所述第二共享应用匹配的第二共享数据加载进所述共享缓存区中;调用所述第二共享数据,并利用所述第二共享数据运行所述第二共享应用。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:在所述第二域中,当所述第一共享应用运行结束时,删除存储在所述共享缓存区中的第一共享数据。
- 一种用户终端,其特征在于,包括:第一判断单元,用于当检测到从第一域切换到第二域时,判断所述第一域当前运行的应用中是否包括预先设置的第一共享应用,所述第一域当前运行的应用包括第一共享应用和第一私有应用中的至少一种;调用单元,用于当所述第一判断单元当检测到从第一域切换到第二域时,判断所述第一域当前运行的应用中包括预先设置的第一共享应用时,调用存储在共享缓存区中的与所述第一共享应用匹配的第一共享数据;运行单元,用于在所述第二域中,利用所述调用的所述第一共享数据运行所述第一共享应用。
- 根据权利要求6所述的用户终端,其特征在于,所述用户终端还包括:第一删除单元,用于当所述第一判断单元判断所述第一域当前运行的应用中包括第一私有应用时,删除存储在私有缓存区中的所述第一私有应用匹配的第一私有数据;第二判断单元,用于判断所述第二域待运行的应用中是否包括预先设置的第二私有应用,所述第二域待运行的应用包括第二共享应用和第二私有应用中的至少一种;加载单元,用于当所述第二判断单元判断所述第二域待运行的应用中包括 预先设置的第二私有应用时,将存储的所述第二私有应用匹配的第二私有数据加载进所述私有缓存区中;所述调用单元,还用于调用所述第二私有数据;所述运行单元,还用于利用所述第二私有数据运行所述第二私有应用。
- 根据权利要求7所述的用户终端,其特征在于,所述第二判断单元还用于在判断所述第二域待运行的应用中包括第二私有应用之后,以及在所述加载单元将存储的所述第二私有应用匹配的第二私有数据加载进所述私有缓存区中之前,判断所述第二私有应用需要的第二私有数据所占内存空间是否大于所述私有缓存区的空间;所述加载单元,具体用于当所述第二判断单元判断所述第二私有应用需要的第二私有数据所占内存空间大于所述私有缓存区的空间时,将所述第二私有数据中的第一部分私有数据加载进所述私有缓存区中,并将所述第二私有数据中的第二部分私有数据加载进所述共享缓存区中,其中,所述第一部分私有数据与所述第二部分私有数据的总和为所述第二私有数据,所述第一部分私有数据所占的内存空间为所述私有缓存区的空间。
- 根据权利要求7所述的用户终端,其特征在于,所述加载单元还用于当所述第二判断单元判断所述第二域待运行的应用中包括第二共享应用时,将存储的所述第二共享应用匹配的第二共享数据加载进所述共享缓存区中;所述调用单元,还用于调用所述第二共享数据;所述运行单元,还用于利用所述第二共享数据运行所述第二共享应用。
- 根据权利要求6所述的用户终端,其特征在于,所述用户终端还包括:第二删除单元,用于在所述第二域中,当所述第一共享应用运行结束时,删除存储在所述共享缓存区中的第一共享数据。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510456187.0A CN105550042B (zh) | 2015-07-29 | 2015-07-29 | 一种多域间切换时的应用同步方法及用户终端 |
| CN201510456187.0 | 2015-07-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017016068A1 true WO2017016068A1 (zh) | 2017-02-02 |
Family
ID=55829239
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/091341 Ceased WO2017016068A1 (zh) | 2015-07-29 | 2015-09-30 | 一种多域间切换时的应用同步方法及用户终端 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105550042B (zh) |
| WO (1) | WO2017016068A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112540892A (zh) * | 2020-12-08 | 2021-03-23 | 公安部第三研究所 | 一种手机隔离检测系统及方法 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115080158B (zh) * | 2021-03-12 | 2024-07-09 | Oppo广东移动通信有限公司 | 界面显示方法、装置、终端设备及计算机可读存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014123307A (ja) * | 2012-12-21 | 2014-07-03 | Nec System Technologies Ltd | 端末装置、データ連携方法、及びプログラム |
| CN104618503A (zh) * | 2015-02-15 | 2015-05-13 | 西安酷派软件科技有限公司 | 一种系统间数据同步共享方法、装置及终端 |
| CN104636122A (zh) * | 2013-11-06 | 2015-05-20 | 中国移动通信集团公司 | 一种能力组件的共享方法和设备 |
| CN104657213A (zh) * | 2015-02-13 | 2015-05-27 | 深圳酷派技术有限公司 | 一种系统间应用切换的方法和终端 |
| CN104683469A (zh) * | 2015-03-10 | 2015-06-03 | 苏州天鸣信息科技有限公司 | 一种应用程序数据的即时分享与运行方法及其系统 |
-
2015
- 2015-07-29 CN CN201510456187.0A patent/CN105550042B/zh active Active
- 2015-09-30 WO PCT/CN2015/091341 patent/WO2017016068A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014123307A (ja) * | 2012-12-21 | 2014-07-03 | Nec System Technologies Ltd | 端末装置、データ連携方法、及びプログラム |
| CN104636122A (zh) * | 2013-11-06 | 2015-05-20 | 中国移动通信集团公司 | 一种能力组件的共享方法和设备 |
| CN104657213A (zh) * | 2015-02-13 | 2015-05-27 | 深圳酷派技术有限公司 | 一种系统间应用切换的方法和终端 |
| CN104618503A (zh) * | 2015-02-15 | 2015-05-13 | 西安酷派软件科技有限公司 | 一种系统间数据同步共享方法、装置及终端 |
| CN104683469A (zh) * | 2015-03-10 | 2015-06-03 | 苏州天鸣信息科技有限公司 | 一种应用程序数据的即时分享与运行方法及其系统 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112540892A (zh) * | 2020-12-08 | 2021-03-23 | 公安部第三研究所 | 一种手机隔离检测系统及方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105550042B (zh) | 2018-11-30 |
| CN105550042A (zh) | 2016-05-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8819403B2 (en) | Method and device for performing data synchronization of a snapshot image by selectively reloading data from nonvolatile to volatile memory after wakeup from hibernation | |
| CN107832100B (zh) | 一种apk插件的加载方法及其终端 | |
| US10877885B2 (en) | Electronic device data operation method and electronic device for improved electronic device storage | |
| CN107832099B (zh) | 一种客户端版本兼容的方法、装置及存储介质 | |
| US11232066B2 (en) | Method for data migration and terminal | |
| CN103473142A (zh) | 一种云计算操作系统下的虚拟机迁移方法及装置 | |
| CN105335170A (zh) | 分布式系统及数据增量更新方法 | |
| CN105988805A (zh) | 一种应用程序的管理方法及移动终端 | |
| CN103324679B (zh) | 一种缓存服务器中数据更新的控制方法和设备 | |
| WO2016095386A1 (zh) | 一种短信处理方法及短信处理终端 | |
| CN107203425B (zh) | 轻应用的切换方法、设备及电子设备 | |
| WO2017016068A1 (zh) | 一种多域间切换时的应用同步方法及用户终端 | |
| CN104021039A (zh) | 应用程序app的调用方法及浏览器 | |
| WO2018149241A1 (zh) | 一种移动终端的录音方法及移动终端 | |
| US9456412B2 (en) | Electronic device and method for selecting access point name | |
| CN103377071A (zh) | 一种数据批量删除方法和系统 | |
| WO2018053838A1 (zh) | 一种负载均衡的方法及相关设备 | |
| CN107133245A (zh) | 状态信息管理系统、方法及电子设备 | |
| CN111625500B (zh) | 文件快照方法及装置、电子设备和存储介质 | |
| CN114615270A (zh) | 边缘应用服务器迁移、dns缓存刷新或清空方法及装置 | |
| CN113127438B (zh) | 用于存储数据的方法、装置、服务器和介质 | |
| JP4698724B2 (ja) | プログラム実行装置 | |
| US11606457B2 (en) | Technology and method for selectively providing network function to application of device | |
| CN116233155B (zh) | 混合云数据同步方法、装置、电子设备及存储介质 | |
| CN107301089B (zh) | 一种app部署及调用方法和终端 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15899420 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15899420 Country of ref document: EP Kind code of ref document: A1 |