Screen adaptive rotation method and device of cloud mobile phone, equipment and storage medium
By synchronizing the rotation information of the cloud mobile phone screen to the user terminal in real time, the problem of inconsistent direction between the user terminal and the cloud mobile phone screen is solved, the user experience is improved, the operation process is simplified, and the reaction delay is reduced.
Patent Information
- Application Number
- CN202410992108.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the user terminal accesses the cloud mobile phone, it cannot automatically keep the same as the direction of the cloud mobile phone screen, resulting in interruption of user operation processes and increasing complexity.
By generating device files corresponding to cloud mobile phones, recording and real-time synchronization of the rotation information of cloud mobile phone screen, sending it to the user terminal, so that it automatically adjusts the screen direction to maintain consistency with the cloud mobile phone screen.
It improves user experience, simplifies operational processes, reduces response delays, and avoids inconsistent directions between user terminals and cloud mobile phones.
Smart Images

Figure CN118945165A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing technology, and in particular to a method, device, equipment and storage medium for adaptively rotating the screen of a cloud phone. Background Art
[0002] A cloud phone is a mobile phone based on end-to-end virtualization technology. Through digital capabilities such as cloud network, security, and AI, it can flexibly adapt to users' personalized needs, release the hardware resources of the phone itself, and load massive cloud applications on demand.
[0003] Currently, in the related art, when a user terminal accesses a cloud phone, the screen of the user terminal cannot automatically keep the same direction as the screen of the cloud phone. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device, equipment and storage medium for adaptive screen rotation of a cloud phone to solve the problem in the related art that the screen of the user terminal cannot automatically remain consistent with the screen of the cloud phone when the user terminal accesses the cloud phone.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] A first aspect: The present invention provides a method for adaptive screen rotation of a cloud phone, comprising: generating a device file corresponding to the cloud phone, wherein the device file is used to record the screen rotation information of the cloud phone; receiving the screen rotation information of the cloud phone, and writing the rotation information into the corresponding device file; and sending the screen rotation information in the device file to the corresponding user terminal.
[0007] Further, as a preferred embodiment, the generating of the device file corresponding to the cloud phone includes: obtaining all the cloud phone information corresponding to the host machine, and generating a corresponding device file for all the cloud phones according to the cloud phone information.
[0008] Further, as a preference, the sending of the screen rotation information in the device file to the corresponding user terminal comprises: using a Stream program to send the screen rotation information in the device file to the corresponding user terminal.
[0009] Further, preferably, the screen rotation information includes: a rotation angle and a rotation direction.
[0010] Second aspect: The present invention also provides a method for adaptive screen rotation of a cloud phone, comprising: mounting a device file corresponding to the mapping, wherein the device file is used to record the screen rotation information of the cloud phone; obtaining the screen rotation information of the cloud phone, and writing the screen rotation information into the device file.
[0011] Further, as a preferred embodiment, the mounting mapping corresponding device files includes: when the cloud phone is started or running, automatically mounting the mapping corresponding device files.
[0012] Further, as a preferred embodiment, the obtaining of the screen rotation information of the cloud phone and writing the screen rotation information into the device file includes: using a callback function to monitor whether the cloud phone screen rotates; if the screen rotates, obtaining the screen rotation information of the cloud phone and writing the screen rotation information into the device file.
[0013] The third aspect: The present invention also provides a screen adaptive rotation device for a cloud phone, including: a generation module for generating a device file corresponding to the cloud phone, the device file being used to record the screen rotation information of the cloud phone; a writing module for receiving the screen rotation information of the cloud phone and writing the rotation information into the corresponding device file; a sending module for sending the screen rotation information in the device file to the corresponding user terminal.
[0014] Aspect 4: This aspect also provides a computer electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the cloud phone screen adaptive rotation method as described in any one of the above items are implemented.
[0015] Fifth aspect: The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the cloud phone screen adaptive rotation method as described in any one of the above.
[0016] Compared with the prior art, the method, device, equipment and storage medium for adaptive screen rotation of a cloud phone according to the embodiment of the present invention have the following beneficial effects:
[0017] The present invention generates a device file corresponding to the cloud phone on the host machine, and the device file is used to record the screen rotation information of the cloud phone; when the screen of the cloud phone rotates, the host machine receives the screen rotation information of the cloud phone and writes the rotation information into the corresponding device file; the screen rotation information in the device file is sent to the corresponding user terminal, so that the user terminal can automatically rotate the screen according to the rotation information, thereby making the screen of the user terminal consistent with that of the cloud phone. Compared with the related art, this implementation has the following effects:
[0018] 1. Improve user experience: By automatically synchronizing the screen rotation of the cloud system and the user terminal, users do not need to manually click the rotation button of the user terminal, thus avoiding interrupting the user's operation process and improving the user experience.
[0019] 2. Simplified operation: Users do not need to pay attention to the screen direction of the cloud phone system at all times and adjust it manually when necessary, which greatly reduces the complexity of user operations.
[0020] 3. Reduce reaction delay: Since the screen rotation information of the cloud machine system can be transmitted to the user terminal in real time, the user does not need to spend a certain amount of time to react and operate after seeing the screen rotation of the cloud phone system. In this way, the screen of the user terminal can follow the screen rotation of the cloud machine system in real time, avoiding the situation where the screen direction of the user terminal and the cloud phone are inconsistent. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flow chart of a method for adaptively rotating a screen of a cloud phone according to an embodiment of the present invention;
[0022] Figure 2 This is a data link transmission diagram of a method for adaptively rotating a screen of a cloud phone according to an embodiment of the present invention;
[0023] Figure 3 It is a flowchart of another method for adaptively rotating the screen of a cloud phone according to an embodiment of the present invention;
[0024] Figure 4 It is a flowchart of another method for adaptively rotating the screen of a cloud phone according to an embodiment of the present invention;
[0025] Figure 5 It is a structural schematic diagram of a computer electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. In contrast, when an element is referred to as being "directly on" another element, there is no intermediate element. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0028] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0029] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0030] The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms "a", "said" and "the" used in one or more embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of the template are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the associated listed items.
[0032] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present invention, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present invention, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "when..." or "when...".
[0033] See also Figure 1 A preferred embodiment of the present invention provides a method for adaptively rotating a screen of a cloud phone, comprising the following steps:
[0034] S10, generating a device file corresponding to the cloud phone, wherein the device file is used to record screen rotation information of the cloud phone;
[0035] Specifically, the host computer generates a device file corresponding to the cloud phone, which can communicate with the cloud phone and record the screen rotation information of the cloud phone in the device file when the cloud phone screen rotates.
[0036] It should be noted that the host usually refers to a physical server running virtualization software, on which multiple virtual machines can run. The main task of the host is to allocate resources and manage virtualization software. Virtual machines (guests) are virtual computers created on the host. They share the physical resources of the host, such as processors, memory, storage, networks, etc. When virtual machines are running, they look like they are running directly on the host. The operating system, applications, and data of the virtual machine are stored in the virtual disk.
[0037] S20, receiving screen rotation information of the cloud phone, and writing the screen rotation information into the corresponding device file; sending the screen rotation information in the corresponding device file to the corresponding user terminal.
[0038] Specifically, when the host receives the screen rotation information of the cloud phone, it writes the screen rotation information into the device file corresponding to the cloud phone;
[0039] Furthermore, since the host machine has been monitoring the device file, when the data in the device file changes, it means that the screen display of the cloud phone has changed. At this time, the host machine will send the data of the device file to the user terminal, and the user terminal will automatically make corresponding adjustments to the display of the user terminal based on the received information.
[0040] It should be noted that the user terminal can connect to the cloud phone through a mobile phone APP, a mini program, etc. In this embodiment, no specific limitation is made on the way in which the user terminal connects to the cloud phone.
[0041] See also Figure 2 The present invention provides a method for adaptively rotating the screen of a cloud phone. A device file corresponding to the cloud phone is generated on a host machine, and the device file is used to record the screen rotation information of the cloud phone. When the screen of the cloud phone rotates, the host machine receives the screen rotation information of the cloud phone and writes the rotation information into the corresponding device file. The screen rotation information in the device file is sent to the corresponding user terminal, so that the user terminal can automatically rotate the screen according to the rotation information, thereby making the screen of the user terminal consistent with that of the cloud phone. Compared with the related art, this implementation has the following effects:
[0042] 1. Improve user experience: By automatically synchronizing the screen rotation of the cloud system and the user terminal, users do not need to manually click the rotation button of the user terminal, thus avoiding interrupting the user's operation process and improving the user experience.
[0043] 2. Simplified operation: Users do not need to pay attention to the screen direction of the cloud phone system at all times and adjust it manually when necessary, which greatly reduces the complexity of user operations.
[0044] 3. Reduce reaction delay: Since the screen rotation information of the cloud machine system can be transmitted to the user terminal in real time, the user does not need to spend a certain amount of time to react and operate after seeing the screen rotation of the cloud phone system. In this way, the screen of the user terminal can follow the screen rotation of the cloud machine system in real time, avoiding the situation where the screen direction of the user terminal and the cloud phone are inconsistent.
[0045] In a certain embodiment of the present invention, the generating of the device file corresponding to the cloud phone includes: obtaining all the cloud phone information corresponding to the host machine, and generating a corresponding device file for all the cloud phones according to the cloud phone information.
[0046] It is understandable that, since one host machine is for at least one cloud phone, when one host machine corresponds to multiple cloud phones, a corresponding device file needs to be generated for each cloud phone, and each device file records the screen rotation information of the corresponding cloud phone.
[0047] In a certain embodiment of the present invention, sending the screen rotation information in the device file to the corresponding user terminal includes: using a Stream program to send the screen rotation information in the device file to the corresponding user terminal.
[0048] It should be noted that Stream program is an API for operating collections (such as Collection, array, etc.) in Java. It provides a powerful and expressive programming model that can process data in a more concise and readable way. The main functions of Stream include data conversion, filtering, aggregation and other operations, which can greatly simplify data processing and avoid explicitly using iterators or loops to operate collections, thereby improving the readability and simplicity of the code.
[0049] In this example, a Stream program is installed on the host machine. The Stream program is responsible for monitoring the modification of the device files by the cloud hand phone, and initiating a corresponding request to the user terminal according to the data of the modification information, so that the user terminal can make corresponding modifications.
[0050] In a certain embodiment of the present invention, the screen rotation information includes: a rotation angle and a rotation direction.
[0051] It is understandable that due to different applications on the cloud phone, their display directions and angles may be different. For example, when running certain applications (such as games) in the cloud phone, the game may need to adjust the plan in real time to give users a better visual experience. Therefore, when the cloud phone screen changes, the screen rotation angle and rotation direction need to be recorded in the device file. The host machine sends the device file information to the user terminal so that the user terminal screen can make corresponding adjustments to the screen display according to the device file information.
[0052] See also Figure 3 The embodiment of the present invention also provides a method for adaptively rotating a screen of a cloud phone, comprising the following steps:
[0053] S100, mounting a device file corresponding to the mapping, wherein the device file is used to record screen rotation information of the cloud phone;
[0054] Specifically, it can be understood that the cloud phone needs to mount and map the device file corresponding to itself from the host machine, and the device file is used to record the screen rotation information of the cloud phone.
[0055] S200: Obtain screen rotation information of the cloud phone, and write the screen rotation information into the device file.
[0056] Specifically, when the screen of the cloud phone changes, the screen rotation information of the cloud phone needs to be written into the corresponding device file so that the host machine can send the information of the device file to the corresponding user terminal.
[0057] See also Figure 2 The present invention maps the corresponding device file on the host machine by mounting the cloud phone, and the device file is used to record the screen rotation information of the cloud phone; when the screen of the cloud phone rotates, the screen rotation information is sent to the host machine, and the host machine receives the screen rotation information of the cloud phone and writes the rotation information into the corresponding device file; the screen rotation information in the device file is sent to the corresponding user terminal, so that the user terminal can automatically rotate the screen according to the rotation information, thereby making the screen of the user terminal consistent with that of the cloud phone. Compared with the related art, this implementation has the following effects:
[0058] 1. Improve user experience: By automatically synchronizing the screen rotation of the cloud system and the user terminal, users do not need to manually click the rotation button of the user terminal, thus avoiding interrupting the user's operation process and improving the user experience.
[0059] 2. Simplified operation: Users do not need to pay attention to the screen direction of the cloud phone system at all times and adjust it manually when necessary, which greatly reduces the complexity of user operations.
[0060] 3. Reduce reaction delay: Since the screen rotation information of the cloud machine system can be transmitted to the user terminal in real time, the user does not need to spend a certain amount of time to react and operate after seeing the screen rotation of the cloud phone system. In this way, the screen of the user terminal can follow the screen rotation of the cloud machine system in real time, avoiding the situation where the screen direction of the user terminal and the cloud phone are inconsistent.
[0061] In a certain embodiment of the present invention, the mounting mapping corresponding device files includes: when the cloud phone is started or running, automatically mounting the mapping corresponding device files.
[0062] It should be noted that when the cloud phone is started or running, it will traverse the host machine to find whether there is a corresponding device file. If it exists, the corresponding device file will be automatically mounted and mapped.
[0063] In one embodiment of the present invention, the obtaining of the screen rotation information of the cloud phone and writing the screen rotation information into the device file comprises the following steps:
[0064] S201, using a callback function to monitor whether the cloud phone screen is rotated;
[0065] It should be noted that when the screen of the cloud system rotates, a callback function will be triggered. This callback function is defined in the WindowsManagerService and DisplayRotation classes. This callback function will be called when the screen rotates to handle the screen rotation event.
[0066] S202: If the screen rotates, obtain the screen rotation information of the cloud phone, and write the screen rotation information into the device file.
[0067] Specifically, when the screen of the cloud phone rotates, data will be written to the corresponding device file in the callback function. This data contains information about the screen rotation, such as the rotation direction and rotation angle. This process is implemented through the methods in the RotationPoly class.
[0068] See also Figure 4 The embodiment of the present invention further provides a screen adaptive rotation device 300 for a cloud phone, comprising:
[0069] A generating module 301 is used to generate a device file corresponding to the cloud phone, wherein the device file is used to record screen rotation information of the cloud phone;
[0070] The writing module 302 is used to receive the screen rotation information of the cloud phone and write the rotation information into the corresponding device file;
[0071] The sending module 303 is used to send the screen rotation information in the device file to the corresponding user terminal.
[0072] An embodiment of the present invention also provides a computer electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the cloud phone screen adaptive rotation method as described in any one of the above items are implemented.
[0073] For details, please refer to Figure 5 The electronic device 500 includes: a transceiver 501, a bus interface and a processor 502, wherein the processor 502 is used to generate a device file corresponding to the cloud phone, and the device file is used to record the screen rotation information of the cloud phone; receive the screen rotation information of the cloud phone, and write the screen rotation information into the corresponding device file; send the screen rotation information in the corresponding device file to the corresponding user terminal.
[0074] In the embodiment of the present invention, the electronic device 500 further includes a memory 503. Figure 5 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 502 and memory represented by memory 503. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 501 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 502 is responsible for managing the bus architecture and general processing, and the memory 503 may store data used by the processor 502 when performing operations.
[0075] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method for adaptively rotating the screen of a cloud phone as described in any one of the above are implemented.
[0076] In this embodiment, the computer readable storage medium may be a non-volatile storage medium or a volatile storage medium. For example, the computer storage medium may include but is not limited to: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0077] In all examples shown and described herein, any specific values should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.
[0078] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0079] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0080] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0081] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a terminal device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
[0082] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A method for adaptively rotating a screen of a cloud phone, characterized in that: include: Generate a device file corresponding to the cloud phone, wherein the device file is used to record screen rotation information of the cloud phone; Receiving screen rotation information of the cloud phone, and writing the screen rotation information into the corresponding device file; The screen rotation information in the corresponding device file is sent to the corresponding user terminal.
2. The screen adaptive rotation method of a cloud phone according to claim 1, characterized in that: The generating of the device file corresponding to the cloud phone includes: All cloud phone information corresponding to the host machine is obtained, and a corresponding device file is generated for all cloud phones according to the cloud phone information.
3. The cloud phone screen adaptive rotation method according to claim 1, characterized in that: The sending the screen rotation information in the device file to the corresponding user terminal includes: The Stream program is used to send the screen rotation information in the device file to the corresponding user terminal.
4. The screen adaptive rotation method of a cloud phone according to any one of claims 1 to 3, characterized in that: The screen rotation information includes: a rotation angle and a rotation direction.
5. A method for adaptively rotating a screen of a cloud phone, characterized in that: include: Mount the device file corresponding to the mapping, where the device file is used to record the screen rotation information of the cloud phone; The screen rotation information of the cloud phone is obtained, and the screen rotation information is written into the device file.
6. The screen adaptive rotation method of a cloud phone according to claim 5, characterized in that: The device file corresponding to the mount mapping includes: When the cloud phone is started or running, the corresponding device file is automatically mounted.
7. The method for adaptively rotating the screen of a cloud phone according to claim 5, characterized in that: The obtaining of the screen rotation information of the cloud phone and writing the screen rotation information into the device file includes: Use callback function to monitor whether the cloud phone screen rotates; If the screen rotates, the screen rotation information of the cloud phone is obtained and the screen rotation information is written into the device file.
8. A screen adaptive rotation device for a cloud phone, characterized in that: include: A generation module, used to generate a device file corresponding to the cloud phone, wherein the device file is used to record screen rotation information of the cloud phone; A writing module, used for receiving screen rotation information of the cloud phone and writing the rotation information into the corresponding device file; The sending module is used to send the screen rotation information in the device file to the corresponding user terminal.
9. A computer electronic device, characterized in that: It includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the cloud phone screen adaptive rotation method described in any one of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the cloud phone screen adaptive rotation method described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method, terminal and system for synchronously displaying multiple-screen images
CN103049235A
Method for monitoring screen rotation of Android application in background
CN110968481A
Method and system for ensuring that display picture of cloud mobile phone is matched with screen size of real mobile phone
CN114281289A
A data transmission method, system, device, and medium for cloud phones.
CN114938408A
