CN113835802A - Device interaction method, system, device and computer readable storage medium - Google Patents

Device interaction method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN113835802A
CN113835802A CN202111007786.6A CN202111007786A CN113835802A CN 113835802 A CN113835802 A CN 113835802A CN 202111007786 A CN202111007786 A CN 202111007786A CN 113835802 A CN113835802 A CN 113835802A
Authority
CN
China
Prior art keywords
language
window
display
interface
displayed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111007786.6A
Other languages
Chinese (zh)
Inventor
葛雄华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111007786.6A priority Critical patent/CN113835802A/en
Publication of CN113835802A publication Critical patent/CN113835802A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay

Abstract

The embodiment of the application discloses a device interaction method, a system, a device and a computer readable storage medium, and relates to the technical field of terminals. The method comprises the following steps: the method comprises the steps that a first device projects a screen to a second device, the first device displays a first interface by using a first language, a screen display area of the second device comprises a first display window, the display content of the first display window is the same as that of the first interface, and the system language of the second device is a second language. And when the first device detects that the first language is different from the second language, switching the first language used by the first interface into the second language. The second device displays the first interface displayed in the second language in the first display window. Therefore, the window language of the first display window can be flexibly switched to the system language of the second device, so that the display languages inside and outside the first display window are the same, and the flexibility of device interaction is improved.

Description

