Cross-screen application movement method and apparatus, and storage medium and electronic device
By creating virtual screens and animation windows during the application's cross-screen movement, synchronous updates of content and closing the animation window at a predetermined time, the problem of animation cannot be displayed in real time is solved, and the human-computer interaction experience is improved.
Patent Information
- Application Number
- PCT/CN2024/144340
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-25
- Filing Date
- 2024-12-31
- Publication Date
- 2025-07-31
AI Technical Summary
During the cross-screen movement of existing applications, the animation cannot be displayed in real time, resulting in poor human-computer interaction experience.
By creating a virtual screen and creating an animation window in the first screen and the second screen, the application window content is synchronized, and the animation window is closed after detecting the predetermined movement time, real-time display of the animation is realized.
During the application cross-screen movement process, animation can be displayed in real time, improving the human-computer interaction experience.
Smart Images

Figure CN2024144340_31072025_PF_FP_ABST
Abstract
Description
Application cross-screen mobile method, device, storage medium and electronic device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on January 25, 2024, with application number 202410105382.8 and application name “Application cross-screen mobile method, device, storage medium and electronic device”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a method, device, storage medium, and electronic device for applying cross-screen movement. Background Art
[0003] Taking the smart cockpit as an example, a device can have multiple physical screens. In order to facilitate users to operate applications across multiple physical screens, the function of moving applications across screens becomes a necessary function. In order to make the human-computer interaction of the entire application across screens better, application across screen movement animation is usually added.
[0004] The current mainstream cross-screen motion effect scheme for applications is usually to trigger the cross-screen motion effect after sliding the application window with three fingers to complete the effect of moving the application from the first screen to the second screen. However, in the existing scheme, if there is an animation in the application window being moved (that is, the application is in the animation stage), the animation will usually not be displayed in real time. Currently, a fixed screen (that is, a fixed screen formed by pausing the animation in the application window) is generally used to complete the motion effect. For example, as shown in Figure 1, when the application window C moves from the first screen 110 to the second screen 120, a fixed screen will be displayed in the moved application window C and the animation will be paused. Technical issues
[0005] The current cross-screen application movement process has the problem of being unable to display animations in real time in the cross-screen mobile application window, and the human-computer interaction experience needs to be further improved. Technical Solutions
[0006] The embodiments of the present application provide a cross-screen application movement solution, which can realize real-time display of animation in the cross-screen moved application window, effectively improving the human-computer interaction experience during the cross-screen movement of the application.
[0007] The embodiments of this application provide the following technical solutions:
[0008] According to one embodiment of the present application, a method for moving an application across screens includes: in response to an operation of moving an application window in a first screen to a second screen across screens, creating a virtual screen and moving the application window to the virtual screen; creating an animation window in a target screen between the first screen and the second screen; synchronously updating the content displayed in the application window in the virtual screen to the animation window; if it is detected that a predetermined movement timing is met, closing the animation window and moving the application window in the virtual screen to the second screen.
[0009] In some embodiments of the present application, before closing the animation window if it is detected that the predetermined movement timing is met, the method further includes: detecting whether the animation in the animation window has finished playing, and the content includes the animation; if the playing has finished, determining that the predetermined movement timing is met.
[0010] In some embodiments of the present application, before closing the animation window if it is detected that the predetermined movement timing is met, the method further includes: detecting whether the animation in the animation window has been played for a predetermined time length, and the content includes the animation; if the predetermined time length is reached, determining that the predetermined movement timing is met.
[0011] In some embodiments of the present application, the creation of a virtual screen in response to the operation of moving the application window in the first screen across the screen to the second screen includes: in response to the operation of moving the application window in the first screen across the screen to the second screen, detecting whether there is an animation in the content displayed in the application window; if there is animation in the content, creating a virtual screen.
[0012] In some embodiments of the present application, the creation of a virtual screen includes: determining a target creation number of the animation windows; creating multiple virtual screens according to the target creation number, each of the virtual screens corresponding to one of the animation windows, and setting a content synchronization time difference between the multiple virtual screens.
[0013] In some embodiments of the present application, an animation window is created in each of the first screen and the second screen; and the content displayed in the application window in the virtual screen is synchronously updated to the animation window, including: obtaining the content displayed in the application window in the virtual screen; and synchronously updating the content to the animation windows in the first screen and the second screen respectively.
[0014] In some embodiments of the present application, the content displayed in the application window in the virtual screen is synchronously updated to the animation window, including: obtaining the content displayed in the application window in each of the virtual screens to obtain the content corresponding to each of the virtual screens; and synchronously updating the content corresponding to each of the virtual screens to the animation windows corresponding to each of the virtual screens according to the content synchronization time difference.
[0015] In some embodiments of the present application, the creating of an animation window in a target screen between the first screen and the second screen includes one of the following methods: creating an animation window in the first screen and the second screen respectively; selecting a target screen from the first screen and the second screen according to the screen display content in the first screen and the second screen and the window display content in the application window, and creating an animation window in the target screen.
[0016] In some embodiments of the present application, selecting a target screen from the first screen and the second screen based on the screen display content in the first screen and the second screen and the window display content in the application window includes: detecting the difference between the screen display content and the window display content in the first screen and the second screen; and selecting, from the first screen and the second screen, a screen whose difference is higher than a predetermined threshold as the target screen.
[0017] According to one embodiment of the present application, a device for moving an application across screens includes: a first creation module for creating a virtual screen in response to an operation of moving an application window in a first screen to a second screen across screens, and moving the application window to the virtual screen; a second creation module for creating an animation window in a target screen between the first screen and the second screen; a synchronous update module for synchronously updating the content displayed in the application window in the virtual screen to the animation window; and a window moving module for closing the animation window and moving the application window in the virtual screen to the second screen if a predetermined movement timing is detected.
[0018] In some embodiments of the present application, before closing the animation window if it is detected that the predetermined movement timing is met, the device also includes a first determination module, which is used to: detect whether the animation in the animation window has finished playing, and the content includes the animation; if the playing has finished, it is determined that the predetermined movement timing is met.
[0019] In some embodiments of the present application, before closing the animation window if it is detected that the predetermined movement timing is met, the device also includes a second determination module, which is used to: detect whether the animation in the animation window has been played for a predetermined time length, and the content includes the animation; if the predetermined time length is reached, it is determined that the predetermined movement timing is met.
[0020] In some embodiments of the present application, the first creation module is used to: in response to the operation of moving the application window in the first screen across the screen to the second screen, detect whether there is animation in the content displayed in the application window; if there is animation in the content, create a virtual screen.
[0021] In some embodiments of the present application, the first creation module is used to: determine the target creation number of the animation window; create multiple virtual screens according to the target creation number, each of the virtual screens corresponds to one animation window, and set a content synchronization time difference between the multiple virtual screens.
[0022] In some embodiments of the present application, an animation window is created in each of the first screen and the second screen; the synchronous update module is used to: obtain the content displayed in the application window in the virtual screen; and synchronously update the content to the animation windows in the first screen and the second screen at the same time.
[0023] In some embodiments of the present application, the synchronization update module is used to: obtain the content displayed in the application window in each of the virtual screens to obtain the content corresponding to each of the virtual screens; and synchronize the content corresponding to each of the virtual screens to the animation windows corresponding to each of the virtual screens according to the content synchronization time difference.
[0024] In some embodiments of the present application, the second creation module is used to implement one of the following methods: creating an animation window in the first screen and the second screen respectively; selecting a target screen from the first screen and the second screen according to the screen display content in the first screen and the second screen and the window display content in the application window, and creating an animation window in the target screen.
[0025] In some embodiments of the present application, the second creation module is used to: detect the difference between the screen display content and the window display content in the first screen and the second screen; and select the screen whose difference is higher than a predetermined threshold from the first screen and the second screen as the target screen.
[0026] According to another embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method described in the embodiment of the present application.
[0027] According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.
[0028] According to another embodiment of the present application, a computer program product or computer program includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations described in the embodiments of the present application. Beneficial effects
[0029] In an embodiment of the present application, in response to the operation of moving an application window in a first screen across screens to a second screen, a virtual screen is created, and the application window is moved to the virtual screen; an animation window is created in a target screen between the first screen and the second screen; the content displayed in the application window in the virtual screen is synchronously updated to the animation window; if it is detected that a predetermined movement timing is met, the animation window is closed, and the application window in the virtual screen is moved to the second screen.
[0030] In this way, in the process of moving the application window from the first screen to the second screen, the application window is carried by the virtual screen, and an animation window is created in the target screen between the first screen and the second screen to synchronously display the content displayed in the application window in the virtual screen in real time. When the content includes animation, it can be synchronously displayed in real time on the target screen, so that the animation in the window is not paused but played dynamically during the movement. After the predetermined movement timing is reached, the animation window is closed and the application window is moved to the second screen to complete the cross-screen movement of the application. In the overall process, the animation in the application window moved across the screen can be displayed in real time, effectively improving the human-computer interaction experience during the cross-screen movement of the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0032] FIG1 is a schematic diagram showing a process of applying cross-screen movement in related art.
[0033] FIG2 shows a flowchart of a method for moving an application across screens according to an embodiment of the present application.
[0034] FIG3 shows a schematic diagram of a process of moving an application across screens according to an embodiment of the present application.
[0035] FIG4 shows a block diagram of an application cross-screen mobile device according to an embodiment of the present application.
[0036] FIG5 shows a block diagram of an electronic device according to an embodiment of the present application.
[0037] Implementation Methods of the Application
[0038] The present disclosure will be further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the examples provided herein are merely for explaining the present disclosure and are not intended to limit the present disclosure. In addition, the examples provided below are partial examples for implementing the present disclosure, rather than providing all examples for implementing the present disclosure. In the absence of conflict, the technical solutions described in the examples of the present disclosure may be implemented in any combination.
[0039] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus comprising a series of elements includes not only the elements explicitly stated, but also other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other related elements (such as steps in the method or units in the apparatus, for example, a unit may be part of a circuit, part of a processor, part of a program or software, etc.) in the method or apparatus comprising the element.
[0040] For example, the method for moving an application across screens provided by the embodiment of the present disclosure includes a series of steps, but the method for moving an application across screens provided by the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the device for moving an application across screens provided by the embodiment of the present disclosure includes a series of units, but the device provided by the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units that need to be set up to obtain relevant information or perform processing based on the information.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present disclosure pertains. The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the present disclosure.
[0042] Figure 2 schematically illustrates a flow chart of a method for moving an application across multiple screens according to an embodiment of the present application. The method can be executed by any device with processing capabilities, which can be configured with at least two physical screens, including a first screen and a second screen. For example, the device can be a device in a smart cockpit or a mobile phone.
[0043] As shown in FIG. 2 , the method for moving an application across screens may include steps S110 to S140 .
[0044] Step S110, in response to the operation of moving the application window in the first screen across the screen to the second screen, create a virtual screen and move the application window to the virtual screen; step S120, create an animation window in the target screen between the first screen and the second screen; step S130, synchronously update the content displayed in the application window in the virtual screen to the animation window; step S140, if it is detected that the predetermined movement timing is met, close the animation window and move the application window in the virtual screen to the second screen.
[0045] The operation of moving the application window on the first screen to the second screen across the screen can be set according to actual conditions, for example, the operation can be a three-finger slide operation, a two-finger slide operation, a control press operation, etc. The application window can be used to display content in a certain application.
[0046] In response to this operation, a virtual screen is first created. This virtual screen is an additional virtual screen in addition to the first and second screens. This virtual screen does not need to be displayed, and the application window to be moved is temporarily moved to this virtual screen. For example, the virtual screen can be created using the createVirtualDisplay interface, and the application window can be moved to the virtual screen using the ActivityTaskManager interface.
[0047] 3 , in one example, in response to the cross-screen movement of the application window D on the first screen 310 to the second screen 320 , a virtual screen 330 is first created, and then the application window D is temporarily moved to the virtual screen 330 .
[0048] Furthermore, an animation window is created in a target screen between the first and second screens. For example, WindowManager.addView can be used to create the animation window. As shown in Figure 3, in one example, the first and second screens are each used as a target screen, and an "animation window" is created in each of them. It will be appreciated that in other embodiments, only one of the first and second screens can be selected as the target screen.
[0049] Furthermore, the content displayed in the application window of the virtual screen can be synchronously obtained in real time, and the content displayed in the application window of the virtual screen can be synchronously updated to the animation window. If the content includes animation, it can be dynamically played in the animation window.
[0050] Furthermore, if a predetermined move timing is detected, the animation window on the target screen is closed, and the application window on the virtual screen is moved to the second screen, thereby completing the cross-screen movement of the application. As shown in Figure 3, in one example, after moving application window D on the virtual screen to the second screen 330, the virtual screen can be closed. At the same time, the animation windows on the first screen 310 and the second screen 320 are closed, and application window D is fully displayed on the second screen 320.
[0051] In this way, based on steps S110 to S140, in the process of moving the application window from the first screen to the second screen, the application window is carried by the virtual screen, and an animation window is created in the target screen between the first screen and the second screen to synchronously display the content displayed in the application window in the virtual screen in real time. When the content includes animation, it can be synchronously displayed in real time on the target screen, so that the animation in the window is not paused but played dynamically during the movement. After the predetermined movement timing is reached, the animation window is closed and the application window is moved to the second screen to complete the cross-screen movement of the application. In the overall process, the animation in the application window moved across the screen can be displayed in real time, effectively improving the human-computer interaction experience during the cross-screen movement of the application.
[0052] The following describes further optional specific embodiments of each step performed when moving an application across screens in the embodiment of FIG. 1 .
[0053] In one embodiment, the creation of a virtual screen in response to the operation of moving the application window in the first screen across the screen to the second screen may include: directly creating a virtual screen in response to the operation of moving the application window in the first screen across the screen to the second screen without detecting whether there is an animation, so that the virtual screen can be quickly created to carry the application window.
[0054] Further, in one embodiment, creating a virtual screen in response to the operation of moving the application window in the first screen across the screen to the second screen may include: in response to the operation of moving the application window in the first screen across the screen to the second screen, detecting whether there is animation in the content displayed in the application window; if there is animation in the content, creating a virtual screen.
[0055] In this embodiment, in response to an operation of moving an application window from a first screen to a second screen across multiple screens, the first step is to detect whether there is an animation in the content displayed in the application window. If there is an animation, a virtual screen is created; otherwise, no virtual screen is created.
[0056] Furthermore, a virtual screen can be created to carry the application window and further realize dynamic animation playback only in the scene where animation needs to be played. In the case where no virtual screen is created for animation, the application can be moved in the conventional cross-screen mobile mode.
[0057] Thus, unnecessary virtual screen creation tasks can be avoided, and compared with the method of not distinguishing whether there is animation, the device performance of the application cross-screen movement process can be further improved.
[0058] In one embodiment, the creating of the virtual screen may include: creating virtual screens of the same number as the number of windows corresponding to the application windows being moved. For example, by moving only one application window at a time, only one virtual screen is created.
[0059] In one embodiment, the creation of the virtual screen may include: determining a target creation number of the animation windows; creating multiple virtual screens according to the target creation number, each of the virtual screens corresponding to one animation window, and setting a content synchronization time difference between the multiple virtual screens.
[0060] In this embodiment, the target number of animation windows to be created is first determined, that is, the number of animation windows to be created is determined. Then, multiple virtual screens are created according to the target number of animation windows, each of which corresponds to one animation window. For example, if the target number of animation windows is 2, two virtual screens are created, each of which corresponds to one animation window.
[0061] Furthermore, a content synchronization time difference is set between multiple virtual screens. The content synchronization time difference is specifically the time difference for synchronizing the content in the virtual screen to the corresponding animation window. For example, a content synchronization time difference of 0.5S can be set between virtual screen 1 and virtual screen 2. The first frame content X in virtual screen 1 can be synchronously updated to the corresponding animation window 1 in 1S, and the same first frame content X in virtual screen 2 will be synchronously updated to the corresponding animation window 2 in 1.5S.
[0062] This allows for a comparison of previous and next frames between different animation windows, further enhancing the animation playback effect during cross-screen movement of the application and the human-computer interaction experience. The content synchronization time difference can be specified based on the timing.
[0063] It is understood that in other embodiments, if multiple virtual screens are created, the content synchronization time difference between the multiple virtual screens may not be set.
[0064] In one embodiment, the creation of an animation window in a target screen between the first screen and the second screen may include one of the following methods: first, creating an animation window in the first screen and the second screen respectively; second, selecting a target screen from the first screen and the second screen based on the screen display content in the first screen and the second screen and the window display content in the application window, and creating an animation window in the target screen.
[0065] In the first method, as shown in FIG3 , an animation window is created in the first screen and the second screen respectively. In this way, when the application moves across screens, the animation in the application window can be displayed in the first screen and the second screen respectively, which can greatly ensure the animation playback effect.
[0066] In the second method, based on the screen display content of the first and second screens and the window display content of the application window, a target screen is selected from the first and second screens, and an animation window is created in the target screen. The target screen can be one or both of the first and second screens.
[0067] The target screen is selected based on the screen display content and the window display content. The target screen can be one or both of the first screen and the second screen. In some scenarios, it is possible to avoid using both the first screen and the second screen as target screens, thereby avoiding problems such as redundant animation playback or poor animation playback experience.
[0068] In some embodiments, selecting a target screen from the first screen and the second screen based on the screen display content in the first screen and the second screen and the window display content in the application window may specifically include: detecting the difference between the screen display content in the first screen and the second screen and the window display content; and selecting, from the first screen and the second screen, a screen whose difference is higher than a predetermined threshold as the target screen.
[0069] The screen display content on the first screen is the content of the screen after the moved application window is removed. For example, the screen display content on the first screen may be the content in application window E in Figure 3. The screen display content on the second screen is the content in the application window in the second screen. For example, the screen display content on the second screen may be the content in application window F in Figure 3.
[0070] Comparing the difference between the screen display content on the first screen and the window display content can obtain a first difference; comparing the difference between the screen display content on the second screen and the window display content can obtain a second difference; from the first screen and the second screen, selecting the screen with a difference greater than a predetermined threshold as the target screen, for example, if the first difference is greater than the predetermined threshold, the first screen is selected as the target screen, and if the second difference is greater than the predetermined threshold, the second screen is selected as the target screen. In this way, the animation in the moved application window is only displayed on the screen with a sufficient display difference from the moved application window.
[0071] In one embodiment, an animation window is created in each of the first screen and the second screen; and synchronously updating the content displayed in the application window in the virtual screen to the animation window may include: obtaining the content displayed in the application window in the virtual screen; and synchronously updating the content to the animation windows in the first screen and the second screen respectively.
[0072] In this embodiment, a virtual screen is created, and the content displayed in the application window in the virtual screen is synchronously updated to the animation windows in the first screen and the second screen, that is, the animation windows in the first screen and the second screen will display the same animation frame at the same time.
[0073] In one embodiment, synchronously updating the content displayed in the application window in the virtual screen to the animation window may include: obtaining the content displayed in the application window in each of the virtual screens to obtain the content corresponding to each of the virtual screens; and synchronously updating the content corresponding to each of the virtual screens to the animation windows corresponding to each of the virtual screens according to the content synchronization time difference.
[0074] A content synchronization time difference is set between multiple virtual screens. This time difference specifically refers to the time difference between synchronizing content on each virtual screen to the corresponding animation window. For example, a 0.5 second content synchronization time difference can be set between virtual screen 1 and virtual screen 2. The first frame of content X on virtual screen 1 will be synchronized to the corresponding animation window 1 within 1 second, while the same first frame of content X on virtual screen 2 will be synchronized to the corresponding animation window 2 within 1.5 seconds. This allows for a sequential playback of animation frames between different animation windows, further improving animation playback quality during cross-screen movement and enhancing the human-computer interaction experience.
[0075] In one embodiment, before closing the animation window if it is detected that the predetermined movement timing is met, the method may also include: detecting whether the animation in the animation window has finished playing, and the content includes the animation; if the playing has finished, determining that the predetermined movement timing is met.
[0076] If the content updated synchronously in the animation window includes animation, it is detected whether the animation has finished playing. If so, it is determined that the time is consistent with the scheduled movement timing. On the contrary, if not, it is determined that the time is inconsistent with the scheduled movement timing.
[0077] Furthermore, under this embodiment, when the animation playback ends, the application window in the virtual screen can be moved to the second screen, and the animation window and the virtual screen can be closed, effectively ensuring the complete playback of the animation, which can greatly enhance the interactive experience of cross-screen movement of the application.
[0078] In one embodiment, before closing the animation window if it is detected that the predetermined movement timing is met, the method also includes: detecting whether the animation in the animation window has been played for a predetermined time length, and the content includes the animation; if the predetermined time length is reached, it is determined that the predetermined movement timing is met.
[0079] If the content synchronously updated in the animation window includes an animation, it is detected whether the animation has reached a predetermined duration. If so, it is determined that the predetermined movement opportunity is met. Conversely, if the predetermined duration is not reached, it is determined that the predetermined movement opportunity is not met. The predetermined duration can be set according to actual circumstances and is not specifically limited in this application.
[0080] Furthermore, under this embodiment, when the animation playback reaches a predetermined duration, the application window in the virtual screen can be moved to the second screen, and the animation window and the virtual screen can be closed, which can avoid the system processing pressure caused by the animation playback duration being too long, and improve the interactive experience of the application moving across screens to a certain extent while ensuring the performance of the device.
[0081] To facilitate better implementation of the cross-screen application mobile method provided in the embodiment of the present application, the embodiment of the present application also provides an application cross-screen mobile device based on the above-mentioned application cross-screen mobile method. The meanings of the terms herein are the same as those in the above-mentioned application cross-screen mobile method. For specific implementation details, please refer to the description in the method embodiment. Figure 4 shows a block diagram of an application cross-screen mobile device according to an embodiment of the present application.
[0082] As shown in Figure 4, the application cross-screen mobile device 400 may include: a first creation module 410 can be used to: create a virtual screen in response to the operation of moving the application window in the first screen to the second screen across the screen, and move the application window to the virtual screen; a second creation module 420 can be used to: create an animation window in the target screen between the first screen and the second screen; a synchronous update module 430 can be used to: synchronously update the content displayed in the application window in the virtual screen to the animation window; a window movement module 440 can be used to close the animation window if it is detected that a predetermined movement timing is met, and move the application window in the virtual screen to the second screen.
[0083] In some embodiments of the present application, before closing the animation window if it is detected that the predetermined movement timing is met, the device also includes a first determination module, which is used to: detect whether the animation in the animation window has finished playing, and the content includes the animation; if the playing has finished, it is determined that the predetermined movement timing is met.
[0084] In some embodiments of the present application, before closing the animation window if it is detected that the predetermined movement timing is met, the device also includes a second determination module, which is used to: detect whether the animation in the animation window has been played for a predetermined time length, and the content includes the animation; if the predetermined time length is reached, it is determined that the predetermined movement timing is met.
[0085] In some embodiments of the present application, the first creation module is used to: in response to the operation of moving the application window in the first screen across the screen to the second screen, detect whether there is animation in the content displayed in the application window; if there is animation in the content, create a virtual screen.
[0086] In some embodiments of the present application, the first creation module is used to: determine the target creation number of the animation window; create multiple virtual screens according to the target creation number, each of the virtual screens corresponds to one animation window, and set a content synchronization time difference between the multiple virtual screens.
[0087] In some embodiments of the present application, an animation window is created in each of the first screen and the second screen; the synchronous update module is used to: obtain the content displayed in the application window in the virtual screen; and synchronously update the content to the animation windows in the first screen and the second screen at the same time.
[0088] In some embodiments of the present application, the synchronization update module is used to: obtain the content displayed in the application window in each of the virtual screens to obtain the content corresponding to each of the virtual screens; and synchronize the content corresponding to each of the virtual screens to the animation windows corresponding to each of the virtual screens according to the content synchronization time difference.
[0089] In some embodiments of the present application, the second creation module is used to implement one of the following methods: creating an animation window in the first screen and the second screen respectively; selecting a target screen from the first screen and the second screen according to the screen display content in the first screen and the second screen and the window display content in the application window, and creating an animation window in the target screen.
[0090] In some embodiments of the present application, the second creation module is used to: detect the difference between the screen display content and the window display content in the first screen and the second screen; and select the screen whose difference is higher than a predetermined threshold from the first screen and the second screen as the target screen.
[0091] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the application, the features and functions of two or more modules or units described above can be concretized in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0092] In addition, an embodiment of the present application further provides an electronic device, as shown in FIG5 . FIG5 shows a block diagram of an electronic device according to an embodiment of the present application. Specifically:
[0093] The electronic device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will appreciate that the electronic device structure shown in FIG5 does not limit the electronic device and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0094] Processor 501 is the control center of the electronic device. It utilizes various interfaces and circuits to connect the various components of the entire computer device. By running or executing software programs and / or modules stored in memory 502 and accessing data stored in memory 502, it performs various computer device functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, processor 501 may include one or more processing cores; preferably, processor 501 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interfaces, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 501.
[0095] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0096] The electronic device also includes a power supply 503 for supplying power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 503 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0097] The electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0098] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the electronic device will load the executable files corresponding to one or more computer program processes into the memory 502 according to the following instructions, and the processor 501 will run the computer program stored in the memory 502, thereby realizing the various functions of the aforementioned embodiments of the present application. For example, the processor 501 may perform the following steps:
[0099] In response to the operation of moving the application window in the first screen across the screen to the second screen, a virtual screen is created and the application window is moved to the virtual screen; an animation window is created in the target screen between the first screen and the second screen; the content displayed in the application window in the virtual screen is synchronously updated to the animation window; if it is detected that a predetermined movement timing is met, the animation window is closed and the application window in the virtual screen is moved to the second screen.
[0100] In some embodiments of the present application, before closing the animation window if it is detected that the predetermined movement timing is met, it also includes: detecting whether the animation in the animation window has finished playing, and the content includes the animation; if the playing has finished, it is determined that the predetermined movement timing is met.
[0101] In some embodiments of the present application, before closing the animation window if it is detected that the predetermined movement timing is met, it also includes: detecting whether the animation in the animation window has been played for a predetermined time length, and the content includes the animation; if the predetermined time length is reached, it is determined that the predetermined movement timing is met.
[0102] In some embodiments of the present application, the creation of a virtual screen in response to the operation of moving the application window in the first screen across the screen to the second screen includes: in response to the operation of moving the application window in the first screen across the screen to the second screen, detecting whether there is an animation in the content displayed in the application window; if there is animation in the content, creating a virtual screen.
[0103] In some embodiments of the present application, the creation of a virtual screen includes: determining a target creation number of the animation windows; creating multiple virtual screens according to the target creation number, each of the virtual screens corresponding to one of the animation windows, and setting a content synchronization time difference between the multiple virtual screens.
[0104] In some embodiments of the present application, an animation window is created in each of the first screen and the second screen; and the content displayed in the application window in the virtual screen is synchronously updated to the animation window, including: obtaining the content displayed in the application window in the virtual screen; and synchronously updating the content to the animation windows in the first screen and the second screen respectively.
[0105] In some embodiments of the present application, the content displayed in the application window in the virtual screen is synchronously updated to the animation window, including: obtaining the content displayed in the application window in each of the virtual screens to obtain the content corresponding to each of the virtual screens; and synchronously updating the content corresponding to each of the virtual screens to the animation windows corresponding to each of the virtual screens according to the content synchronization time difference.
[0106] In some embodiments of the present application, the creating of an animation window in a target screen between the first screen and the second screen includes one of the following methods: creating an animation window in the first screen and the second screen respectively; selecting a target screen from the first screen and the second screen according to the screen display content in the first screen and the second screen and the window display content in the application window, and creating an animation window in the target screen.
[0107] In some embodiments of the present application, selecting a target screen from the first screen and the second screen based on the screen display content in the first screen and the second screen and the window display content in the application window includes: detecting the difference between the screen display content and the window display content in the first screen and the second screen; and selecting, from the first screen and the second screen, a screen whose difference is higher than a predetermined threshold as the target screen.
[0108] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0109] To this end, an embodiment of the present application further provides a storage medium storing a computer program, which can be loaded by a processor to execute the steps of any method provided in the embodiment of the present application.
[0110] The storage medium may be a computer-readable storage medium, and the storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0111] Since the computer program stored in the storage medium can execute the steps of any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0112] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art that are not disclosed herein.
[0113] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.
Claims
1. A cross-screen mobile application method, wherein, Including: In response to an operation of moving an application window across screens from a first screen to a second screen, create a virtual screen and move the application window to the virtual screen; Create an animation window in a target screen among the first screen and the second screen; Synchronously update the content displayed in the application window in the virtual screen to the animation window; If it is detected that a predetermined movement timing is met, close the animation window and move the application window in the virtual screen to the second screen.
2. The method according to claim 1, wherein Before the step of closing the animation window if it is detected that a predetermined movement timing is met, the method further includes: Detect whether the animation in the animation window has finished playing, where the content includes the animation; If it has finished playing, determine that the predetermined movement timing is met.
3. The method according to claim 1, wherein Before the step of closing the animation window if it is detected that a predetermined movement timing is met, the method further includes: Detect whether the animation in the animation window has played for a predetermined duration, where the content includes the animation; If it has reached the predetermined duration, determine that the predetermined movement timing is met.
4. The method according to claim 1, wherein, The step of creating a virtual screen in response to an operation of moving an application window across screens from a first screen to a second screen includes: In response to an operation of moving an application window across screens from a first screen to a second screen, detect whether there is an animation in the content displayed in the application window; If there is an animation in the content, create a virtual screen.
5. The method according to claim 1, wherein The step of creating a virtual screen includes: Determine the target creation quantity of the animation windows; Create a plurality of virtual screens according to the target creation quantity, each virtual screen corresponding to one of the animation windows, and set a content synchronization time difference between the plurality of virtual screens.
6. The method according to claim 1, wherein Create one animation window in each of the first screen and the second screen; the step of synchronously updating the content displayed in the application window in the virtual screen to the animation window includes: Obtain the content displayed in the application window in the virtual screen; Simultaneously and respectively synchronously update the content to the animation windows in the first screen and the second screen.
7. The method according to claim 5, wherein The step of synchronously updating the content displayed in the application window in the virtual screen to the animation window includes: Obtain the content displayed in the application window in each virtual screen to obtain the content corresponding to each virtual screen; Synchronously update the content corresponding to each virtual screen to the animation window corresponding to each virtual screen according to the content synchronization time difference.
8. The method according to claim 1, wherein The step of creating an animation window in a target screen among the first screen and the second screen includes one of the following methods: Create one animation window in each of the first screen and the second screen; According to the screen display content in the first screen and the second screen and the window display content in the application window, select a target screen from the first screen and the second screen and create an animation window in the target screen.
9. The method according to claim 8, wherein, The step of selecting a target screen from the first screen and the second screen according to the screen display content in the first screen and the second screen and the window display content in the application window includes: Detect the differences between the screen display contents in the first screen and the second screen and the window display content; From the first screen and the second screen, select the screen with the difference higher than a predetermined threshold as the target screen.
10. The method according to claim 1, wherein, After moving the application window in the virtual screen to the second screen, the method further includes: closing the virtual screen.
11. The method according to claim 1, wherein, The creating of the virtual screen includes: creating virtual screens with the number of windows corresponding to the moved application windows.
12. The method according to claim 1, wherein, The creating of the virtual screen in response to the operation of moving the application window across the screen from the first screen to the second screen includes: directly creating a virtual screen without detecting whether there is an animation in response to the operation of moving the application window across the screen from the first screen to the second screen.
13. The method according to claim 9, wherein, The detecting the differences between the screen display contents in the first screen and the second screen and the window display content includes: Compare the difference between the screen display content in the first screen and the window display content to obtain a first difference; compare the difference between the screen display content in the second screen and the window display content to obtain a second difference; The selecting the screen with the difference higher than a predetermined threshold as the target screen from the first screen and the second screen includes: According to the first difference and the second difference, select the screen with the difference higher than a predetermined threshold as the target screen from the first screen and the second screen.
14. A cross-screen mobile device application, wherein, Includes: A first creating module, configured to: in response to the operation of moving the application window across the screen from the first screen to the second screen, create a virtual screen and move the application window to the virtual screen; A second creating module, configured to: create an animation window in the target screen among the first screen and the second screen; A synchronous updating module, configured to: synchronously update the content displayed in the application window in the virtual screen to the animation window; A window moving module, configured to: if it is detected that a predetermined moving timing is met, close the animation window and move the application window in the virtual screen to the second screen.
15. The apparatus according to claim 14, wherein, Before the closing of the animation window when it is detected that a predetermined moving timing is met, the apparatus further includes a first determining module, configured to: detect whether the animation in the animation window has finished playing, where the content includes the animation; if it has finished playing, determine that the predetermined moving timing is met.
16. The device according to claim 14, wherein, Before the closing of the animation window when it is detected that a predetermined moving timing is met, the apparatus further includes a second determining module, configured to: detect whether the animation in the animation window has played for a predetermined duration, where the content includes the animation; if it has reached the predetermined duration, determine that the predetermined moving timing is met.
17. The apparatus according to claim 14, wherein The first creating module, configured to: in response to the operation of moving the application window across the screen from the first screen to the second screen, detect whether there is an animation in the content displayed in the application window; if there is an animation in the content, create a virtual screen.
18. The apparatus according to claim 14, wherein, The first creation module is configured to: determine a target creation quantity of the animation window; create a plurality of virtual screens according to the target creation quantity, each virtual screen corresponding to one animation window, and setting a content synchronization time difference among the plurality of virtual screens.
19. A storage medium, wherein, A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 13.
20. An electronic device, wherein, Comprising: A memory storing a computer program; A processor that reads the computer program stored in the memory to execute the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Application cross-screen moving method and device, storage medium and electronic equipment
CN117931111A
Interface display method and vehicle-mounted terminal
CN114637482A
Object dragging method and device
CN115516413A
Cross-screen display method, system, device and equipment and storage medium
CN115826898A
Window screen-crossing device and method based on Android system and storage medium
CN116540913A