Device interaction method, system, device and computer readable storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a device interaction method, system, device, and computer-readable storage medium.
Background
With the rapid development of terminal technology, functions supported by electronic devices such as tablet computers and mobile phones are more and more abundant. For example, device a may project a screen to device B, so that device B creates a display window in the screen display area, and displays the display screen of device a in the display window.
In the related art, if the device a displays the first interface in the first language, when the device a casts a screen to the device B, the device B will also display the first interface displayed in the first language in the display window, and the display area outside the display window is displayed in the system language of the device B. That is, the window language of the display window on the device B can only be the language used by the display interface being displayed by the device a, and the display language outside the display window is usually the system language of the device B.
However, if the system language of the device B is a second language different from the first language used in the first interface of the device a, the display language inside the display window on the device B is the first language, and the display language outside the display window is the second language, that is, the display languages inside and outside the display window are not consistent, which has certain limitations.
Disclosure of Invention
The application provides a device interaction method, a device interaction system, a device and a computer readable storage medium, which can solve the problem that in the prior art, the window language of a display window in a projected screen device can only be the display language of a display interface of the projected screen device, which may cause the display languages inside and outside the display window to be inconsistent and have limitation.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, a device interaction method is provided, which is applied to a first device, where the first device casts a screen to a second device, the first device displays a first interface using a first language, a screen display area of the second device includes a first display window, display contents of the first display window and the first interface are the same, and a system language of the second device is a second language, and the method includes:
and when the first language is detected to be different from the second language, switching the first language used by the first interface into the second language.
Therefore, when the display language of the first interface of the first device is different from the system language of the second device, the first device can switch the display language of the first interface into the system language of the second device, so that the second device can display the first interface displayed by the system language of the second device in the display window, the display languages inside and outside the display window are the same, and the interaction flexibility of the devices and the watching experience of a user are improved.
In a possible implementation manner, if the first language is a system language of the first device, switching the first language used by the first interface to the second language may be implemented by switching the system language of the first device from the first language to the second language.
In another possible implementation manner, if the first language is the interface setting language of the first interface, switching the first language used by the first interface to the second language may be implemented by switching the interface setting language of the first interface from the first language to the second language.
In one embodiment, the setting of the window language of the first display window to the second language may be determined by:
the first implementation mode comprises the following steps: acquiring first window information configured by first equipment, wherein the first window information is used for indicating a window language of a display window of the first equipment when the display window is displayed on other equipment; and determining the window language indicated by the first window information as the second language.
The first window information is information configured by the first device, and the first device can set the window language of the first display window by configuring the first window information. The first window information may be configured by default by the first device, or may be set by the user, which is not limited in this embodiment of the application.
As one example, the first window information may indicate at least one of the following information:
1) the window language of the display window of the first device when displayed on other devices is the system language of the first device, and the display window of the first device is used for displaying screen projection data of the first device.
2) The window language when the display window of the first device is displayed on the other device is the system language of the other device.
3) The window language of the display window of the first device when displayed on the other devices is a first preset language.
4) The window language in which the display window of the first device is displayed on the other device is related to the system language type of the first device.
That is, the window language when the display window of the first device is displayed on the other device corresponds to the system language type of the first device, and different system language types may correspond to different window languages. The correspondence between the system language type of the first device and the window language of the display window of the first device may be set by default or by a user, which is not limited in the embodiment of the present application.
5) The window language in which the display window of the first device is displayed on the other device is related to the device type of the other device.
That is, the window language when the display window of the first device is displayed on the other device corresponds to the device type of the other device, and different device types correspond to different window languages. The correspondence between the device type of the other device and the window language of the display window of the first device may be set by default or by a user, which is not limited in this application. The device types of the other devices may include a mobile phone, a tablet computer, a computer, and the like, and may also include other device types, which are not limited in this embodiment.
As an example, the manner of acquiring the first window information configured by the first device may include: displaying a first setting interface, wherein the first setting interface comprises a plurality of first configuration options, and the plurality of first configuration options are used for indicating a plurality of configuration forms of window languages of a display window of the first device displayed on other devices. Then, a first selection instruction is received based on the first setting interface, and first window information is determined according to a first configuration option selected by the first selection instruction.
For example, the plurality of first configuration options are a plurality of language identifiers, and the first device may determine, according to the language identifier selected by the first selection instruction, that the window language of the display window of the first device, which is used to indicate that the window information is displayed on the other device, is the language indicated by the language identifier selected by the first selection instruction.
The second implementation mode comprises the following steps: receiving second window information sent by the second device, wherein the second window information is used for indicating the window language of the display window of the other device displayed on the second device; and determining the window language indicated by the second window information as the second language.
The second window information is configured by the second device, and the second device can set the window language of the first display window by sending the first window information to the first device. The second window information may be configured by default by the second device, or may be set by the user, which is not limited in this embodiment of the application.
As an example, the second window information is used to indicate at least one of the following information:
1) the window language of the display windows of the other devices displayed on the second device is the system language of the second device;
2) the window language of the display window of the other device displayed on the second device is the system language of the other device;
3) the window language of the display windows of the other devices displayed on the second device is a second preset language;
4) the window language of the display windows of the other devices displayed on the second device is related to the system language type of the second device;
5) the window language of the display windows of the other devices displayed on the second device is related to the device type of the second device.
As one example, the second window information includes a second language identification, and the second window information is used to indicate that the window language of the display window of the other device displayed on the second device is the second language.
The third implementation mode comprises the following steps: acquiring first window information configured by first equipment; receiving second window information sent by second equipment; and determining the window language indicated by the window information with the highest priority in the first window information and the second window information configured by the first device as the second language according to the priority sequence.
In a case where the first device is configured with the first window information and the second device is also configured with the second window information, the window languages indicated by the first window information and the second window information may conflict. In order to solve the conflict between the first window information and the second window information, in the embodiment of the present application, a priority ranking may also be set in advance, where the priority ranking is used to indicate a priority order of the first window information and the second window information. Therefore, under the condition that the first device is configured with the first window information and the second device is also configured with the second window information, the first device can acquire the priority order of the first window information and the second window information and determine the window language indicated by the window information with the highest priority in the first window information and the second window information as the window language of the first display window according to the priority order.
In one embodiment, when receiving the instruction of terminating screen projection, the first device may also terminate screen projection to the second device, and switch the second language used by the first interface to the first language.
That is, when the screen projection termination instruction is received, the first device may also restore the display language switched by the first interface, that is, switch to the original display language, so that the user may use the first device conveniently, and the user experience of the first device is improved.
In one embodiment, when detecting that the second language is different from the first language, the first device may further send the first screen projection data to the second device to switch the window language of the first display window to the second language without switching the first language used by the first interface to the second language.
The first screen projection data comprises a first interface displayed by using a second language, and the first screen projection data is used for being displayed in the first display window.
As one example, the first device may load the first screen projection data according to the second language before sending the first screen projection data to the second device. The manner of loading the first screen projection data according to the second language may include the following two:
the first implementation mode comprises the following steps: loading a language pack of a second language; loading second screen projection data to be projected to the second equipment, wherein the second screen projection data comprises a first interface displayed by using a first language; and replacing the display language of the second screen projection data with the second language according to the language package to obtain the first screen projection data.
The second implementation mode comprises the following steps: generating a data loading instruction according to a second language, wherein the data loading instruction carries a second language identifier; and loading screen projection data to be projected to the second equipment according to the data loading instruction to obtain first screen projection data.
In addition, in the embodiment of the application, besides the window language of the first display window can be switched to the system language of the second device, the window language of the first display window can also be switched to other languages, for example, to a third language different from the first language and the second language.
For example, when a switching instruction for switching the window language of the first display window to the third language is detected, the first device may switch the first language used by the first interface to the third language.
Or when a switching instruction for switching the window language of the first display window to the third language is detected, the third screen projection data is sent to the second device under the condition that the first language used by the first interface is not switched to the third language. And the third screen projection data comprises a first interface displayed by using a third language, and the third screen projection data is used for being displayed in the first display window.
As an example, detecting a switch instruction to switch the window language of the first display window to the third language may include the following implementation:
the first implementation paradigm: and when detecting that the window language indicated by the first window information configured by the first device is the third language, determining to receive the switching instruction.
The second implementation mode comprises the following steps: and when second window information sent by the second device is received and the window language indicated by the second window information is a third language, determining that the switching instruction is received.
The third implementation mode comprises the following steps: and when second window information sent by second equipment is received and the window language indicated by the window information with the highest priority in the first window information and the second window information configured by the first equipment is determined to be a third language according to the priority sequence, determining that the switching instruction is received.
In a second aspect, an apparatus for implementing device interaction is provided, where the apparatus for implementing device interaction has a function of implementing the behavior of the device interaction method in the first aspect. The apparatus for implementing device interaction includes at least one module, where the at least one module is configured to implement the device interaction method provided by the first aspect.
In a third aspect, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method according to any of the first aspect as described above when executing the computer program.
In a fourth aspect, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, performs the method of any of the first aspects described above.
In a fifth aspect, a chip system is provided, the chip system comprising a processor coupled to a memory, the processor executing a computer program stored in the memory to implement the method according to any of the first aspect. The chip system can be a single chip or a chip module consisting of a plurality of chips.
A sixth aspect provides a computer program product for causing an electronic device to perform the method of any of the above first aspects when the computer program product is run on the electronic device.
In a seventh aspect, a device interaction method is provided, where the method is applied to a second device, the second device is projected by a first device, the first device displays a first interface using a first language, a screen display area of the second device includes a first display window, the first display window and the first interface have the same display content, and a system language of the second device is a second language, and the method includes:
in the case where the first language is different from the second language, a first interface displayed using the second language is displayed in the first display window.
Under the condition that the first language is different from the second language, the first interface displayed by the second language is displayed in the first display window, and the window language of the first display window can be switched to the second language, so that the display languages inside and outside the first display window are the same, a user can watch the first display window conveniently, and the user experience is improved.
As one example, the second device may receive first screen projection data transmitted by the first device in a case where the first language is different from the second language, the first screen projection data including a first interface displayed using the second language. And then displaying a first interface displayed by using a second language in the first display window according to the first screen projection data.
In one embodiment, before displaying the first interface displayed in the second language in the first display window, the second device may further send second window information to the first device, through which the first device is instructed to switch the window language of the first display window to the second language.
The second window information is used for indicating the window language of the display window of the other device displayed on the second device, and the window language indicated by the second window information is the second language.
As an example, the second window information is used to indicate at least one of the following information:
1) the window language of the display windows of the other devices displayed on the second device is the system language of the second device;
2) the window language of the display window of the other device displayed on the second device is the system language of the other device;
3) the window language of the display windows of the other devices displayed on the second device is a second preset language;
4) the window language of the display windows of the other devices displayed on the second device is related to the system language type of the second device;
5) the window language of the display windows of the other devices displayed on the second device is related to the device type of the second device.
As one example, the second window information includes a second language identification, and the second window information is used to indicate that the window language of the display window of the other device displayed on the second device is the second language.
As an example, the second device may first obtain second window information configured by the second device, and then send the second window information to the first device.
For example, the manner for the second device to obtain the second window information configured by the second device may include: displaying a second setting interface, wherein the second setting interface comprises a plurality of second configuration options which are used for indicating a plurality of configuration forms of window languages of display windows of other devices displayed on the second device; and then receiving a second selection instruction based on the second setting interface, and determining second window information according to a second configuration option selected by the second selection instruction.
For example, the plurality of second configuration options are a plurality of language identifiers, and the second device may determine, according to the language identifier selected by the second selection instruction, that the window language of the display window of the other device used for displaying the second window information on the second device is the language indicated by the language identifier selected by the second selection instruction.
In an eighth aspect, an apparatus for implementing device interaction is provided, where the apparatus for implementing device interaction has a function of implementing the behavior of the device interaction method in the seventh aspect. The apparatus for implementing device interaction includes at least one module, where the at least one module is configured to implement the device interaction method provided in the seventh aspect.
A ninth aspect provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method according to any of the above seventh aspects when executing the computer program.
A tenth aspect provides a computer-readable storage medium, storing a computer program which, when executed by a processor, implements the method of any one of the preceding seventh aspects.
In an eleventh aspect, a chip system is provided, the chip system comprising a processor coupled with a memory, the processor executing a computer program stored in the memory to implement the method according to any of the above seventh aspects. The chip system can be a single chip or a chip module consisting of a plurality of chips.
A twelfth aspect provides a computer program product, which, when run on an electronic device, causes the electronic device to perform the method of any of the seventh aspects above.
In a thirteenth aspect, a device interaction system is provided, where the device interaction system includes a first device and a second device, the first device projects a screen to the second device, the first device displays a first interface using a first language, a screen display area of the second device includes a first display window, the first display window and the first interface have the same display content, and a system language of the second device is a second language;
and the second equipment is used for displaying the first interface displayed by using the second language in the first display window under the condition that the first language is different from the second language.
The second device may switch the window language of the first display window to the second language by displaying the first interface displayed in the second language in the first display window.
In one embodiment, the first device is configured to switch the first language used by the first interface to the second language when detecting that the second language is different from the first language, to implement switching the window language of the first display window to the second language.
In one embodiment, the first device is configured to send the first screen projection data to the second device to implement switching the window language of the first display window to the second language without switching the first language used by the first interface to the second language when detecting that the second language is different from the first language. Wherein the first screen projection data comprises a first interface displayed in a second language.
In one embodiment, the second device is further configured to display the first interface in the first display window displayed using a third language, the third language being different from both the first language and the second language. In this way, the window language of the first display window can be switched to a third language other than the first language and the second language, so that flexible configuration of the window language of the first display window is realized.
In one embodiment, the first device is configured to switch the window language of the first display window to the third language by switching the first language used by the first interface to the third language when a switch instruction for switching the window language of the first display window to the third language is detected.
In another embodiment, the first device is configured to send third screen projection data to the second device without switching the first language used by the first interface to the third language when a switching instruction for switching the window language of the first display window to the third language is detected, where the third screen projection data includes the first interface displayed in the third language.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a block diagram of a software structure of an electronic device 100 according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a device interaction system provided by an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a screen shot by a mobile phone to a computer according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another embodiment of the present application showing a mobile phone projecting a screen to a computer;
FIG. 6 is a schematic diagram of a screen projected from a mobile phone to a computer according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a user interface of a computer provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of a user interface of another computer provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of a user interface of a computer provided in an embodiment of the present application;
FIG. 10 is a schematic diagram of a user interface of a computer provided by an embodiment of the present application;
FIG. 11 is a schematic diagram of a computer being projected by another mobile phone according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a computer being projected by another mobile phone according to an embodiment of the present application;
FIG. 13 is a schematic diagram of another device interaction system provided by an embodiment of the present application;
fig. 14 is a flowchart of a device interaction method provided in an embodiment of the present application;
FIG. 15 is a flowchart of another device interaction method provided in an embodiment of the present application;
fig. 16 is a logic diagram of a device interaction system according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference to "a plurality" in this application means two or more. In the description of the present application, "/" indicates an OR meaning, for example, A/B may indicate A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, for the convenience of clearly describing the technical solutions of the present application, the terms "first", "second", and the like are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
Before describing the device interaction method provided by the embodiment of the present application in detail, an execution subject related to the embodiment of the present application is described first. The method provided by the embodiment of the application can be executed by the electronic equipment. As an example of the present application, the electronic device may include, but is not limited to, a terminal device or a television set, and the like. Illustratively, the terminal device may include, but is not limited to, a mobile phone, a tablet computer, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or a smart wearable device, etc.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like. The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy. Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100. The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization. Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the electronic device 100.
Fig. 2 is a block diagram of a software structure of an electronic device 100 according to an embodiment of the present disclosure.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. Such as prompting for text messages in the status bar, sounding a prompt tone, vibrating an electrical device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display system and provide a fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Next, application scenarios and implementation environments related to embodiments of the present application will be described.
1) Device interaction scenarios
The device interaction method provided by the embodiment of the application is mainly applied to a device interaction scene in which one device sends the relevant data of the device to another device and the other device shows the relevant data. In the device interaction scenario, the related data sent by one device to another device is data to be displayed to another device, and is usually displayed in a display window of a screen display area by another device, so the related data sent to another device for displaying may be referred to as window display data.
The window display data may be all or part of information in a file of the device, or all or part of information in a display screen of the device, and the like.
For example, the device interaction scenario may be a screen projection scenario. That is, one device may send the screen projection data to another device for presentation in the screen projection window by the other device. The screen projection data may be a display screen or a file of the transmitting device. The file may be a document, an image or video file, etc.
2) Device interaction system
Referring to fig. 3, fig. 3 is a schematic diagram of an apparatus interaction system according to an embodiment of the present disclosure. As shown in fig. 3, the system includes a first device 31 and a second device 32, and the first device 31 and the second device 32 may communicate through a wired network or a wireless network.
After the first device 31 and the second device 32 establish a connection, the first device 31 may transmit window display data to the second device 32. After receiving the window display data transmitted by the first device 31, the second device 32 may display the window display data in the display window 321 of the screen display area.
The display window 321 is a display window created by the second device 32 for the first device 31, and is used to display window display data sent by the first device 31. For convenience of explanation, a display window for displaying window display data transmitted by the first device 31 may be referred to as a display window of the first device 31. In addition, the display window 321 may occupy a partial or whole area of the screen display area of the second device 32, which is not limited in this embodiment.
As an example, after receiving the window display data, if the second device 32 has not created the display window 321 of the first device 31, the second device may create the display window 321 in the screen display area, and then display the window display data in the created display window 321. If the display window 321 of the first device 31 has been created, the window display data may be displayed directly in the created display window 321.
The first device 31 and the second device 32 may be terminal devices with a display function, such as a mobile phone, a tablet computer, a smart television, a projector, or a wearable device. Fig. 3 is only an example in which the first device 31 is a mobile phone and the second device is a computer.
As an example, the device interaction system shown in fig. 3 described above may be applied to a screen projection scenario. For example, the first device 31 may project a screen to the second device 32 to project a file or a display screen of the first device to the second device 32 for display. That is, the window display data sent by the first device 31 to the second device 32 is screen projection data, and the screen projection data may be a display screen or a file of the first device 31.
It should be noted that the screen projection scene may be a push screen projection scene or a mirror screen projection scene.
The screen pushing and projecting means that a file of one device is projected to another device in a streaming media mode to be played, and the file comprises video, audio, images or documents and the like. For example, a video on a mobile phone is delivered to a smart television in a streaming media mode for playing, so that the use of the mobile phone by a user is not influenced in the process, and the user can still operate the mobile phone.
The mirror image screen projection means that a display picture of one device is projected to other devices of another device for display, that is, the whole screen of one device is displayed on the other device in a mirror image mode. For example, a display screen of a mobile phone is put on a projector for displaying, and in the process, what content is displayed by the mobile phone, the same content is also displayed by the projector, which is equivalent to displaying the same content on the same screen.
As an example, in the process of the first device 31 projecting the screen to the second device 32, the first device 31 may display the first interface using the first language, and the screen display area of the second device 32 includes a display window 321, where the display window 321 is used to display the projection data of the first device 31, and the projection data may be a display screen of the first device 31 or a file of the first device 31. For example, the screen projection data is a display screen of the first device 31, and the display window 321 has the same display content as the first interface, that is, the first interface displayed in the first language is also displayed in the display window 321, and the display area outside the display window 321 is displayed in the system language of the second device 32.
For example, if the system language of the second device 32 is the second language, the display language inside the display window 321 is the first language, and the display language outside the display window 321 is the second language. If the first language is different from the second language, the display languages inside and outside the display window 321 will be different, which affects the viewing experience of the user.
For ease of understanding, the device interaction system will be described below as applied to a screen projection scenario.
Taking the example of the screen projection from the mobile phone to the computer, referring to fig. 4, when the mobile phone 41 receives a screen projection instruction for projecting the screen to the computer 42, the mobile phone 41 may obtain screen projection data to be projected, and send the obtained screen projection data to the computer 42. The computer 42, upon receiving the screen projection data, may display the screen projection data in the display window 421 of the screen display area. As shown in fig. 4, the screen projection data is a display screen of the mobile phone 41. Of course, the screen projection data may also be a multimedia file of the mobile phone 41, such as a video played by the mobile phone 41.
Referring to fig. 4, in the process of the mobile phone 41 projecting the screen to the computer 42, the mobile phone 41 uses the english display user interface 401, the computer 42 displays the user interface 402, the user interface 402 includes a display window 421, the display window 421 is used for displaying the screen projecting data of the mobile phone 41, for example, the display window 421 has the same display content as the user interface 401, and also displays the user interface 401 using the english display. However, if the system language of the computer 42 is simplified chinese, the display language inside the display window 421 is english, the display language outside the display window 421 is simplified chinese, and the display languages inside and outside the display window are different, which may affect the user's viewing.
In the embodiment of the application, in order to avoid that the window language of the display window may not meet the viewing requirement of a user, the window language of the display window can be flexibly configured according to the viewing requirement of the user, an equipment interaction method is provided, and the window language of the display window can be flexibly switched in the method so as to meet the viewing requirement of the user.
For example, referring to fig. 4, in a case that the display language of the user interface 401 is different from the system language of the computer 42, the display language of the display window 421 may be switched to simplified chinese that is the same as the system language of the computer 42 by the method provided in the embodiment of the present application, so that the display window 421 displays the user interface 401 displayed in simplified chinese. In addition, the display language of the display window 421 may be switched to a language other than the display language of the user interface 401 and the system language of the computer 42, which is not limited in the embodiment of the present application.
Taking the device interaction system shown in fig. 3 as an example, in the process of projecting the screen to the second device 32 by the first device 31, it is assumed that the first device 31 displays the first interface in the first language, the screen display area of the second device 32 includes a display window 321, the display window 321 has the same display content as the first interface, and the system language of the second device 32 is the second language. By the method provided by the embodiment of the present application, in the case that the first language is different from the second language, the second device 32 may display the first interface displayed using the second language in the display window 321, so as to switch the window language of the display window 321 to the second language.
For example, the first device 31 may send first screen projection data to the second device 32 when detecting that the first language is different from the second language, the first screen projection data including the first interface displayed using the second language. After receiving the first screen projection data, the second device 32 may display the first interface displayed in the second language in the display window 321 according to the first screen projection data.
When detecting that the first language is different from the second language, the first device 31 may send the first screen projection data to the second device 32 by switching the first language used by the first interface to the second language. In addition, the first screen projection data may be sent to the second device 32 without switching the first language used by the first interface to the second language, that is, without changing the display language used by the first interface, which is not limited in this embodiment of the present application.
It should be understood that the second device 32 may also display the first interface displayed in any other language in the display window 321 to switch the window language of the display window 321 to any language. For example, a first interface displayed in a third language is displayed in the display window 321 to switch the window language of the display window 321 to the third language, where the third language is a language other than the first language and the second language.
As an example, before the first device 31 sends the screen projection data to the second device 32, the first device 10 may determine a window language required by the display window 321 on the second device 32 as a target language, then obtain the screen projection data with the display language being the target language, and then send the obtained screen projection data to the second device 32, so that after the second device 32 receives the screen projection data, the screen projection data may be displayed in the target language in the display window 321. Therefore, the window language of the display window 321 can be set according to the needs of the user, so that the window language of the display window 321 meets the watching requirements of the user, and the flexibility is improved.
It should be noted that the window language (target language) required for displaying the window 321 may be set by the second device 32, or may be set by the first device 31, which is not limited in this embodiment of the present application.
1) Setting a target language by the second device 32
Next, a setting method of setting a window language required for a display window by a computer will be described by taking an example in which the first device 31 is a mobile phone, the second device 32 is a computer, and the mobile phone is projected on the computer.
Referring to fig. 5, fig. 5 is a schematic view illustrating another mobile phone projecting a screen to a computer according to an embodiment of the present application. As shown in fig. 5, after the user triggers the mobile phone 51 to project a screen to the computer 52, in response to the user's operation, the mobile phone 51 establishes a communication connection with the computer 52, and then transmits a display screen of the mobile phone 51 as screen projection data to the computer 52 through the established communication connection. For example, if the mobile phone 51 displays the user interface 501, the user interface 501 may be transmitted to the computer 52 as screen projection data. After receiving the screen projection data sent by the mobile phone 51, the computer may display the user interface 502, where the user interface 502 includes a display window 521 created in the screen display area, and the display window 521 is used to display the screen projection data sent by the mobile phone 51, such as displaying the same content as the user interface 501 of the mobile phone 51.
In addition, when the display window 521 displays the screen projection data of the mobile phone 51, the window language of the display window 521 will be the same as the display language of the user interface 501 of the mobile phone 51. The display language of the user interface 501 of the mobile phone 51 may be the system language of the mobile phone 51, or may be a language set for an interface configured separately for the user interface 501. Referring to fig. 5, if the display language of the user interface 501 of the mobile phone 51 is english, the window language of the display window 521 is also english when the display window 521 displays the screen projection data of the mobile phone 51. However, if the system language of the computer 52 is simplified chinese and is different from the window language of the display window 521, the contents inside and outside the display window 521 will be displayed in different languages, which may not meet the viewing requirements of the user and affect the viewing experience of the user.
In this embodiment, in order to facilitate the user to set the window language of the display window 521 through the computer 52, when the mobile phone 51 and the computer 52 start device interaction, the computer 52 may display a second setting entry on the user interface 502, where the second setting entry is used to set the window language of the display window of another device displayed on the computer 52, and further set the window language of the display window 521.
The second setting entry may be a second setting window, a plurality of second configuration options are displayed in the second setting window, the plurality of second configuration options are used to indicate a plurality of window language configuration forms, and a user may configure the window language of the display window of the other device displayed on the computer 52 by selecting a second configuration option meeting requirements from the plurality of second configuration options. The second setting window may be a pop-up window or a prompt box, and the window form of the second setting window is not limited in the embodiment of the present application.
For example, the plurality of second configuration options may indicate to configure the window language of the display window of the other device displayed on the computer 52 to the system language of the computer 52, the system language of the other device, or a specified language, etc. Alternatively, the plurality of second configuration options may be language identifications of a plurality of languages.
In addition, the second setting window may further include an input box in which the user can set the window language of the display window of the other device displayed on the computer 52 by inputting the window language. The computer 52 may acquire the language input in the input box as the window language of the display window of the other device displayed on the computer 52.
Or, the second setting entry may also be an icon or a control, etc. for triggering the second setting window or the second setting interface. The second setup interface includes a plurality of second configuration options.
Referring to fig. 5, when device interaction starts after the mobile phone 51 establishes a connection with the computer 52, the user interface 502 of the computer 52 may pop up a language setting window 522, and the language setting window 522 is used to set a window language of the display window 521. In this manner, the user can set the window language of the display window 521 through the language setting window 522.
For example, the language setting window 522 may include a plurality of language options, such as simplified Chinese and English language options, but may also include other language options. If the user wants to set the window language of the display window 521 to simplified chinese, simplified chinese may be selected from a plurality of language options of the language setting window 522 and then a confirm button may be clicked. In response to the click operation of the user, the computer 52 may send the second window information to the mobile phone 51, where the second window information includes the language identifier of simplified chinese, so as to control the language of the screen-projecting data sent by the mobile phone 51 through the second window information, so as to control the window language of the display window 521.
Referring to fig. 6, after the mobile phone 51 receives the second window information sent by the computer 52, the mobile phone 51 may switch the user interface 501 displayed in english of the mobile phone 51 to the user interface 503 displayed in simplified chinese according to the language identifier of simplified chinese included in the second window information, and send the switched user interface 503 as screen projection data to the computer 52. After receiving the screen projection data, the computer 52 can switch to the user interface 504, that is, the same display content as the user interface 504 is displayed in simplified chinese in the display window 521, thereby realizing switching of the window language of the display window 521 to simplified chinese.
The manner of switching the user interface 501 of the mobile phone 51 to the user interface 503 displayed in simplified chinese may include: if the display language of the user interface 501 is the system language of the mobile phone 51, the system language of the mobile phone 51 is switched from english to simplified chinese. If the display language of the user interface 501 is the interface setting language of the user interface 501, the interface setting language of the user interface 501 is switched from english to simplified chinese. Of course, other language switching manners may also be included, which is not limited in the embodiments of the present application.
In addition, after the mobile phone 51 switches the display language of the user interface 501 from english to simplified chinese according to the setting of the computer 52 to obtain the user interface 503, if the mobile phone 51 is disconnected from the computer 52, the mobile phone 51 can also restore the switched display language. Referring to fig. 6, after the mobile phone 51 is disconnected from the computer 52, the mobile phone 51 can switch the display language of the user interface 503 from simplified chinese to english again. In addition, the computer 52 may also cancel the display of the display window 521.
When the first device is disconnected from the second device, the switched display language of the first device is recovered, so that the first device can be conveniently used by a user, and the user experience of using the first device is improved.
It should be understood that fig. 5 is only an example of the computer 52 automatically triggering the second setup portal when the mobile phone 51 starts to perform device interaction, and in other embodiments, the second setup portal may automatically trigger the display at other times, such as automatically triggering the display during the process of the mobile phone 51 projecting the screen to the computer 52. The embodiment of the present application does not limit the timing when the computer 52 triggers the display of the second setting entry.
In addition, the second setup portal or second setup interface may also be user-triggered to display, for example, the user may trigger the computer 52 to display the second setup portal or second setup interface through the relevant interface operation. The user may trigger the computer 52 to display the second setting entry or the second setting interface under the condition that the computer 52 performs device interaction with other devices, or may trigger the computer 52 to display the second setting entry or the second setting interface under the condition that the computer 52 does not perform device interaction with other devices, which is not limited in this embodiment of the present application.
Referring to fig. 7, fig. 7 is a schematic view of a user interface of a computer according to an embodiment of the present disclosure. As shown in fig. 7, if the user wants to set the window language of the display windows of other devices displayed on the computer 52, the user may open a device-interactive application of the computer 52, where the device-interactive application may be a screen-casting application or a multi-screen collaborative application. In response to the user's operation, the computer 52 may display a main interface of the device-interactive application, and the user may open a setting interface of the device-interactive application through the main interface of the device-interactive application. In response to the user's operation, the computer 52 displays a setting interface 701 of the device interaction application, the setting interface 701 including a window language setting option, and other setting options. The user clicks on the window language setting option, and in response to the user clicking, the computer 52 displays a second setting interface 702, where the second setting interface 702 includes a plurality of second configuration options, respectively:
1) a system language following the parent device;
2) a system language of the follower sub-device;
3) a fixed language;
4) a system language type of the follower sub-device;
5) a system language type following the parent device;
6) a device type of the follower sub-device;
7) the device type following the parent device.
In the embodiment of the present application, for convenience of description, a device that transmits window display data to another device and displays the window display data by the other device may be referred to as a child device. A device that receives window display data transmitted by another device and displays the received window display data in a display window created in the screen display area is referred to as a parent device. A display window displayed on the parent device for displaying window display data transmitted by the child device is referred to as a display window of the child device.
The system language following the child device is used to indicate that the window language of the display window of the other device displayed on the parent device is the system language of the child device. For example, if the system language of the cellular phone 51 interacting with the computer 52 is english, the window language of the display window 521 on the computer 52 is set to english.
The system language following the parent device is used to indicate that the window language of the display window of the other device displayed on the parent device is the system language of the parent device. For example, if the system language of the computer 52 is simplified Chinese, the window language of the display window 521 on the computer 52 is set to simplified Chinese.
The fixed language is used to instruct that the window language of the display windows of the other devices displayed on the parent device is set to the specified language. The designated language may be set by default, may be selected from a plurality of selectable languages, or may be input by a user, which is not limited in the embodiment of the present application.
For example, referring to fig. 8, if the user clicks an arrow after the fixed language option in the second setting interface 702, the second setting interface 702 is switched to the next-level setting interface 703, and the setting interface 703 includes a plurality of sub-options of the fixed language: english, simplified Chinese and traditional Chinese, etc. It should be understood that the plurality of sub-options may also include other sub-options, which are not limited in this application. The user may select from the plurality of sub-options to set the language corresponding to the selected sub-option to the window language of the display window 521 in the computer 52. For example, if the user clicks the simplified chinese option, the cell phone 51 may set the window language of the display window 521 in the computer 52 to simplified chinese in response to the user's click operation.
The system language type following the child device is used to indicate that the window language of the display window of the other device displayed on the parent device is related to the system language type of the child device and is a language corresponding to the system language type of the child device. That is, the window language of the display window on the parent device corresponds to the system language type of the child device, and different system language types may correspond to different window languages. The correspondence between the system language type of the child device and the window language of the display window on the parent device may be set by default or by a user, which is not limited in the embodiment of the present application.
For example, referring to fig. 9, if the user clicks an arrow following the system language option of the sub device in the second setting interface 702, the second setting interface 702 is switched to the next setting interface 704 in response to the click operation of the user, and the setting interface 704 includes a window language corresponding to the system language type of the sub device. For example, if the system language of the child device is english, the window language of the display window on the parent device is simplified chinese; if the system language of the child equipment is traditional Chinese, the window language of the display window on the parent equipment is simplified Chinese; and if the system language of the child equipment is simplified Chinese, the window language of the display window on the parent equipment is English and the like. Of course, the correspondence between the window language of the display window on the parent device and the system language type of the child device may also be other correspondences, which is not limited in the embodiment of the present application.
In addition, the user can also change the corresponding relation. For example, referring to fig. 8, if the user wants to modify the window language corresponding to english, the user may click the modification option after the simplified chinese corresponding to english. And responding to the click operation of the user, and switching the simplified Chinese corresponding to English from the unchangeable state to the changeable state. For example, the user may change a simplified chinese corresponding to english to a traditional chinese.
The system language type following the parent device is used to indicate that the window language of the display window of the other device displayed on the parent device is related to the system language type of the parent device, i.e., is a language corresponding to the system language type of the parent device. That is, the window language of the display window on the parent device corresponds to the system language type of the parent device, and different system language types may correspond to different window languages. The correspondence between the system language type of the parent device and the window language of the display window of the child device may be set by default or by a user, which is not limited in the embodiment of the present application. For example, the setting may be performed in a setting manner of the system language of the following sub-device.
The device type following the child device is used to indicate that the window language of the display window of the other device displayed on the parent device is related to the device type correspondence of the child device and is a language corresponding to the device type of the child device. That is, the window language of the display window on the parent device corresponds to the device type of the child device, and different device types correspond to different window languages. The correspondence between the device type of the child device and the window language of the display window on the parent device may be set by default or by a user, which is not limited in the present application. The device type of the sub-device may include a mobile phone, a tablet computer, a computer, and the like, and may also include other device types, which are not limited in this embodiment.
For example, referring to fig. 10, if the user clicks the device type option of the following sub device in the second setting interface 702, in response to the click operation of the user, the second setting interface 702 is switched to the next setting interface 705, and the setting interface 705 includes a window language corresponding to the device type of the sub device. For example, if the device type of the child device is a mobile phone, the window language of the display window on the parent device is simplified Chinese; if the device type of the child device is a tablet computer, the window language of the display window on the parent device is traditional Chinese; if the device type of the child device is a computer, the window language of the display window on the parent device is english, and the like. Of course, the correspondence between the window language of the display window on the parent device and the device type of the child device may also be other correspondences, which is not limited in this embodiment of the present application. In addition, the user may also change the corresponding relationship, for example, by clicking a corresponding change option.
The device type following the parent device is used to indicate that the window language of the display window of the other device displayed on the parent device is a language corresponding to the device type of the parent device, in relation to the device type of the parent device itself. That is, the window language of the display window displayed on the parent device corresponds to the device type of the parent device, and different device types correspond to different window languages. The device type of the parent device may include a mobile phone, a tablet computer, a computer, and the like, and may also include other device types, which is not limited in this embodiment. The correspondence between the window language of the display window on the parent device and the device type of the parent device may be set by default or by a user, which is not limited in the present application. For example, the setting may be performed in a setting manner of the device type following the child device.
It should be understood that the second setting interface 702 may also include other configuration options, which are not limited in this embodiment.
After the computer 52 sets the window language of the display window of the other device on the computer 52 based on the second setting interface 702, the computer 52 may send second window information to the mobile phone 51 according to the set window language, where the second window information is used to indicate the window language of the display window of the other device on the computer 52, so as to control the language of the screen projection data sent by the mobile phone 51 through the second window information, and further control the window language of the display window 521. For example, after receiving the second window information, the mobile phone 51 may switch the display language of the current display interface to the window language indicated by the second window information, acquire the screen projection data to be displayed to the computer 52 according to the display interface after the display language is switched, send the acquired screen projection data to the computer 52, and display the screen projection data in the display window 521 by the computer 52, thereby implementing setting of the window language of the display window 521.
It should be understood that fig. 6 is only described as an example of implementing setting of the window language of the display window on the second device as the target language by switching the display language of the display interface of the first device to the window language (target language) required by the display window on the second device, and in other embodiments, setting of the window language of the display window on the second device as the target language may also be implemented in other ways. For example, the first device may switch only the display language of the transmitted screen projection data to the target language on the basis of not switching the display language of the display interface of the first device, so as to set the window language of the display window on the second device to the target language.
Referring to fig. 11, fig. 11 is a schematic view illustrating a screen shot by another mobile phone to a computer according to an embodiment of the present application. As shown in fig. 11, after the mobile phone 51 receives the second window information sent by the computer 52, if the window language indicated by the second window information is simplified chinese, the mobile phone 51 may also load the screen projection data to be projected to the computer 52 according to simplified chinese directly without switching the display language of the user interface 501 of the mobile phone 51, to obtain the screen projection data with the display language being simplified chinese, and send the loaded screen projection data to the computer 52. In this case, the cellular phone 51 can still keep using the english display user interface. After receiving the screen projection data, the computer 52 can display the screen projection data in simplified Chinese in the display window 521, that is, the user interface of the mobile phone 51 is displayed in simplified Chinese, so that the window language of the display window 521 is set to simplified Chinese.
In fig. 11, since the display language of the display interface is not changed in the cellular phone 51, the cellular phone 51 does not need to restore the display language of the display interface even after the cellular phone 51 is disconnected from the computer 52.
2) Setting a target language by a first device 31
Next, a setting method of a window language required for setting a display window on the second device by the first device will be described, taking the first device as a mobile phone and the second device as a computer, and projecting a screen to the computer by the mobile phone as an example.
Referring to fig. 12, fig. 12 is a schematic view illustrating a screen shot by another mobile phone to a computer according to an embodiment of the present application. As shown in fig. 12, when the mobile phone 51 starts to project a screen to the computer 52, the mobile phone 51 uses the english display user interface 501, and at the same time, the computer 52 displays the user interface 502, and the user interface 501 includes a display window 521, and the display window 521 is used for displaying the screen projection data of the mobile phone 51, such as a display screen of the mobile phone 51.
In this embodiment of the application, in order to facilitate the user to set the window language of the display window 521 through the mobile phone 51, when the mobile phone 51 and the computer 52 start device interaction, the mobile phone 51 may further display a first setting entry on the user interface 501, where the first setting entry is used to set the window language when the display window of the mobile phone 51 is displayed on another device. The first setting entry may be similar to the second setting entry of the computer 52, and the description of the embodiment of the present application is omitted here.
As shown in fig. 12, when the mobile phone 51 starts to project a screen to the computer 52, the user interface 501 of the mobile phone 51 may pop up a language configuration window 523, and the language configuration window 523 is used to set a window language when the display window of the mobile phone 51 is displayed on another device. For example, the language configuration window 523 may include a plurality of language options, such as simplified chinese and english language options, but may also include other language options. If the user wants to set the window language of the display window 521 to simplified chinese, simplified chinese may be selected from a plurality of language options of the language setting window 522 and then a confirm button may be clicked. In response to the click operation of the user, the mobile phone 51 can switch the language of the window language data subsequently sent to the computer 52 to simplified chinese, so that the computer 52 switches the window language of the display window 521 to simplified chinese according to the received window language data.
It should be understood that fig. 12 is only an example of the mobile phone 51 automatically triggering the first setup portal when the mobile phone 51 starts to interact with the computer 52, and in other embodiments, the first setup portal may also automatically trigger the display at other times, such as automatically triggering the display during the process of the mobile phone 51 projecting the screen to the computer 52. The timing when the mobile phone 51 triggers and displays the first setting entry is not limited in the embodiment of the present application.
In addition, the first setting entry may also be triggered and displayed by the user, for example, the user may trigger the mobile phone 51 to display the first setting entry through the relevant interface operation. In addition, the user may trigger the mobile phone 51 to display the first setting entry when the mobile phone 51 performs device interaction with other devices, or may trigger the mobile phone 51 to display the first setting entry when the mobile phone 51 does not perform device interaction with other devices. In addition, the mobile phone 51 may also automatically trigger or be triggered by the user to display a first setting interface, where the first setting interface includes a plurality of first configuration options, and the plurality of first configuration options are used to indicate a configuration manner of multiple window languages, and are used to configure the window language when the display window of the mobile phone 51 is displayed on another device.
As an example, if the user wants to set the window language when the display window of the mobile phone 51 is displayed on another device, the user may open the device interaction application of the mobile phone 51. In response to the user's operation, the cell phone 51 displays a main interface of the device interaction application, the main interface including a setting control. The user can click the setting control, and in response to the click operation of the user, the mobile phone 51 displays a setting interface of the device interactive application, where the setting interface includes a window language setting option and other setting options. In response to the click operation of the user, the mobile phone 51 displays a first setting interface, and the first setting interface 1303 includes a plurality of first configuration options, which are:
1) a system language of the follower sub-device;
2) a system language following the parent device;
3) a fixed language;
4) a system language type of the follower sub-device;
5) a system language type following the parent device;
6) a device type of the follower sub-device;
7) the device type following the parent device.
And the system language of the following sub-device is used for indicating that the window language when the display window of the sub-device is displayed on other devices is the system language of the sub-device. For example, if the system language of the mobile phone 51 is english, the window language when the display window of the mobile phone is displayed on another device is set to english.
The system language following the parent device is used to indicate that the window language of the display window of the child device when displayed on the other device is the system language of the parent device. For example, if the system language of the computer 52 is simplified chinese, the window language of the display window of the mobile phone 51 displayed on the computer 52 is simplified chinese.
The fixed language is used for indicating that the window language of the display window of the sub-device is a specific preset language when the display window is displayed on other devices. The preset language may be set by default, may be selected from a plurality of selectable languages, or may be input by a user, which is not limited in the embodiment of the present application. The preset language may be set by default, may be selected from a plurality of selectable languages, or may be input by a user, which is not limited in the embodiment of the present application. For example, the arrangement may be made in a similar manner to that of fig. 10 described above.
The system language type of the following sub device is used for indicating that the window language when the display window of the sub device is displayed on other devices is related to the system language type of the sub device and is a language corresponding to the system language type of the sub device. That is, the window language of the display window of the sub-device corresponds to the system language type of the sub-device, and different system language types may correspond to different window languages. The correspondence between the system language type of the sub-device and the window language of the display window of the sub-device may be set by default or by a user, which is not limited in the embodiments of the present application. For example, the arrangement may be made in a similar manner to that of fig. 11 described above.
The system language type following the parent device is used to indicate that the window language in which the display window of the child device is displayed on the other device is a language corresponding to the system language type of the parent device, in relation to the system language type of the parent device. That is, the window language of the display window of the child device corresponds to the system language type of the parent device, and different system language types may correspond to different window languages. The correspondence between the system language type of the parent device and the window language of the display window of the child device may be set by default or by a user, which is not limited in the embodiment of the present application. For example, the setting may be performed in a setting manner of the system language of the following sub-device.
The device type following the child device is used to indicate that the window language when the display window of the child device is displayed on the other device is related to the device type of the child device and is a language corresponding to the device type of the child device. That is, the window language of the display window of the sub-device corresponds to the device type of the sub-device, and different device types correspond to different window languages. The correspondence between the device type of the sub-device and the window language of the display window of the sub-device may be set by default or by a user, which is not limited in the present application. The device type of the sub-device may include a mobile phone, a tablet computer, a computer, and the like, and may also include other device types, which are not limited in this embodiment. For example, the arrangement may be made in a similar manner to that of fig. 12 described above.
The device type following the parent device is used to indicate that the window language in which the display window of the child device is displayed on the other device is a language corresponding to the device type of the parent device, in relation to the device type of the parent device. That is, the window language of the display window of the child device corresponds to the device type of the parent device, and different device types correspond to different window languages. The correspondence between the device type of the parent device and the window language of the display window of the child device may be set by default or by a user, which is not limited in the present application. The device type of the parent device may include a mobile phone, a tablet computer, a computer, and the like, and may also include other device types, which is not limited in this embodiment. For example, the setting may be performed in a setting manner of the device type following the child device.
In addition, if the first window information is set by the mobile phone 51, the first window information is used to indicate the window language when the display window of the mobile phone 51 is displayed on another device, and the second window information is set by the computer 52, and the second window information is used to indicate the window language of the display window of another device displayed on the computer 52, the priority ranking of the first window information and the second window information may also be configured, so that the window language indicated by the window information with the highest priority in the first window information and the second window information is determined as the window language finally displayed on the display window of the mobile phone 51 by the mobile phone 51 according to the priority ranking.
The priority ranking of the first window information and the second window information may be configured by default or by a user, which is not limited in the embodiment of the present application. In addition, in the priority ranking, the priority of the first window information may be higher than that of the second window information, or may be lower than that of the second window information, which is not limited in this embodiment of the application.
Referring to fig. 13, fig. 13 is a schematic diagram of another device interaction system according to an embodiment of the present application. As shown in fig. 13, the system includes a first device 131 and a second device 132, and the first device 131 and the second device 132 can perform device interaction.
The first device 131 may include a first display module 1311, a first setting module 1312, a language switching module 1313, and a first transmission module 1314. The second device 132 may include a second display module 1321, a second setup module 1322, and a second transmission module 1323.
The first display module 1311 is configured to display data of the first device 131. The first setting module 1312 is used to set a window language when the display window of the first device 131 is displayed on the other device, that is, to configure first window information. The language switching module 1313 is configured to switch the language of the screen projection data to be sent to the second device 132, and may also be configured to switch the system language of the first device 131. The first transmission module 1314 is used for establishing a communication connection with the second transmission module 1323 and performing data transmission after the communication connection is established. For example, the first transmission module 1314 may send the screen projection data to the second transmission module 1323.
The second display module 1321 is configured to display the display data of the second device 132, and further configured to create a display window of the first device 131 in the screen display area, so as to display the screen projection data sent by the first device 131 in the display window. The second setting module 1322 is used to set a window language of a display window of the other device displayed on the second device 132, i.e., to configure second window information. The second transmission module 1323 is configured to establish a communication connection with the first transmission module 1314 and perform data transmission after the communication connection is established. For example, the second transmission module 1323 may send the second window information to the first transmission module 1314.
As an example, the device interaction process of the first device 131 with the second device 132 may include:
1) the first transmission module 1314 sends a connection request to the second transmission module 1323 requesting that a communication connection be established with the second device 132.
In addition, the connection request may further include first device information, where the first device information is device information of the first device 131, and the device information may include a device identifier, a device type, a device address, or the like. A device name, a device Identity Document (ID), or a device model, etc. The device address may be a Media Access Control (MAC) address or the like.
2) The second transmission module 1323 sends an acknowledgement response to the first transmission module 1314 indicating a determination to establish a communication connection with the first device 131.
In addition, the response may also include second device information, which is the device information of the second device 132.
3) After the first device 131 establishes a communication connection with the second device 132, the first transmission module 1314 sends the first window display data to the second transmission module 1323, where the display language of the first window display data is the system language of the first device 131.
For example, in a scene in which the first device 131 casts a screen to the second device 132, the first window display data may be the screen casting data of the first device 131, and the screen casting data may be a display interface of the first display module 1311.
In addition, the display language of the first window display data may also set a language for an interface of the display interface of the first display module 1311.
4) The second transmission module 1323 receives the first window display data and transmits the first window display data to the second display module 1321. The second display module 1321 refreshes the created display window according to the received first window display data, that is, displays the received first window display data in the display window.
5) The second setting module 1322 determines second window information set by the user, and transmits the second window information to the second transmission module 1323. The second window information is used to indicate a window language of the display windows of the other devices displayed on the second device 132.
6) The second transmission module 1323 transmits the second window information to the first transmission module 1314.
7) The first transmission module 1314 receives the second window information and then sends the second window information to the language switching module 1313.
8) The language switching module 1313 switches the language of the window display data to be sent to the second device 132 according to the window language indicated by the second window information.
For example, the language switching module 1313 may switch the system language of the first device 131, or switch the interface setting language of the display interface of the first display module 1311, so as to switch the language of the window display data to be sent to the second device 132.
9) The first transmission module 1314 obtains the window display data after the language switching, and sends the window display data after the language switching as second window display data to the second transmission module 1323.
10) The second transmission module 1323 receives the second window display data and transmits the second window display data to the second display module 1321. The second display module 1321 refreshes the created display window according to the received second window display data, that is, displays the received second window display data in the display window.
Referring to fig. 14, fig. 14 is a flowchart of a device interaction method provided in an embodiment of the present application, where an execution main body of the method is a first device and a second device, and the first device and the second device may be electronic devices with a display function. As shown in fig. 14, the method includes the steps of:
step 1401: the user executes a first operation on the mobile phone, and the first operation is used for triggering the mobile phone to project a screen to the computer.
The first operation may be a click operation, a press operation, a voice operation, a gesture operation, or the like, which is not limited in this embodiment of the application. For example, the first operation may be a click operation on a screen-projection button in a display interface of a mobile phone.
As an example, if a user wants to trigger a mobile phone to project a screen to a computer, the user may open a multi-screen collaborative application of the mobile phone. And responding to the operation of the user, starting the multi-screen cooperative application by the mobile phone, and displaying an application interface of the multi-screen cooperative application. The application interface of the multi-screen collaborative application may include device identifications of the screen-projectable devices from which a user may select a device identification of the computer. And responding to the selection operation of the user, and triggering a screen projection instruction for projecting the screen to the computer by the mobile phone.
Step 1402: the mobile phone responds to the first operation and establishes communication connection with the computer.
The mobile phone responds to the first operation, and can establish communication connection between the mobile phone and the computer to communicate with the computer through the established communication connection. The communication connection is a channel for data transmission between the mobile phone and the computer, such as screen projection data or other window information.
The Communication connection may be a short-range wireless Communication connection, such as bluetooth, wireless fidelity (WIFI), Near Field Communication (NFC), or the like, or may be other Communication connections capable of implementing device interaction, and the connection manner of the Communication connection is not limited in this embodiment of the present application.
As one example, the handset, in response to the first operation, may send a connection request to the computer, the connection request requesting establishment of a communication connection with the computer. After receiving the connection request, the computer may send a response to the mobile phone to confirm that the communication connection with the mobile phone is established.
The connection request sent by the mobile phone can also carry the device information of the mobile phone. The response sent by the computer can also carry the equipment information of the computer. The device information may include a device identification, a device type or a device address, etc. The device identification may include a device name, a device ID, or a device model number, etc. The device address may be a MAC address of the device, etc.
Step 1403: the mobile phone displays the first interface by using the first language.
The first language is a display language of the first interface. The first language may be a system language of the mobile phone, and may also be a language set for an interface of the first interface. The interface setting language of the first interface is a display language configured for the first interface, and may be a system language of the mobile phone or another language other than the system language of the mobile phone.
The displaying of the first interface by using the first language refers to displaying the character string in the first interface by using the first language. The character string in the first interface may be an individual character string, or may also be a character string in an image, which is not limited in this embodiment of the present application.
For example, referring to fig. 5, the mobile phone may use english display user interface 501.
Step 1404: the mobile phone sends second screen projection data to the computer through the communication connection, wherein the second screen projection data comprises a first interface displayed by using the first language.
After the communication connection with the computer is established, the mobile phone can send the first interface displayed by using the first language to the computer as second screen projection data under the condition that the mobile phone is not configured with the first window information.
It should be noted that, in the embodiment of the present application, the second screen projection data is only used as an example for description, and in other embodiments, the second screen projection data may also be other forms of screen projection data such as files of a mobile phone, which is not limited in the embodiment of the present application.
For example, after the communication connection with the computer is established, the mobile phone may obtain the second screen projection data according to the system language of the mobile phone, and the display language of the second screen projection data is the system language of the mobile phone. That is, the mobile phone may obtain the screen projection data to be displayed to the computer according to the system language of the mobile phone, so as to obtain the second screen projection data with the display language being the system language of the mobile phone.
It should be noted that the second screen projection data may include a character string. The character string may be a separate character string or may be a character string in the image. The display language of the second screen projection data is used to indicate the display language of the character string included in the second screen projection data. For example, if the system language of the mobile phone is english, the display language of the character string in the second screen projection data acquired according to the system language of the mobile phone is also english.
As an example, the implementation manner of acquiring the second screen projection data according to the system language of the mobile phone may include the following two types:
the first implementation mode comprises the following steps: and loading the display data currently displayed by the mobile phone according to the system language of the mobile phone, and taking the loaded display data as second screen projection data.
For example, if the mobile phone performs screen projection on the computer in a mirror image screen projection manner, and the screen projection data to be screen projected is the display image of the mobile phone, the mobile phone may load the display data corresponding to the display image currently displayed in the system language, and display the acquired display data as the second window.
The second implementation mode comprises the following steps: and loading a target file to be displayed to the computer according to the system language of the mobile phone, and taking the loaded file data as second screen projection data.
The target file may be a multimedia file, such as a video file or an audio/video file. In addition, the target file may be a file being played by the mobile phone, such as a file being played in the foreground or a file being played in the background. In addition, the target file can be a file stored in a mobile phone or a network file. That is, the target file may be obtained from a storage space of the mobile phone or may be obtained by downloading from a network, which is not limited in this embodiment of the present application.
For example, if the mobile phone performs screen projection on the computer in a screen pushing and projecting manner, and screen projection data to be projected is a target video, the mobile phone may load the target video according to the system language of the mobile phone, and use the loaded video data as second screen projection data.
Step 1405: the computer receives the second screen projection data, creates a first display window in the screen display area, and displays a first interface displayed in the first language in the first display window according to the second screen projection data.
Wherein the first display window may occupy a partial area of the screen display area. For example, the first display window may be located at a central position of the screen display area. It should be understood that the first display window may also occupy the entire area of the screen display area, and the first display window is displayed in a full screen, which is not limited in this embodiment of the application.
The first display window is used for displaying screen projection data sent by the mobile phone, and can be the same as the display content of the display interface of the mobile phone. In a case where a first interface displayed using a first language is displayed in a first display window, a window language of the first display window is the first language. For example, referring to fig. 5, if the mobile phone 51 uses the english display user interface 501, the display window 521 in the computer 52 also displays the english display user interface 501.
However, in the case that the window language of the first display window is the display language of the display interface of the mobile phone, for a user watching the computer, the window language of the first display window may not meet the watching requirement of the user, and the watching of the user is affected.
For example, if the system language of the computer is the second language, the display language inside the first display window is the first language, and the display language outside the first display window is the second language. In the case where the first language is different from the second language, the display languages inside and outside the first display window will be different. Referring to fig. 5, the display language inside the display window 521 is english, and the display language outside the display window 521 is chinese, which affects the viewing of the user.
Step 1406: the computer displays a pop-up language setting window on the display interface, the language setting window including a plurality of second configuration options.
In the embodiment of the application, in order to ensure that the window language of the display window can meet the watching requirement of a user and facilitate the user to flexibly set the window language of the display window, when the mobile phone starts to project a screen to the computer, the computer can pop up a language setting window on the display interface, and the language setting window is used for setting the window language of the display window of other equipment displayed on the computer.
As shown in fig. 5, the language setting window may be located outside the display window. It should be understood that the language setting window may also be displayed at other positions on the display screen, for example, overlapping with the display window, and the display position of the language setting window is not limited in the embodiment of the present application. In addition, the language setting window may be in a pop-up window form, or may be in other display forms such as a floating window, a card, a prompt box, and the like, which is not limited in this application.
Wherein the second configuration options are used for indicating a plurality of configuration modes of window languages of display windows of other devices displayed on the computer. For example, as shown in fig. 7, the plurality of second configuration options may include one or more of the following options:
1) a system language following the parent device;
2) a system language of the follower sub-device;
3) a fixed language;
4) a system language type of the follower sub-device;
5) a system language type following the parent device;
6) a device type of the follower sub-device;
7) the device type following the parent device.
Additionally, the plurality of second configuration options may also be identifications of multiple languages. The language identifier may be a name, an icon, an example, or an ID of the language, which is not limited in this embodiment of the application. For example, the identifiers of the plurality of languages may include names of languages such as Chinese, English, French, or German. The Chinese language may include simplified Chinese and/or traditional Chinese.
In the embodiment of the application, the language setting window displayed by the computer is a setting entry provided by the computer to the user for setting the window language of the display window. It should be understood that the computer may display other types of settings entries in addition to the language settings window. For example, the computer may further display a setting control, and if a trigger operation on the setting control is detected, display a language setting window or a second setting interface. The second setting interface is used for setting the window language of the display window. For example, the second setting interface may include a plurality of language identifiers for selection by the user.
In addition, the second setting interface can be triggered in a mode, namely, the user can enter the window language setting interface through other operation entrances. For example, the computer may display an application setting interface of the device interactive application according to the operation of the user, and the application setting interface may include a window language setting option and may also include other setting options. The user can click the window language setting option, and the mobile phone displays a second setting interface in response to the click operation of the user. The device interaction application can be a multi-screen cooperative application or a screen projection application.
Step 1407: and the user executes selection operation based on the language setting window and triggers a first selection instruction.
The selecting operation is used for selecting any one of the second configuration options, and correspondingly, the first selecting instruction is a selecting instruction for selecting a certain second configuration option from the second configuration options.
In addition, the selection operation may be a click operation, a press operation, a language operation, a gesture operation, or the like, and the operation form of the selection operation is not limited in the embodiment of the present application.
Step 1408: and the computer determines second window information according to the second configuration option selected by the first selection instruction, wherein the second window information is used for indicating the window language of the display window of other equipment displayed on the computer.
After the user selects the second configuration option based on the second setting interface, the cell phone may determine the first window information according to the second configuration option selected by the user.
As an example, the first window information may be used to indicate one of the following information:
1) the window language of the display window of the other device displayed on the computer is the system language of the computer.
That is, the window language of the display window on the computer follows the system language of the computer itself.
2) The window language of the display window of the other device displayed on the computer is the system language of the other device.
That is, the window language of the display window on the computer follows the system language of the other devices with which the computer is interacting.
3) The window language of the display window of the other equipment displayed on the computer is a first preset language.
That is, the window language of the display window on the computer is a fixed language set in advance. The second preset language may be preset, may be set by default of the mobile phone, or may be set by the user, which is not limited in the embodiment of the present application.
4) The window language of the display windows of the other devices displayed on the computer is related to the system language type of the computer.
That is, the window language of the display window on the computer follows the system language type of the computer itself, and is the window language corresponding to the system language type of the computer. The system language type of the computer may correspond to different window languages.
The correspondence between the system language type of the computer and the window language of the display window on the computer may be set by default or by a user, which is not limited in the embodiments of the present application.
5) The window language of the display window of the other device displayed on the computer is related to the system language type of the other device.
That is, the window language of the display window on the computer follows the system language type of the other device interacting with the computer, and is the window language corresponding to the system language type of the other device. Different system language types may correspond to different window languages.
The correspondence between the system language type of the other device and the window language of the display window on the computer may be set by default or by a user, which is not limited in the embodiment of the present application.
6) The window language of the display windows of the other devices displayed on the computer is related to the device type of the computer.
That is, the window language of the display window on the computer follows the device type of the computer itself, and is the window language corresponding to the device type of the mobile phone. Different device types correspond to different window languages.
The corresponding relationship between the device type and the window language may be set by default or by a user, which is not limited in the present application. The device types may include a mobile phone, a tablet computer, a computer, and the like, and may also include other device types, which are not limited in this embodiment.
7) The window language of the display window of the other device displayed on the computer is related to the device type of the other device.
That is, the window language of the display window on the computer follows the device type of the other device performing device interaction with the computer, and is the window language corresponding to the device type of the other device. Different device types correspond to different window languages.
As an example, the computer may determine a window language of a display window of the other device displayed on the computer according to the second configuration option selected by the fourth operation, and generate the second window information according to the determined window language.
For example, the second window information may include a second language identification indicating a window language of a display window of the other device displayed on the computer.
For example, if the language setting window includes identifiers of a plurality of languages and the user selects an identifier of simplified chinese from the identifiers of the plurality of languages, the second window information may include an identifier of simplified chinese for indicating that the window language of the display window of the other device displayed on the computer is simplified chinese.
Step 1409: and the computer sends the second window information to the mobile phone.
The computer may indicate the window language of the display window of the mobile phone displayed on the computer to the mobile phone by transmitting the second window information to the mobile phone.
Step 1410: and the mobile phone receives the second window information and determines the target language according to the window language indicated by the second window information.
The target language is a window language required by a display window of the mobile phone displayed on the computer, namely a window language finally displayed by the display window on the computer. In the case where the computer is configured with the second window information, the mobile phone may determine the target language according to the window language indicated by the second window information.
For example, if the system language of the computer is the second language and the window language indicated by the second window information is the second language, the mobile phone can determine the second language as the target language.
Referring to fig. 5, the second language is simplified chinese, and the window language indicated by the second window information is simplified chinese, so that the mobile phone can determine simplified chinese as the target language.
Step 1411: and when the mobile phone detects that the target language is different from the first language, switching the first language used by the first interface into the target language.
If the first language used by the first interface is the system language of the mobile phone, the mobile phone can switch the system language of the mobile phone from the first language to the target language. If the first interface enables the first language to be the interface setting language of the first interface, the mobile phone can switch the interface setting language of the first interface from the first language to the target language.
Step 1412: the mobile phone sends first screen projection data to the computer, wherein the first screen projection data comprises a first interface displayed by using the target language.
That is, the mobile phone may send the first interface displayed using the target language to the computer as the first screen projection data.
Step 1413: the computer receives the first screen projection data and displays a first interface displayed by using the target language in a first display window according to the first screen projection data.
The computer can realize the switching of the window language of the first display window from the first language to the target language by displaying the first interface displayed by using the target language in the first display window. The target language can be any language except the first language, so that the window language of the first display window can be switched randomly, the flexibility of the window language of the first display window is improved, and the user experience is further improved.
It should be understood that, in the embodiment of the present application, the second window information is only described as an example that a user configures the second window information through a computer, and in other embodiments, the second window information may also be configured by a default through the computer, which is not limited in the embodiment of the present application.
It should be noted that, in the embodiment of the present application, the first language used in the first interface of the mobile phone is switched to the target language after the mobile phone determines the target language, so as to switch the window language of the first display window to the target language. For example, the mobile phone may also directly load the first screen projection data according to the target language and send the first screen projection data to the computer without switching the system language, so as to switch only the display language of the screen projection data without switching the display language of the first interface. Wherein the first screen projection data comprises a first interface displayed using the target language.
As an example, the loading, by the mobile phone, the first screen projection data according to the target language without switching the display language of the first interface may include the following implementation manners:
the first implementation mode comprises the following steps: loading a language package of a target language; loading second screen projection data to be projected to second equipment, wherein the second screen projection data comprises a first interface displayed by using a first language; and replacing the display language of the second screen projection data with the second language according to the language package of the target language to obtain the first screen projection data.
That is, the language pack of the target language is loaded without switching the display language of the first interface. And then, continuously loading second screen projection data according to the first interface displayed by using the first language, wherein for the second screen projection data obtained by loading, the display language of the second screen projection data needs to be replaced by the target language according to the language package of the target language, and then the second screen projection data after the language replacement is used as the first screen projection data and sent to the computer.
The mobile phone may first acquire the language package of the target language, and then load the language package of the target language after acquiring the language package of the target language. For example, the mobile phone obtains a language package of a target language from a stored language package database, where the language package database includes language packages of multiple languages. Or, the mobile phone may also download the language package of the target language from the network, and the embodiment of the present application does not limit the manner of acquiring the language package of the target language. For example, if the language package of the target language is stored in the language package database of the mobile phone, the language package of the target language is obtained from the language package database; and if the language packet of the target language is not stored in the language packet database of the mobile phone, downloading the language packet of the target language from the network.
The second implementation mode comprises the following steps: generating a data loading instruction according to the target language, wherein the data loading instruction carries a target language identifier; and loading screen projection data to be projected to the computer according to the data loading instruction to obtain first screen projection data.
The data loading instruction is used for requesting to load screen projection data to be projected to the computer. The data loading instruction can carry a language identifier, and the carried language identifier is used for indicating the display language of the screen projection data requested to be loaded. In general, the data loading instruction generally carries a language identifier of a system language, and the display language of the loaded screen projection data is the system language. Or carrying the language identification of the display language of the first interface, wherein the display language of the loaded screen projection data is the display language of the first interface.
In the embodiment of the application, in order to load the first screen projection data with the display language as the target language, a data loading instruction carrying the target language identifier may be generated, and then the first screen projection data is loaded according to the data loading instruction. For example, the language identifier carried by the generated data loading instruction may be replaced by a target language identifier to obtain a data loading request carrying the target language identifier, or a data loading instruction carrying the target language identifier may be newly generated.
That is, the window language of the first display window can be switched to the target language in two ways, one is implemented by switching the display language of the display interface of the mobile phone, and the other is implemented by switching only the display language of the screen projection data without switching the display language of the display interface.
It should be further noted that, in the embodiment of the present application, the window language in which the computer configures the first display window through the second window information is only used as an example for description, in other embodiments, after the mobile phone casts a screen to the computer, the mobile phone may further obtain a system language, that is, a second language, of the computer, and if the mobile phone detects that the first language used for the first interface of the mobile phone is different from the second language, the mobile phone may further send first screen casting data to the computer, where the first screen casting data includes a first interface displayed using the second language, so that after the computer receives the first screen casting data, the first interface displayed using the second language is displayed in the first display window according to the first screen casting data.
When the mobile phone detects that the first language is different from the second language, the first screen projection data can be sent to the computer in a mode of switching the first language used by the first interface into the second language. In addition, the first screen projection data may be sent to the computer without switching the first language used by the first interface to the second language, that is, without changing the display language used by the first interface, which is not limited in the embodiment of the present application.
It should be noted that the embodiment of fig. 15 is only described by taking a window language for configuring the first display window by a computer as an example, and in other embodiments, the window language of the first display window may also be configured by a mobile phone. Next, a process of configuring a window language of the first display window by the mobile phone will be described with reference to the drawings.
Referring to fig. 15, fig. 15 is a flowchart of another device interaction method provided in the embodiment of the present application, where an execution main body of the method is a first device and a second device, and the first device and the second device may be electronic devices with a display function.
As shown in fig. 15, the method includes the steps of:
step 1501: and the user executes a second operation on the mobile phone, the second operation is used for opening a first setting interface of the mobile phone, and the first setting interface is used for setting the window language of the display window of the mobile phone when the display window is displayed on other equipment.
And the second operation is used for triggering the mobile phone to display the first setting interface. The second operation may be a click operation, a press operation, a language operation, a gesture operation, or the like. For example, the second operation may be an interface click operation, and the user may open the first setting interface of the mobile phone through a series of interface click operations.
Step 1502: and the mobile phone responds to the second operation and displays a first setting interface, and the first setting interface comprises a plurality of first configuration options.
Wherein each first configuration option is used for indicating the window language of the display window of the mobile phone when the display window is displayed on other equipment. For example, the plurality of first configuration options may include one or more of the following options:
1) a system language of the follower sub-device;
2) a system language following the parent device;
3) a fixed language;
4) a system language type of the follower sub-device;
5) a system language type following the parent device;
6) a device type of the follower sub-device;
7) the device type following the parent device.
Alternatively, the plurality of first configuration options may be identifications of a plurality of languages. The identification of the language may be a name, icon, instance, or ID of the language, etc. For example, the identifiers of the plurality of languages may include names of languages such as Chinese, English, French, or German. The Chinese language may include simplified Chinese and/or traditional Chinese.
As one example, the first settings interface may include a language settings window including a plurality of first configuration options. The language setting window can be in the form of a pop-up window, a floating window or a prompt box.
It should be understood that, in response to the second operation, the mobile phone may also display a second setting entry in the form of a language setting window or the like, so that the user sets the window language of the display window of the mobile phone through the second setting entry. The second setting entrance is used for setting the window language when the display window of the mobile phone is displayed on other equipment.
Step 1503: and the user executes selection operation on the first setting interface and triggers a second selection instruction.
The selecting operation is used for selecting any one of the plurality of first configuration options, and correspondingly, the second selecting instruction refers to a selecting instruction of any one of the plurality of first configuration options.
The selection operation may be a click operation, a press operation, a language operation, a gesture operation, or the like, and the operation form of the second operation is not limited in the embodiment of the present application.
Step 1504: and the mobile phone receives a second selection instruction, and determines first window information according to the first configuration option selected by the second selection instruction, wherein the first window information is used for indicating the window language of the display window of the mobile phone when the display window is displayed on other equipment.
After the user selects the first configuration option based on the first setting interface, the mobile phone may determine the first window information according to the first configuration option selected by the user.
As an example, the computer may determine a window language when the display window of the mobile phone is displayed on the other device according to the first configuration option selected by the second selection instruction, and generate the first window information according to the determined window language.
As an example, the first window information may be used to indicate one of the following information:
1) the window language of the display window of the mobile phone when displayed on other equipment is the system language of the mobile phone.
That is, the window language of the display window of the mobile phone follows the system language of the mobile phone itself.
2) The window language of the display window of the mobile phone when displayed on other equipment is the system language of the other equipment.
That is, the window language of the display window of the mobile phone follows the system language of the other devices interacting with the mobile phone.
3) The window language of the display window of the mobile phone when displayed on other equipment is a first preset language.
That is, the window language of the display window of the mobile phone is a preset fixed language. The first preset language may be preset, may be set by default of the mobile phone, or may be set by the user, which is not limited in the embodiment of the present application.
4) The window language of the display window of the mobile phone when displayed on other equipment is related to the system language type of the mobile phone.
That is, the window language of the display window of the mobile phone is the window language corresponding to the system language type of the mobile phone, following the system language type of the mobile phone itself. Different system language types may correspond to different window languages.
The corresponding relationship between the system language type of the mobile phone and the window language of the display window of the mobile phone may be set by default or by a user, which is not limited in the embodiments of the present application.
5) The window language of the display window of the mobile phone when displayed on other equipment is related to the system language type of the other equipment.
That is, the window language of the display window of the mobile phone is a window language corresponding to the system language type of the other device, which follows the system language type of the other device performing device interaction with the mobile phone. Different system language types may correspond to different window languages.
The correspondence between the system language type of the other device and the window language of the display window of the mobile phone may be set by default or by a user, which is not limited in the embodiment of the present application.
6) The window language of the display window of the mobile phone when displayed on other devices is related to the device type of the mobile phone.
That is, the window language of the display window of the mobile phone is the window language corresponding to the device type of the mobile phone, following the device type of the mobile phone itself. Different device types correspond to different window languages.
The corresponding relationship between the device type and the window language may be set by default or by a user, which is not limited in the present application. The device types may include a mobile phone, a tablet computer, a computer, and the like, and may also include other device types, which are not limited in this embodiment.
7) The window language of the display window of the mobile phone when displayed on the other equipment is related to the equipment type of the other equipment.
That is, the window language of the display window of the mobile phone is a window language corresponding to the device type of the other device, which follows the device type of the other device performing device interaction with the mobile phone. Different device types correspond to different window languages.
For example, if the user selects the "follow system language of parent device" option, in response to the selection operation of the user, the window language of the first window information indicating that the display window of the mobile phone is displayed on the other device may be determined to be the system language of the other device according to the "follow system language of parent device" option selected by the user. For example, when the mobile phone and the computer perform device interaction, if the system language of the computer is simplified chinese, the window language indicated by the first window information is the system language of the computer, i.e., simplified chinese.
Step 1505: the user executes a first operation on the mobile phone, and the first operation is used for triggering the mobile phone to project a screen to the computer.
Step 1506: the mobile phone responds to the first operation and establishes communication connection with the computer.
It should be noted that, implementation manners of steps 1505 to steps 1506 are the same as steps 1401 to 1402 in the embodiment of fig. 14, and specific implementation processes may refer to related descriptions of steps 1401 to 1402, which are not described herein again in this embodiment of the present application.
Step 1507: the mobile phone displays the first interface by using the first language.
The first language is a display language of the first interface. The first language may be a system language of the mobile phone, and may also be a language set for an interface of the first interface. The interface setting language of the first interface is a display language configured for the first interface, and may be a system language of the mobile phone or another language other than the system language of the mobile phone.
The displaying of the first interface by using the first language refers to displaying the character string in the first interface by using the first language. The character string in the first interface may be an individual character string, or may also be a character string in an image, which is not limited in this embodiment of the present application.
Step 1508: and the mobile phone determines a target language according to the window language indicated by the first window information.
The target language is a window language required by a display window of the mobile phone displayed on the computer, namely a window language to be displayed finally by the display window on the computer. In the case that the mobile phone is configured with the first window information, the mobile phone may determine the target language according to the window language indicated by the first window information.
For example, if the first window information indicates that the window language when the display window of the mobile phone is displayed on the other device is the system language of the other device, the system language of the computer may be determined, and the system language of the computer may be determined as the target language. For example, if the system language of the computer is simplified Chinese, simplified Chinese can be determined as the target language.
Step 1509: and when the mobile phone detects that the target language is different from the first language, switching the first language used by the first interface into the target language.
In the embodiment of the application, in order to ensure that the display language of the screen projection data sent to the computer is the target language and further ensure that the computer can display the screen projection data of the target language in the display window, when the mobile phone detects that the target language is different from the first language, the first language used by the first interface can be switched to the target language.
For example, if the target language is simplified chinese and the mobile phone uses english to display the first interface, the english used by the first interface may be switched to simplified chinese.
Step 1510: the mobile phone sends first screen projection data to the computer, wherein the first screen projection data comprises a first interface displayed by using the target language.
The mobile phone can send the first screen projection data to the computer through establishing communication connection, and the first screen projection data is displayed by the computer.
It should be noted that steps 1509 to 1510 are the same as steps 1411 to 1412 in the embodiment of fig. 4, and the specific implementation process may refer to the related descriptions of steps 1411 to 1412, which are not described herein again in this embodiment of the present application.
Step 1511: the computer receives the first screen projection data, creates a first display window in the screen display area, and displays a first interface displayed by using the target language in the first display window according to the first screen projection data.
After receiving the first screen projection data sent by the mobile phone, if the current screen display area of the computer does not have a first display window for displaying the screen projection data sent by the mobile phone, the computer may create the first display window in the screen display area, and then display the first screen projection data in the created first display window in the target language.
In addition, if a first display window is created on the current display screen of the computer after first screen projection data sent by the mobile phone is received, the first screen projection data can be directly displayed in the created first display window in the target language.
The first interface displayed by using the target language means that the character strings in the first interface are displayed by using the target language. The character strings in the first interface may be independent character strings and may also include character strings in an image. The character string may be a letter or the like.
It should be noted that, in this embodiment of the present application, only the first setting interface is displayed when the mobile phone does not perform device interaction with other devices, and the window language for the user to set the display window of the mobile phone is taken as an example.
In addition, the embodiment of the application is only an example that the first setting interface is triggered and displayed by the user, and it should be understood that the first setting interface can also be automatically triggered and displayed by the mobile phone at a proper time. For example, the mobile phone may automatically trigger to display the first setting interface when the mobile phone starts to perform device interaction with the computer, or automatically trigger to display the first setting interface in the process of performing device interaction with the computer, or certainly may automatically trigger to display at other times, which is not limited in this embodiment of the present application.
The first setting interface may include a language setting window, and the language setting window is used for setting a window language when the display window of the mobile phone is displayed on the other device. For example, when the mobile phone starts to perform device interaction with the computer or during the device interaction with the computer, a language setting window pops up on the display interface, so that the user can set the window language of the display window of the mobile phone through the language setting window.
In addition, in the embodiment of the present application, the first window information is configured for the mobile phone by the user according to the first setting interface, the language setting window, or the like, for example, it should be understood that the first window information may also be configured by the mobile phone by default, and the embodiment of the present application does not limit this.
It should be further noted that, in the embodiment of fig. 14, the computer configures the second window information, but the mobile phone does not configure the first window information, and the window language of the first display window is determined only according to the second window information configured by the computer. The embodiment of fig. 15 is described by taking an example in which the mobile phone configures the first window information, the computer does not configure the second window information, and the window language of the first display window, that is, the target language, is determined only according to the first window information configured by the mobile phone. In addition, in a possible case, if the mobile phone is configured with the first window information and the computer is also configured with the second window information, the mobile phone may further determine the target language according to the first window information and the second window information.
However, in the case where the mobile phone is configured with the first window information and the computer is also configured with the second window information, the window languages indicated by the first window information and the second window information may conflict with each other. In order to solve the conflict between the first window information and the second window information, in the embodiment of the present application, a priority ranking may also be set in advance, where the priority ranking is used to indicate a priority order of the first window information and the second window information. Therefore, under the condition that the mobile phone is configured with the first window information and the computer is also configured with the second window information, the mobile phone can acquire the priority sequence of the first window information and the second window information, and determine the window language indicated by the window information with the highest priority in the first window information and the second window information as the target language according to the priority sequence.
The priority ranking may be set by default by a mobile phone or a computer, may be set by negotiation between a mobile phone and a computer, or may be configured by a user. The priority of the first window information may be higher than that of the second window information, or may be lower than that of the second window information, which is not limited in this embodiment of the application.
As an example, the priority of the first window information is lower than the priority of the second window information, i.e. in terms of the computer-side configuration. For example, when the mobile phone configures the first window information, if the second window information sent by the computer is received, the window language indicated by the second window information is determined as the target language based on the second window information.
For example, in the case that the mobile phone and the computer perform device interaction, if the first window information configured by the mobile phone is used to indicate that the window language when the display window of the mobile phone is displayed on another device is english, the mobile phone may determine the english language as the target language, and send screen projection data with the display language being english to the computer, so that the computer displays the received screen projection data in the first display window in english, that is, the window language of the first display window is switched to english.
Then, if the computer sends second window information to the mobile phone according to the setting of the user, the second window information is used for indicating that the window language of other equipment displayed on the computer is simplified Chinese, the mobile phone can determine the simplified Chinese as a target language, and send screen projection data with the language being simplified Chinese to the computer, so that the computer displays the received screen projection data in simplified Chinese in the first display window, namely, the window language of the first display window is switched to the simplified Chinese.
Referring to fig. 16, fig. 16 is a logic diagram of an apparatus interaction system according to an embodiment of the present application. As shown in fig. 16, the system includes a cell phone 161 and a computer 162. The device interaction process between the cell phone 161 and the computer 162 may include the following steps:
1) the cell phone 161 establishes a communication connection with the computer 162.
2) The cell phone 161 sends the screen projection data to the computer 162.
3) The computer 162 refreshes a display window according to the received screen projection data, and the display window is used for displaying the screen projection data sent by the mobile phone 161.
4) The computer 162 sets the window language of the display window through the language setting module.
5) The computer 162 transmits the set window language to the cellular phone 161.
6) The cell phone 161 acquires an externally set window language, i.e., a window language transmitted from the receiving computer 162.
7) The mobile phone 161 loads the language package of the window language according to the window language.
8) The mobile phone 161 switches the language of the screen projection data to be sent to the computer 162 according to the loaded language package.
The switching of the language of the screen projection data to be sent to the computer 162 may include two implementation manners:
the first implementation mode comprises the following steps: the system language of the handset 161 is switched.
The second implementation mode comprises the following steps: and switching the display language of the screen projection data.
9) The mobile phone 161 sends the screen projection data after the language switching to the computer 162, so that the computer 162 refreshes the display window according to the screen projection data after the language switching.
10) The cell phone 161 disconnects the communication with the computer 162.
Finally, it should be noted that: the above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (28)

1. A device interaction method is applied to a first device, the first device performs screen projection on a second device, the first device displays a first interface by using a first language, a screen display area of the second device comprises a first display window, the display content of the first display window is the same as that of the first interface, and a system language of the second device is a second language, and the method comprises the following steps:
when the first language is detected to be different from the second language, the first language used by the first interface is switched to the second language.
2. The method of claim 1, wherein the first language is a system language of the first device;
the switching the first language used by the first interface to the second language comprises:
switching a system language of the first device from the first language to the second language.
3. The method of claim 1, wherein the first language sets a language for an interface of the first interface;
the switching the first language used by the first interface to the second language comprises:
switching an interface setting language of the first interface from the first language to the second language.
4. The method of any of claims 1-3, wherein prior to said detecting that the second language is different from the first language, further comprising:
acquiring first window information configured by the first device, wherein the first window information is used for indicating a window language of a display window of the first device when the display window is displayed on other devices; determining the window language indicated by the first window information as the second language;
alternatively, the first and second electrodes may be,
receiving second window information sent by the second device, wherein the second window information is used for indicating the window language of display windows of other devices displayed on the second device; determining the window language indicated by the second window information as the second language;
alternatively, the first and second electrodes may be,
acquiring first window information configured by the first equipment; receiving second window information sent by the second equipment; and determining the window language indicated by the window information with the highest priority in the first window information and the second window information configured by the first device as the second language according to the priority sequence.
5. The method of claim 4, wherein in a case that the first device is configured with first window information, the first window information is used for indicating at least one of the following information:
the window language of the display window of the first device when displayed on other devices is the system language of the first device;
the window language of the display window of the first device when displayed on other devices is the system language of the other devices;
the window language of the display window of the first device when displayed on other devices is a first preset language;
the window language of the display window of the first device when displayed on other devices is related to the system language type of the first device;
the window language in which the display window of the first device is displayed on the other device is related to the device type of the other device.
6. The method according to claim 4 or 5, wherein the obtaining of the first window information of the first device configuration comprises:
displaying a first setting interface, the first setting interface including a plurality of first configuration options for indicating a plurality of configuration forms of a window language of a display window of the first device displayed on other devices;
receiving a first selection instruction based on the first setting interface, and determining the first window information according to a first configuration option selected by the first selection instruction.
7. The method of claim 6, wherein the plurality of first configuration options are a plurality of language identifiers;
the determining the first window information according to the first configuration option selected by the first selection instruction includes:
and determining that the window language of the display window of the first device, which is displayed on other devices and is indicated by the first window information, is the language indicated by the language identifier selected by the first selection instruction according to the language identifier selected by the first selection instruction.
8. The method according to claim 4, wherein in case of receiving second window information sent by the second device, the second window information is used to indicate at least one of the following information:
the window language of the display windows of the other devices displayed on the second device is the system language of the second device;
the window language of the display window of the other device displayed on the second device is the system language of the other device;
the window language of the display windows of the other devices displayed on the second device is a second preset language;
the window language of the display windows of the other devices displayed on the second device is related to the system language type of the second device;
the window language of the display windows of the other devices displayed on the second device is related to the device type of the second device.
9. The method according to claim 8, wherein the second window information is used for indicating that the window language of the display window of the other device displayed on the second device is a second preset language, and includes:
the second window information includes a second language identifier, and the second window information is used to indicate that the window language of the display window of the other device displayed on the second device is the second language.
10. The method of any of claims 1-9, wherein said switching said first language used by said first interface to said second language further comprises;
and when receiving a screen projection termination instruction, terminating screen projection to the second equipment, and switching the second language used by the first interface into the first language.
11. The method according to any one of claims 1-10, further comprising:
when the second language is different from the first language, sending first screen projection data to the second device under the condition that the first language used by the first interface is not switched to the second language, wherein the first screen projection data comprises a first interface displayed by using the second language, and the first screen projection data is used for being displayed in the first display window.
12. The method of claim 11, wherein prior to sending the first screen projection data to the second device, further comprising:
loading a language pack of the second language; loading second screen projection data to be projected to the second equipment, wherein the second screen projection data comprises a first interface displayed by using a first language; replacing the display language of the second screen projection data with the second language according to the language package to obtain the first screen projection data;
alternatively, the first and second electrodes may be,
generating a data loading instruction according to the second language, wherein the data loading instruction carries a second language identifier; and loading screen projection data to be projected to the second equipment according to the data loading instruction to obtain the first screen projection data.
13. The method according to any one of claims 1-12, further comprising:
when a switching instruction for switching the window language of the first display window to a third language is detected, switching the first language used by the first interface to the third language, wherein the third language is different from both the first language and the second language.
14. The method according to any one of claims 1-12, further comprising:
when a switching instruction for switching the window language of the first display window to a third language is detected, third screen projection data are sent to the second equipment under the condition that the first language used by the first interface is not switched to the third language; wherein the third screen projection data comprises a first interface displayed in the third language, the third screen projection data is for display in the first display window, and the third language is different from both the first language and the second language.
15. The method according to claim 13 or 14, wherein the detecting of the switching instruction for switching the window language of the first display window to the third language comprises:
when detecting that the window language indicated by the first window information configured by the first device is the third language, determining to receive the switching instruction;
alternatively, the first and second electrodes may be,
when second window information sent by the second device is received and the window language indicated by the second window information is the third language, determining that the switching instruction is received;
alternatively, the first and second electrodes may be,
and when second window information sent by the second device is received and the window language indicated by the window information with the highest priority in the first window information configured by the first device and the second window information is determined to be the third language according to the priority sequence, determining to receive the switching instruction.
16. A device interaction method is applied to a second device, the second device is projected by a first device, the first device displays a first interface by using a first language, a screen display area of the second device comprises a first display window, the display content of the first display window is the same as that of the first interface, and a system language of the second device is a second language, and the method comprises the following steps:
displaying a first interface displayed in the second language in the first display window if the first language is different from the second language.
17. The method of claim 16, wherein prior to displaying the first interface in the first display window in the second language, further comprising:
receiving first screen projection data sent by the first equipment, wherein the first screen projection data comprise a first interface displayed by using the second language;
the displaying a first interface in the first display window displayed in the second language, comprising:
and displaying a first interface displayed by using the second language in the first display window according to the first screen projection data.
18. The method of claim 16 or 17, wherein prior to displaying the first interface in the first display window in the second language, further comprising:
and sending second window information to the first device, wherein the second window information is used for indicating the window language of the display windows of other devices displayed on the second device, and the window language indicated by the second window information is a second language.
19. The method of claim 18, wherein the second window information is used to indicate at least one of the following information:
the window language of the display windows of the other devices displayed on the second device is the system language of the second device;
the window language of the display window of the other device displayed on the second device is the system language of the other device;
the window language of the display windows of the other devices displayed on the second device is a second preset language;
the window language of the display windows of the other devices displayed on the second device is related to the system language type of the second device;
the window language of the display windows of the other devices displayed on the second device is related to the device type of the second device.
20. The method of claim 19, wherein the second window information is used for indicating that the window language of the display window of the other device displayed on the second device is a second preset language, and comprises:
the second window information includes a second language identifier, and the second window information is used to indicate that the window language of the display window of the other device displayed on the second device is the second language.
21. The method according to any of claims 18-20, wherein before sending the second window information to the first device, further comprising:
displaying a second setting interface including a plurality of second configuration options for indicating a plurality of configuration forms of window languages of display windows of other devices displayed on the second device;
and receiving a second selection instruction based on the second setting interface, and determining the second window information according to a second configuration option selected by the second selection instruction.
22. The method of claim 21, wherein the plurality of second configuration options are a plurality of language identifiers;
the determining the second window information according to the second configuration option selected by the second selection instruction includes:
and determining that the window language of the display window of the other device, which is used by the second window information and displayed on the second device, is the language indicated by the language identifier selected by the second selection instruction according to the language identifier selected by the second selection instruction.
23. A device interaction system is characterized by comprising a first device and a second device, wherein the first device projects a screen to the second device, the first device displays a first interface by using a first language, a screen display area of the second device comprises a first display window, the display content of the first display window is the same as that of the first interface, and the system language of the second device is a second language;
the second device is configured to display a first interface displayed in the second language in the first display window when the first language is different from the second language.
24. The system of claim 23,
the first device is used for switching the first language used by the first interface into the second language when the second language is detected to be different from the first language;
alternatively, the first and second electrodes may be,
the first device is used for sending first screen projection data to the second device under the condition that the first language used by the first interface is not switched into the second language when the second language is detected to be different from the first language, and the first screen projection data comprises a first interface displayed by using the second language.
25. The system of claim 23 or 24,
the second device is further configured to display a first interface in the first display window, the first interface being displayed in a third language, the third language being different from both the first language and the second language.
26. The system of claim 25,
the first device is configured to switch the first language used by the first interface to the third language when a switching instruction for switching the window language of the first display window to the third language is detected;
alternatively, the first and second electrodes may be,
the first device is configured to send third screen projection data to the second device when a switching instruction for switching the window language of the first display window to the third language is detected and the first language used by the first interface is not switched to the third language, where the third screen projection data includes the first interface displayed in the third language.
27. An electronic device, characterized in that the electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, which computer program, when executed by the processor, implements the method of any of claims 1 to 15 or 16 to 22.
28. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 15 or claims 16 to 22.
CN202111007786.6A 2021-08-30 2021-08-30 Device interaction method, system, device and computer readable storage medium Pending CN113835802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111007786.6A CN113835802A (en) 2021-08-30 2021-08-30 Device interaction method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111007786.6A CN113835802A (en) 2021-08-30 2021-08-30 Device interaction method, system, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113835802A true CN113835802A (en) 2021-12-24

Family

ID=78961624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111007786.6A Pending CN113835802A (en) 2021-08-30 2021-08-30 Device interaction method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113835802A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737289A (en) * 2022-09-15 2023-09-12 荣耀终端有限公司 Display method, terminal device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124111A (en) * 2019-11-29 2020-05-08 联想(北京)有限公司 Processing method and electronic equipment
CN111399789A (en) * 2020-02-20 2020-07-10 华为技术有限公司 Interface layout method, device and system
CN111988646A (en) * 2020-08-10 2020-11-24 海信视像科技股份有限公司 User interface display method and display device of application program
CN112558825A (en) * 2019-09-26 2021-03-26 华为技术有限公司 Information processing method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558825A (en) * 2019-09-26 2021-03-26 华为技术有限公司 Information processing method and electronic equipment
CN111124111A (en) * 2019-11-29 2020-05-08 联想(北京)有限公司 Processing method and electronic equipment
CN111399789A (en) * 2020-02-20 2020-07-10 华为技术有限公司 Interface layout method, device and system
CN111988646A (en) * 2020-08-10 2020-11-24 海信视像科技股份有限公司 User interface display method and display device of application program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737289A (en) * 2022-09-15 2023-09-12 荣耀终端有限公司 Display method, terminal device and storage medium

Similar Documents

Publication Publication Date Title
CN112291764B (en) Content connection system
WO2021121052A1 (en) Multi-screen cooperation method and system, and electronic device
WO2022089207A1 (en) Cross-device application interaction method, electronic device, and server
CN113961157B (en) Display interaction system, display method and equipment
CN116095881A (en) Multi-device cooperation method, electronic device and related products
CN115023935A (en) Application display continuing method and device
CN114489529A (en) Screen projection method of electronic device, medium thereof and electronic device
CN116450251A (en) Method for adapting page layout of multiple devices and electronic device
CN114327175B (en) Information sharing method and device
CN113608753A (en) Application uninstalling method, application recovery method, electronic device and storage medium
CN113835802A (en) Device interaction method, system, device and computer readable storage medium
WO2023005711A1 (en) Service recommendation method and electronic device
WO2022052706A1 (en) Service sharing method, system and electronic device
CN113485709B (en) Application optimization method and device and electronic equipment
CN113760191A (en) Data reading method, data reading apparatus, storage medium, and program product
CN116709557B (en) Service processing method, device and storage medium
WO2023029985A1 (en) Method for displaying dock bar in launcher and electronic device
WO2023165413A1 (en) Application development system and method, and device
WO2023020339A1 (en) Interface display method and electronic device
WO2023040670A1 (en) Method for displaying dynamic effect on desktop, and electronic device
WO2023160217A1 (en) Method for detecting embedded subscriber identity module (esim) card, and terminal device
CN117724640A (en) Split screen display method, electronic equipment and storage medium
CN117631935A (en) Parameter synchronization method and electronic equipment
CN115942253A (en) Prompting method and related device
CN114911377A (en) Display method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination