CN113452945A - Method and device for sharing application interface, electronic equipment and readable storage medium - Google Patents

Method and device for sharing application interface, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113452945A
CN113452945A CN202010228921.9A CN202010228921A CN113452945A CN 113452945 A CN113452945 A CN 113452945A CN 202010228921 A CN202010228921 A CN 202010228921A CN 113452945 A CN113452945 A CN 113452945A
Authority
CN
China
Prior art keywords
application
sharing
interface
icon
shared
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
CN202010228921.9A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010228921.9A priority Critical patent/CN113452945A/en
Publication of CN113452945A publication Critical patent/CN113452945A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/147Communication arrangements, e.g. identifying the communication as a video-communication, intermediate storage of the signals

Abstract

The application provides a method and a device for sharing an application interface, electronic equipment and a readable storage medium, wherein the method for sharing the application interface is applied to the electronic equipment with a display screen, and the method comprises the following steps: the electronic equipment establishes video communication connection with a communication object; the electronic equipment displays a communication window corresponding to the video communication connection on the display screen in a floating window mode; the electronic equipment responds to a sharing request of the first application and executes sharing operation; the electronic equipment runs the first application and enables an interface of the first application to be displayed on the display screen, and the displayed interface of the first application is obtained; and sending the acquired displayed interface of the first application to a communication object through a floating window based on the video communication connection. According to the method and the device, the user on two sides of the device can watch the interface of the first application at the same time, the user communication is facilitated, and the sharing experience of the user is improved.

Description

Method and device for sharing application interface, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer software and mobile phone applications, and in particular, to a method, a terminal, an electronic device, and a computer-readable storage medium for sharing an application interface.
Background
Currently, audio and video calls are more and more widespread, and face-to-face communication is a social trend of people. The video information collected by the camera can be seen while voice is played in the current video call process, so that convenience is brought to a user. With the continuous pursuit of high technology, people hope to share more information on their own electronic devices with each other.
The remote assistance function of the existing electronic equipment can realize the sharing of the information on the electronic equipment of the user to the other side. Such sharing is often to show all the information on the screen of the mobile phone to the other party.
Disclosure of Invention
The application provides a method, a terminal, electronic equipment and a computer-readable storage medium for sharing an application interface, which can only share an interface displayed on the electronic equipment which a user wants to share for the other party in the communication process of audio or video and the like of the user, so that the sharing real-time performance is realized.
The present application is described below in terms of several aspects, embodiments and advantages of which are mutually referenced.
In a first aspect, the present application provides a method for sharing an application interface, where the method is applied to an electronic device having a display screen, and includes: the electronic device establishes video communication connection with a communication object, the electronic device displays a communication window corresponding to the video communication connection on a display screen in a floating window mode, and responds to a sharing request of a first application to execute sharing operation, wherein the electronic device and the electronic device serving as the communication object can be a mobile phone, a tablet computer, a television, a desktop PC and the like, the electronic device responds to the sharing request of the first application to execute the sharing operation, namely when sharing is performed, the sharing operation for the first application to the communication object is executed by setting sharing conditions, such as whether the pressing time and the pressing times of an icon of the first application set in the sharing process are met or not or whether the icon of the first application is dragged in place or not, and when the sharing conditions are met, the first application can be any other application different from the first application in the terminal, for example, shopping applications, video and audio applications, etc., the first application in the present application may be any application having a communication function, such as various text, audio, video chat applications; next, an interface of the first application is acquired, specifically, the electronic device runs the first application and causes the interface of the first application to be displayed on a display screen, the displayed interface of the first application is acquired, when the electronic device responds to a sharing request of the first application and executes a sharing operation, the electronic device runs the first application and causes the interface of the first application to be displayed on the display screen, the displayed interface of the first application is acquired, and the acquired displayed interface of the first application and a command indicating that the communication object displays the displayed interface are sent to the communication object through a floating window based on video communication connection. The communication object receives the command and pops up a receiving or cancelling option, and the user can watch the interface of the first application displayed on the display screen of the electronic equipment through the communication object such as a mobile phone after confirming the receiving.
According to the embodiment of the application, sharing of the interface of the application which the user wants to share is achieved, the user on one side of the communication object can only see the interface of the shared application, the whole screen of the electronic equipment of the user is not shared, protection of privacy of the user is improved, elements such as a floating frame existing in the process of video chat and the like are utilized, visual dragging operation can be achieved more visually, operation is more visual and simple, meanwhile, the interface of the first application can be shared to the communication object in real time through established real-time video communication connection, the user on two sides of the equipment can simultaneously see the interface of the first application, communication of the user is facilitated, and sharing experience of the user is improved.
In a possible implementation of the first aspect, the electronic device, in response to a sharing request of the first application, performs a sharing operation, where the sharing operation includes detecting whether an icon of the first application is dragged to a position overlapping with a preset position on the display screen, where the preset position may be any position covered by a floating window, for example, after a video connection is established on a mobile phone, the floating window may be formed on the display screen of the mobile phone, where the floating window covers any position, such as a point or a plane, on the display screen.
In other embodiments of the present application, other real-time communication connections may also be used, and the floating window may be a window for voice call, a button or a specific window for sharing, and the like. And when the first application is detected to be dragged to a position overlapped with the preset position on the display screen, executing sharing operation. That is, dragging an icon of a first application, such as an icon of an APP, performs sharing of the first application when the icon overlaps with a preset position, where the overlap of the icon and the preset position may be an overlap of a point or an overlap of a plane. Through visual dragging operation on equipment such as a smart phone or a tablet computer, a user can intuitively perceive whether the sharing operation of the application is correctly executed or not, and the operation is simple and convenient.
In another possible implementation of the first aspect, the electronic device, in response to the sharing request of the first application, performing the sharing operation includes detecting whether a preset position on the display screen is clicked in a predetermined manner, where the predetermined manner may be long-time pressing, or right mouse button (applied to a PC or a smart tv), or multiple pressing, and the like. And when the preset position is detected to be pressed in a preset mode, executing sharing operation.
The method is suitable for a scene of operation by using mouse equipment or touch equipment, can realize the execution of sharing by clicking in a preset mode, is beneficial to distinguishing from other operations on the icons, and prevents misoperation.
In a possible implementation of the first aspect, the electronic device executes a sharing operation in response to a sharing request of the first application, where the sharing operation includes switching an interface of the first application to a foreground operation, and selecting a communication object from an option box popped up from the interface of the first application, where specifically, the option box may be directly popped up on the sharing interface of the first application, or may be popped up after a user clicks a designated location, and the option box includes a communication object in video communication connection with the electronic device; the communication object is selected to execute sharing operation, and then the sharing interface of the first application is shared with the communication object.
In a possible implementation of the first aspect, after the user shares the multiple applications, the shared first application is displayed in an icon arrangement on the floating window, and when the icon is pressed or moved according to a set manner, for example, pressing for 3 seconds for a long time, or canceling the sharing when the icon is moved out of the floating window, or pressing or clicking the icon for a short time, so that the shared application is shared again. The method is convenient for the user to share and not share the applications, and is convenient and visual to operate. In a possible implementation of the first aspect, after the electronic device responds to the sharing request of the first application and performs the sharing operation, that is, when the first application can be shared, the electronic device first marks the first application as a sharing state to display that the first application is in the shared state. That is to say, when the first application is shared, the background marks the first application as the shared state, and then the first application can be displayed in the shared state, so that the user can quickly know that the state of the first application is the shared state. When the user does not want to continue sharing the application, a quick distinction can be made based on the state of the mark to avoid that undesired content is mistakenly shared.
In a possible implementation of the first aspect, it is determined whether the first application has the shared right, and when it is determined that the first application has the shared right, the sharing operation is performed. By setting the authority for the application, some applications which are not suitable for sharing or are not expected to be shared can be prevented from being mistakenly shared to others due to misoperation of a user.
In a possible implementation of the first aspect, the interface for acquiring the first application may acquire the displayed interface of the first application by screen recording or extracting a shared application graphics buffer, for example, the display screen may be recorded by starting a screen recording function after the interface of the first application is displayed on the display screen, or the stored graphics display interface image of the first application may be extracted from a buffer of the application, such as a frame buffer under an android system (but not limited thereto), so as to obtain the displayed interface of the first application, and a video file obtained by screen recording or the interface of the first application extracted from the shared application graphics buffer is sent through a communication connection based on the first application. The video file is interface information of the first application, and the first application is connected in real time through communication based on the first application, so that the interface of the first application is transmitted in real time, a user can share the interface of the same application at the same time, and explanation or communication among the users is facilitated. The interface information of the first application may also be obtained by other acquisition manners, which is not limited herein.
In a possible implementation of the first aspect, after the sharing is finished, when the user wants to finish the sharing, the cancellation of the sharing of the first application may be triggered by closing the first application connection established with the communication object, or pressing a preset position in a predetermined manner, or pressing an icon of the first application in a predetermined manner, or switching the first application to a background operation, where the cancellation refers to stopping acquiring an interface of the first application and stopping sending the interface of the first application to the communication object.
In a possible implementation of the first aspect, when sharing a second application different from the first application when the first application is shared to the communication object, the sharing may be performed, for example, in response to a sharing request of the second application, the electronic device performs a sharing operation, and triggers the sharing of the first application to be cancelled; the method comprises the steps of obtaining an interface of a second application, namely the electronic equipment runs the second application and enables the interface of the second application to be displayed on a display screen, obtaining the displayed interface of the second application, and sending the obtained displayed interface of the second application to a communication object through communication connection based on the first application. The specific sharing process may refer to a sharing process of the first application, when the first application is in a sharing state and shares the second application, the second application is marked as the sharing state, the first application exits the sharing state, and may be closed or run in the background, and an interface of the first application is switched to an interface of the second application on the display screen. The switching of the interfaces of the first application and the second application is achieved in the sharing process, the user can share the interface of the second application to the communication object in real time, the user can talk and synchronously watch the shared interface of the second application, the use is more convenient, and the user experience is improved.
In a second aspect, the present application provides a terminal, which includes a display screen, a communication module, an execution module, an acquisition module, and a processing module. Specifically, the communication module is configured to establish a communication connection based on a first application with a communication object, the terminal displays a communication window corresponding to the video communication connection on a display screen in a form of a floating window, and the execution module is configured to execute a sharing operation in response to a sharing request of the first application, that is, when sharing, by setting a sharing condition, for example, whether an icon pressing time and a pressing frequency of the first application set in the sharing process are met or not, or whether a drag of the icon of the first application is in place or not, and the like, and when the sharing condition is met, executing the sharing operation in response to the sharing request of the first application, where the first application may be any other application different from the first application in the terminal, such as a shopping application, a video application, and the like; next, the obtaining module is configured to obtain an interface of the first application, and specifically may include: when the interface of the first application is displayed on the display screen, the acquisition module acquires the displayed interface of the first application; and the processing module is used for sending the acquired displayed interface of the first application to the communication object together with a command for indicating the communication object to display the displayed interface through communication connection based on the first application. The communication object receives the command and pops up a receiving or cancelling option, and the user can watch the interface of the first application displayed on the display screen of the electronic equipment through the communication object, such as a mobile phone, after confirming the receiving.
According to the embodiment of the application, the interface of the application which the user wants to share is shared, the user on one side of the communication object can only see the interface of the shared application, but not the whole screen of the electronic equipment of the user, the privacy of the user is protected, meanwhile, the real-time interface of the first application can be shared to the communication object through the established real-time communication connection, the user on two sides of the equipment can simultaneously view the interface of the first application, the user communication is facilitated, and the sharing experience of the user is improved.
In a possible implementation of the second aspect, the execution module is specifically configured to detect whether an icon of the first application is dragged to a position overlapping with a preset position on the display screen, where the preset position may be a control for communication connection, such as a window for video call/voice call (a floating window for video/audio call), a button, or a specific window for sharing. And when the first application is detected to be dragged to a position overlapped with the preset position on the display screen, executing the sharing operation of the first application. That is, dragging an icon of a first application, such as an icon of an APP, and performing a sharing operation of the first application when the icon overlaps with a preset position, where the icon overlaps with the preset position, and may be an overlap of a point or an overlap of a face. Through visual dragging operation on equipment such as a smart phone or a tablet computer, a user can intuitively perceive whether the sharing operation of the application is correctly executed or not, and the operation is simple and convenient.
In a possible implementation of the second aspect, the executing module may further specifically include a detecting module, where the detecting module is configured to detect whether the preset position is clicked in a predetermined manner, where the predetermined manner may be that the preset position is pressed for a predetermined time, or a right mouse button (applied to a PC or a smart tv), or multiple times of pressing. When the detection module detects that the preset position is pressed in a preset mode, the execution module triggers sharing of the first application, the mode is suitable for a scene of operation by using mouse equipment or touch equipment, the sharing operation can be executed by clicking in the preset mode, other operations on the icons can be distinguished, and misoperation is prevented.
In a possible implementation of the second aspect, after the communication module establishes a communication connection with the communication object based on the first application, a floating window related to the communication connection between the communication objects is provided on the display screen, and any position covered by the floating window is used as a preset position. For example, after a video connection is established on a mobile phone, a floating window may be formed on a display screen of the mobile phone, where the floating window is located at any position covered by the display screen, such as a point or a plane, as a preset position. Through the setting, the user can observe the floating window more easily in the video call connection process, and in the past operation, the floating window becomes a window shared by the user, and the use habit of the user is met. By utilizing the existing elements such as the suspension frame in the process of video chat and the like, more visual dragging operation can be realized, and the operation is more visual and simple.
In a possible implementation of the second aspect, the execution module is further configured to: switching the interface of the first application to foreground operation, and selecting a communication object from an option frame popped up from the interface of the first application, wherein the option frame can be directly popped up on a sharing interface of the first application or popped up after a user clicks a designated position, and the option frame comprises the communication object which is in video communication connection with the electronic equipment; the communication object is selected to execute sharing operation, and then the sharing interface of the first application is shared with the communication object.
In a possible implementation of the first aspect, the execution module is further configured to, after the user shares the multiple applications, arrange and display the shared first application on the floating window in an icon manner, and cancel the sharing when the icon is pressed or moved according to a set manner, for example, for 3 seconds by long press, or the icon is moved out of the floating window, or for example, for short press or click on the icon, so that the shared application is shared again. The method is convenient for the user to share and not share the applications, and is convenient and visual to operate.
In a possible implementation of the second aspect, the execution module is specifically further configured to: and responding to a sharing request of the first application, marking the first application as a sharing state after executing the sharing operation, and displaying that the first application is in the shared state. That is to say, when the first application is shared, the background marks the first application as the shared state, and then the first application can be displayed in the shared state, so that the user can quickly know that the state of the first application is the shared state. When the user does not want to continue sharing the application, a quick distinction can be made based on the state of the mark to avoid that undesired content is mistakenly shared.
In a possible implementation of the second aspect, the execution module is further configured to: and confirming whether the first application has the shared authority, and executing the sharing operation of sharing the first application to the communication object when the first application is confirmed to have the shared authority.
By setting the authority for the application, some applications which are not suitable for sharing or are not expected to be shared can be prevented from being mistakenly shared to others due to misoperation of a user.
In a possible implementation of the second aspect, the obtaining module is specifically configured to: the displayed interface of the first application is obtained by a screen recording manner or by extracting a graphic buffer area of the sharing application, for example, after the interface of the first application is displayed on a display screen, the display screen may be recorded by starting a screen recording function, so as to obtain the displayed interface of the first application, and a video file obtained by screen recording is sent through a communication connection based on the first application, or a stored graphic display interface image of the first application may be extracted from an application buffer area, such as a frame buffer area (but not limited to) under an android system, and then the interface image of the first application is sent to a communication object through the first application communication connection. The video file is interface information of the first application, and the interface of the first application is transmitted in real time due to the fact that the first application is connected in real time through communication connection based on the first application, so that the user can watch the interface of the same application at the same time, and explanation or communication among the users is facilitated. The interface information of the first application may also be obtained by other acquisition manners, which is not limited herein.
In a possible implementation of the second aspect, the processing module is further configured to: the method comprises the steps of triggering cancellation of sharing of a first application by closing a first application connection established with a communication object, or pressing a preset position in a preset mode, or pressing an icon of the first application in the preset mode, or switching the first application to background running, wherein the cancellation means stopping obtaining an interface of the first application and stopping sending the interface of the first application to the communication object.
In a possible implementation of the first aspect, when the user shares the first application with the communication object and shares a second application different from the first application, the execution module is further configured to execute a sharing operation in response to a sharing request of the second application, and trigger that the sharing of the first application is cancelled; the acquisition module is further used for running a second application and displaying an interface of the second application on the display screen to acquire the displayed interface of the second application, and the processing module is further used for sending the acquired displayed interface of the second application to the communication object through communication connection based on the first application. The switching of the interfaces of the first application and the second application by the processing module in the sharing process is realized, the user can share the interface of the second application to a communication object in real time, the user can synchronously watch the shared interface of the second application while talking, the use is more convenient, and the user experience is improved.
In a third aspect, the present application provides an electronic device, which includes a processor and a memory, where instructions are stored in the memory, and the processor is configured to read the instructions stored in the memory to execute the method for sharing an application interface according to the embodiment of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having instructions stored thereon, where the instructions, when executed on a computer, cause the computer to execute a method for sharing an application interface according to the embodiment of the first aspect.
Drawings
FIG. 1 is a diagram of a scenario of an electronic device in a communication network according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a block diagram of a software architecture of an electronic device according to one embodiment of the present application;
FIG. 4 is a flowchart of a method for sharing an application interface according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a floating window and an APP displayed on a display screen after a connection is established according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an interface of a display screen displaying an exercise health APP, according to an embodiment of the present application;
fig. 7 is a detailed flowchart of triggering sharing of a first application to a communication object according to an embodiment of the present application;
fig. 8 is a detailed flowchart of triggering sharing of a first application to a communication object according to another embodiment of the present application;
FIG. 9 is a schematic diagram of an interface with a display screen displaying an exercise health APP and an option box according to an embodiment of the present application;
FIG. 10 is a state diagram of a floating window display application according to another embodiment of the present application;
FIG. 11 is a flowchart of a handover method for an application according to another embodiment of the present application;
fig. 12 is a schematic structural diagram of a terminal according to another embodiment of the present application;
FIG. 13 is a block diagram of an electronic device according to another embodiment of the present application;
fig. 14 is a block diagram of a SoC according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be appreciated that as used herein, the term module may refer to or include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and/or memory that executes one or more software or firmware programs, a combinational logic circuit, and/or other suitable hardware components that provide the described functionality, or may be part of such hardware components.
It is to be understood that the electronic device of the present application may be a device having a display screen and a wireless communication function, for example, a mobile phone, a laptop computer, a tablet computer, or a wearable device having a communication function, such as a watch, a bracelet, and the like, and is not limited herein.
It will be appreciated that in the various embodiments of the present application, the processor may be a microprocessor, a digital signal processor, a microcontroller, the like, and/or any combination thereof. According to another aspect, the processor may be a single-core processor, a multi-core processor, the like, and/or any combination thereof.
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Some embodiments according to the present application disclose a scene graph of an electronic device in a communication network. The electronic device is a device having a display screen and a wireless communication function, and a mobile phone is taken as an example for description.
Fig. 1 shows a scene diagram of an electronic device in a communication network. As shown in fig. 1, the scenario includes a mobile phone 101 of an actively sharing user (user a) and a communication object wirelessly connectable to the mobile phone, for example, a mobile phone 102 or a computer 103 of a user B as a communication object. After an instant video communication connection is established between the mobile phone of the user a and the mobile phone 102 of the user B by using a video call application, a video communication window can be set on a display screen of the mobile phone to be a floating window, so that the user can conveniently search for a pre-shared application on the display screen, the mobile phone 101 of the user a can send an interface of a first application (such as an exercise health APP on the mobile phone) in the mobile phone to the mobile phone 102 of the user B in real time through the video communication connection, and further the user a and the user B can watch the interface of the first application at the same time, so that the user can watch a talk while watching, and by using elements such as a floating frame existing in the process of video chat and the like, a more visual and visual dragging operation can be realized, the operation is more visual and simple, and convenient, and the sharing experience of the user is improved. Moreover, the sharing is only the interface of the application appointed by the user, but not the interface of the whole mobile phone, so that the protection of the privacy of the user A is greatly improved.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an electronic device 100 according to the present application.
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 application 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.
According to some embodiments of the present application, instructions are stored in the internal memory 121, and the processor 110 reads the instructions stored in the internal memory 121 to execute the method for sharing an application interface in the present application, which may specifically refer to the method for sharing an application interface in the following embodiments.
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 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 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.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
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.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit 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. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
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 supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
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 modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent 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 be 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), or 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. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in 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 photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
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 NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, 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 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 processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
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 audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
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 same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
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 application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the electronic device 100.
Fig. 3 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application.
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. 3, 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. 3, 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. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic 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 subsystem and provide 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.
The following describes exemplary workflow of the software and hardware of the electronic device 100 in connection with capturing a photo scene.
When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video through the camera 193.
According to some embodiments of the present application, a method for sharing an application interface by an electronic device is described below in a specific embodiment, and fig. 4 is a flowchart illustrating a method for sharing an application interface, where the method may be executed by the electronic device 100 according to the foregoing embodiment, as shown in fig. 4, and the method specifically includes:
in step S201, the electronic device establishes a video communication connection with a communication object.
The instant messaging connection between users can be realized by using the video call application, for example, the video communication connection is established between the mobile phone of the user A and the mobile phone of the user B, after the video communication connection is established, the user A and the user B can carry out instant video chat, and the video file collected by the camera is transmitted in real time. In other embodiments in the present application, the mobile phone of the user a may establish a voice communication connection or a text communication connection with the mobile phone of the user B, which is not limited herein.
And S202, the electronic equipment displays a communication window corresponding to the video communication connection on a display screen in a floating window mode.
According to an embodiment of the present application, as shown in fig. 5, after the mobile phone of the user a establishes a video communication connection with the mobile phone or the computer of the user B, a video window capable of displaying an image of the user and/or a video window of the shared user side is presented on the display screen of the mobile phone of the user a, the video window may be set as a floating window and placed on the top layer of the display screen of the mobile phone, and meanwhile, the user may click any other applications on the mobile phone, such as hua applied market APP, Baidu APP, and the like, and the user may watch other applications on the mobile phone while playing the video.
Step S203, the electronic device executes a sharing operation in response to the sharing request of the first application, so that the sharing user shares the application on the electronic device with the user serving as the communication object.
In response to the sharing request of the first application, executing the sharing operation may be understood as starting the sharing of the first application, and only the preset triggering condition of the sharing of the first application needs to be satisfied, for example, whether the click on the icon of the first application satisfies the pressing time and the number of consecutive clicks, or whether the drag position of the icon is in place, whether the setting authority is released, or the like, or when several set conditions are satisfied at the same time, triggering the sharing of the first application to the communication object. Through the setting of the trigger condition, the sharing safety of the sharing user can be improved, and careless sharing of own information to other people is avoided. Note that the first application in the present application may be a video, a picture, a file, or the like, and the point-and-click in the present application covers a pressing operation using a touch panel or a touch pad and a point-and-click operation using a device such as a mouse.
Step S204, the electronic equipment runs the first application, so that the interface of the first application is displayed on the display screen, and the displayed interface of the first application is obtained. The interface for acquiring the first application can be acquired in a screen recording mode, and can also be acquired in a mode of extracting a shared application graph buffer area. The acquiring of the interface of the first application specifically includes: and running the first application and displaying the interface of the first application on the display screen to acquire the displayed interface of the first application. That is to say, after the first application sharing operation is performed, the electronic device may run the first application, that is, open the first application, so that the first application runs in the foreground, the interface of the first application is presented on the display screen of the electronic device, and the interface of the first application starts to be acquired in a screen recording manner. Or a manner of extracting the shared application graphics buffer, for example, a stored graphics display interface image of the first application may be extracted from a buffer of the application, such as a frame buffer (frame buffer) under an android system (but the application is not limited thereto), and then the interface image of the first application is sent to the communication object through a video communication connection.
For example, as shown in fig. 6, taking a mobile phone as an example, the sharing user shares an exercise health Application (APP) on the mobile phone through the mobile phone, after the exercise health sharing condition is triggered, the mobile phone background opens the APP, and displays interface information of the APP on a display screen of the mobile phone, at this time, an interface of the exercise health APP on the display screen can be acquired through a screen recording function, the user can continue to click a sleep function module under the interface when using the mobile phone, so as to obtain a sleep state of the sharing user, such as insufficient sleep, better sleep, and the like, and all interfaces that are turned or clicked at any time and displayed on the display screen of the mobile phone can be acquired through the screen recording.
In step S205, the acquired displayed interface of the first application is sent to the communication object through the floating window based on the video communication connection, and may be sent to the communication object together with a command indicating that the communication object displays the displayed interface. After the displayed interface of the first application is acquired, a video file containing the operation process of the displayed interface of the first application can be sent to a communication object in real time through a floating window based on video communication connection, meanwhile, when the displayed interface of the first application is sent, a command for indicating or prompting the communication object to display the displayed interface is attached, and then the video is displayed on a display screen of the communication object after the communication object receives the video of the shared interface of the application. Therefore, the content which is required to be shared can be instantly shared between the sharing user and the shared user, namely, the electronic equipment of the sharing user and the communication object can instantly display the interface of the first application, the sharing user and the communication object can simultaneously watch the interface of the first application and communicate with each other, the sharing mode is used as the interface that the user of the communication object can only watch the shared application, the sharing mode has higher safety, and the sharing experience of the user is improved.
As will be understood by those skilled in the art, after the device of the communication object receives the video of the interface of the shared application and the command to display the displayed interface, a prompt window may be set for the user of the communication object to inquire whether the user of the communication object wishes to display the displayed interface. The user of the communication object can accept or reject the sharing by operating a key on the prompt window or the like.
In a specific embodiment of the present application, in step S202, the electronic device executes a sharing operation in response to a sharing request of the first application, and may implement the sharing operation in the following manner, as shown in fig. 7, specifically including the following steps:
step S2021, detecting whether the icon of the first application is dragged to a position overlapping with a preset position on the display screen, where the preset position may be any position covered by the floating window, for example, after a video connection is established on the mobile phone, a floating window may be formed on the display screen of the mobile phone, where the floating window is at any position covered on the display screen, that is, any position where the floating window overlaps with the display screen, where the determination of overlapping with the preset position may be a point (i.e., contact between the icon and the preset position by at least one point) or an overlap of a surface (i.e., overlap between the icon and the preset position by a predetermined area size (ratio)).
In step S2022, when it is detected that the first application is dragged to a position overlapping with the preset position on the display screen, a sharing operation of the first application is performed.
For example, as shown in fig. 5, when the sharing user wants to share the exercise health APP, drag the exercise health APP icon to a position on the display screen that overlaps with the floating window, at this time, the sharing of the APP may be triggered, and after the exercise health APP is opened, display an interface of the APP on the display screen, as shown in fig. 4. The operation is simple and quick, and the operation is convenient for users.
According to an embodiment of the application, when it is detected that the first application is dragged to a position overlapping with a preset position on the display screen, sharing of the first application can be further executed through displaying a pop-up confirmation window, for example, an exercise health APP icon is dragged to a position overlapping with a floating window on the display screen, an option of whether to share is generated, whether a user wants to share is prompted, and the user can execute sharing of the first application through selection confirmation. If the user does not want to share, the user can click the option of no or cancel sharing and the like, and the sharing is refused, so that the misoperation of the user is further prevented, and the sharing safety is improved.
In an embodiment of the application, in step S202, another way for the electronic device to execute the sharing operation in response to the sharing request of the first application is, as shown in fig. 8, specifically including the following steps:
step S2021', detecting whether a preset position on the display screen is clicked in a predetermined manner, wherein the preset position may be implemented as a certain button on the screen, or an icon of the application is directly designated as the preset position. The click operation is a pressing operation using a touch panel or a touch pad or a clicking operation using a mouse or the like. The pressing operation may include long-pressing an icon of an application or continuously pressing an icon of an application. The predetermined mode may be a long-time press, or a right mouse button (applied to a PC or a smart tv) is clicked on an icon of a certain application, or multiple clicks are performed on an icon of a certain application, and the like.
In step S2022', when the preset position is detected to be clicked in the predetermined manner, the sharing of the first application is performed.
For example, the predetermined manner is to press the floating window for 3 seconds, and when it is detected that the duration of the pressing of the floating window or the video window reaches 3 seconds, the sharing of the first application is triggered. In a preferred embodiment, a list of applications to be shared selected by the user is popped up from the position of the floating window or the video window, and the user can select the applications to be shared from the list. The above listed pop-up positions are merely exemplary illustrations, and the present application is not limited thereto.
For another example, if the predetermined manner is right-clicking an icon of the application, when the right-clicking operation is detected, the sharing of the first application is executed.
According to another embodiment of the application, the electronic device, in response to a sharing request of a first application, performs a sharing operation, including: the method comprises the steps of opening a first application, switching an interface of the first application to a foreground operation, popping up an option frame on the interface of the first application, wherein the option frame can be directly popped up on a sharing interface of the first application, or can be popped up after a user clicks a designated position, the option frame can comprise a communication object which is in video communication connection with electronic equipment, and when the communication object is selected, a sharing operation is executed, namely, the interface of the first application is triggered to be shared to the communication object. As shown in fig. 9, the user opens the exercise health APP, pops up an option box after opening, displays the head portrait of the shared user in video connection in the option box, and the user can share the communication object through clicking the head portrait to trigger the interface of the first application, so that the shared user can view the exercise health interface.
According to the preferred embodiment of the application, after a user shares a plurality of applications, the shared applications and the currently shared applications are displayed in an icon manner in a row on the floating window, and when the icon is pressed or moved according to a set manner, the application is cancelled or shared again. For example, the sharing is cancelled when the icon is pressed for 3 seconds for a long time or the icon is moved out of the floating window, or the icon is pressed or clicked for a short time, so that the applications which are already shared are shared again. As shown in fig. 10, an interface of a third application being shared is displayed on a floating window, a user already shares a first application and a second application, the third application is currently being shared, and the first application, the second application and the third application are arranged below the floating window in the form of icons, wherein the selected third application is the application being shared, the first application and the second application can run in the background, when the user shares the first application or the second application again, the user can directly click the icon corresponding to the application to share the interface of the first application or the second application again, and in addition, the user can also directly drag the icon of the application to the outside of the floating window or double-click to close the application, cancel the sharing, display the application in the form of small icon arrangement, view the shared application more intuitively, and facilitate the user to find or cancel the shared application more conveniently and quickly, the sharing experience of the user is further improved.
According to an embodiment of the application, after it is detected that the preset position is clicked in a predetermined manner, the sharing of the first application may be further executed by displaying a pop-up confirmation window, for example, after the time of pressing the floating window reaches 3 seconds, an option of whether to share is generated to prompt a user whether to share, and the user may execute the sharing of the first application by selecting confirmation. And if the user does not want to share, the user can click on the options of no sharing, sharing cancellation and the like to reject sharing. For another example, the predetermined manner is to right click an icon of the application, and after the click operation of the right click is detected, a sharing option is generated to prompt the user whether to share, and the user can execute sharing of the first application by selecting and confirming. And if the user does not want to share, the user can click on the options of no sharing, sharing cancellation and the like to reject sharing. Through such setting, can further improve the security of sharing.
As an embodiment of the application, after the sharing of the first application to the communication object is performed, the first application is marked as the sharing state, where the sharing state may be in a form of attaching a pattern or a character (e.g., a small dot, an asterisk, a number, or a letter) on an icon of the application, or in a manner of marking a chinese character in an interface of the application, for example, a word "sharing in the middle of sharing" or "sharing state" may be written on the interface of the first application on the display screen, or in other forms of symbols, so as to display that the first application is in the shared state. Therefore, the user can know that the state of the first application is the sharing state, and is further prompted to be in the sharing process, and the user can be effectively prevented from possibly forgetting that the interface is the sharing state in long-time chatting.
In some embodiments of the application, in order to further improve the security of user sharing and facilitate management of information of the user, the application may be set with a right in right management of the application, when a sharing user wants to share a first application, it is first determined whether the first application has the right to be shared, and when it is determined that the first application has the right to be shared, a sharing operation of sharing the first application to a sharing object is performed. That is to say, the user can set whether the first application has the authority of sharing according to the privacy degree of each application, for example, APP applications related to banks, wallets and the like can set the authority, and entertainment APPs with lower privacy degree and the like can not set the authority. When the first application with the permission is shared, the reminder that the application has the permission and cannot be shared can be popped up to warn the user to carry out cautious sharing, and if the user really needs to share the first application, the user can share the first application by changing the permission. If the communication object has no authority, selecting whether the communication object is shared or not, and executing sharing operation of sharing the first application to the communication object after selecting the sharing option. The sharing authority is set, so that the use safety of the user can be improved.
According to an embodiment of the application, after the sharing is finished, the user can finish the sharing of the communication object in various ways, namely cancel the sharing of the application. Here, "cancel" means to stop acquiring the interface of the first application and stop sending the interface of the first application to the communication object.
As an implementation manner, the user may close the sharing of the application by closing the first application connection established with the communication object, that is, by suspending the current call based on the first application. Since the transmission of the application share is based on the communication connection, the interruption of the communication connection means the end of the application share. Similarly, the user to whom the communication is directed may terminate the sharing of the application by suspending the communication.
As another implementation, the user may choose to end the sharing of the application by pressing a preset location, such as a particular button on the interface, in a predetermined manner. Likewise, the user who is the object of communication can also terminate the sharing of the accepted application by pressing the specific button in a predetermined manner.
As yet another implementation, the user may press an icon of the first application in a predetermined manner to end the sharing of the application.
As another implementation, the user may directly cause the first application not to run in the foreground to trigger cancellation of the sharing of the first application. The non-foreground running includes switching the first application from foreground to background running, directly closing or terminating the running of the first application, and the like.
The sharing canceling mode is convenient to operate, the user can interrupt sharing of the communication object at any time according to the requirement of the user, and sharing experience of the user is further improved.
Fig. 11 illustrates a flow chart of a method for handover of an application, according to some embodiments of the present application. As shown in fig. 11, when a user wants to replace a shared application, that is, when sharing of a first application continues for a certain time, the user wants to share a second application different from the first application, specifically, the method may include the following steps:
step S701, in response to the sharing request of the second application, the electronic device executes a sharing operation and triggers that the sharing of the first application is cancelled, where the cancelling of the sharing of the first application includes that the first application is closed or terminated to run, or the first application runs in a background of the electronic device.
Step S702, acquiring an interface of a second application, including: and running the second application and displaying the interface of the second application on the display screen to acquire the displayed interface of the second application.
And step S703, sending the acquired displayed interface of the second application to a communication object through the floating window based on the video communication connection.
For the specific sharing process of switching the first application in the sharing state to the second application, reference may be made to the sharing process of the first application, which is not described herein again. Through the switching of the interfaces of the first application and the second application, the users can synchronously watch different shared interfaces while talking, so that the use is more convenient, and the sharing experience of the users is further improved.
According to some embodiments of the present application, a terminal of the present application is introduced below in a specific embodiment, fig. 12 shows a schematic structural diagram of the terminal, and as shown in fig. 12, the terminal executes the method for sharing an application interface according to the foregoing embodiment, which specifically includes:
a display module 801 including a display screen;
a communication module 802, configured to establish a communication connection, such as a video connection or a voice connection, based on a first application with a communication object, and after the communication connection is established, display a corresponding communication window, such as a video window or a voice communication frame, on a display screen;
the executing module 803 is configured to execute a sharing operation in response to a sharing request of the first application, for example, execute the sharing operation when a sharing condition is satisfied, where the sharing condition may be that a set pressing time, a number of consecutive clicks or whether a drag position is in place, whether a setting authority is released, or that several set conditions are satisfied simultaneously.
An obtaining module 804, configured to obtain an interface of a first application, includes: when the first application is run and an interface of the first application is displayed on the display screen, the obtaining module 804 obtains the displayed interface of the first application;
the processing module 805 is configured to send the acquired displayed interface of the first application to the communication object through a communication connection based on the first application, together with a command that instructs the communication object to display the displayed interface.
In an embodiment of the present application, the executing module 803 is specifically configured to: detecting whether an icon of a first application is dragged to a position overlapped with a preset position on a display screen; and when the first application is detected to be dragged to a position overlapped with the preset position on the display screen, executing the sharing operation of the first application.
In an embodiment of the present application, the executing module 803 is further specifically configured to: and detecting whether the preset position is clicked in a preset mode, and executing the sharing operation of the first application when the preset position is detected to be clicked in the preset mode.
In an embodiment of the present application, the executing module 803 is further configured to: opening the first application, and popping up an option box on an interface of the first application, wherein the option box comprises a communication object in video communication connection with the electronic equipment; and selecting the communication object to execute sharing operation.
According to one embodiment of the application, shared applications are displayed on the floating window in an icon mode in an arranged mode, and when the icons are pressed or moved according to a set mode, the sharing is cancelled or the applications are shared again.
In one embodiment of the present application, any position covered by the floating window is used as the preset position.
In an embodiment of the present application, the executing module 803 is further specifically configured to: after the sharing operation of sharing the first application to the communication object is executed, the first application is marked to be in a sharing state, so that the first application is displayed to be in the shared state.
In an embodiment of the present application, the executing module 803 is further configured to determine whether the first application has the shared right, and when it is determined that the first application has the shared right, execute a sharing operation of sharing the first application to the communication object.
In an embodiment of the application, the obtaining module 804 is specifically configured to obtain a displayed interface of the first application in a manner of screen recording or extracting a shared application graph buffer, and send a video file obtained by screen recording or an image interface of the first application extracted from the buffer through a communication connection based on the first application.
In an embodiment of the application, the processing module 805 is further configured to trigger cancellation of sharing of the first application by closing the first application connection established with the communication object, or clicking a preset position in a predetermined manner, or clicking an icon of the first application in a predetermined manner, or switching the first application to background running, where cancellation refers to stopping acquiring an interface of the first application and stopping sending the interface of the first application to the communication object.
In an embodiment of the application, when sharing a first application with a communication object and sharing a second application different from the first application, the executing module 803 is further configured to, in response to a sharing request of the second application, execute a sharing operation by the electronic device, and trigger the sharing of the first application to be cancelled, and the obtaining module is further configured to obtain an interface of the second application, where the interface includes: the processing module is further used for sending the acquired displayed interface of the second application to the communication object through communication connection based on the first application.
According to the terminal of the embodiment of the present application, the method for sharing an application interface in the above embodiment is specifically performed, and a specific implementation process may refer to the method in the above embodiment, which is not described herein again.
The terminal of the application has the advantages that only the interface of the application which the user wants to share is shared, the shared user can only see the interface of the shared application, the use safety of the user is improved, meanwhile, the real-time interface sharing of the first application can be achieved through the established real-time communication connection, the user on two sides of the device can simultaneously see the interface of the first application, the user communication is facilitated, and the sharing experience of the user is improved.
Referring now to FIG. 13, shown is a block diagram of an electronic device 1200 in accordance with one embodiment of the present application. The device 1200 may include one or more processors 1201 coupled to a controller hub 1203. For at least one embodiment, controller hub 1203 communicates with processor 1201 via a multi-drop bus such as a front-side bus (FSB), a point-to-point interface such as a quick channel interconnect (QPI), or similar connection 1206. The processor 1201 executes instructions that control general types of data processing operations. In one embodiment, controller hub 1203 includes, but is not limited to, a Graphics Memory Controller Hub (GMCH) (not shown) and an input/output hub (IOH) (which may be on separate chips) (not shown), where the GMCH includes a memory and a graphics controller and is coupled with the IOH. The device 1200 may also include a coprocessor 1202 and a memory 1204 coupled to the controller hub 1203. Alternatively, one or both of the memory and GMCH may be integrated within the processor (as described herein), with the memory 1204 and coprocessor 1202 being directly coupled to the processor 1201 and to the controller hub 1203, with the controller hub 1203 and IOH being in a single chip. The memory 1204 may be, for example, Dynamic Random Access Memory (DRAM), Phase Change Memory (PCM), or a combination of the two. In one embodiment, coprocessor 1202 is a special-purpose processor, such as, for example, a high-throughput MIC processor, a network or communication processor, compression engine, graphics processor, GPGPU, embedded processor, or the like. The optional nature of coprocessor 1202 is represented in FIG. 13 by dashed lines.
Memory 1204, as a computer-readable storage medium, may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. For example, memory 1204 may include any suitable non-volatile memory, such as flash memory, and/or any suitable non-volatile storage device, such as one or more hard disk drives (hdd (s)), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives.
The memory 1204 may comprise a portion of a storage resource on an apparatus of the system 1200, or it may be accessible by, but not necessarily a part of, a device. For example, accessible over a network via the network interface 1206. In one embodiment, device 1200 may further include a Network Interface (NIC) 1206. Network interface 1206 may include a transceiver to provide a radio interface for device 1200 to communicate with any other suitable device (e.g., front end module, antenna, etc.). In various embodiments, the network interface 1206 may be integrated with other components of the device 1200. The network interface 1206 may implement the functions of the communication unit in the above-described embodiments.
Device 1200 may further include an input/output (I/O) device 1205. I/O1205 may include: a user interface designed to enable a user to interact with the device 1200; the design of the peripheral component interface enables peripheral components to also interact with the device 1200; and/or sensors may be configured to determine environmental conditions and/or location information associated with device 1200.
It is noted that fig. 12 is merely exemplary. That is, although fig. 13 shows that the apparatus 1200 includes a plurality of devices, such as the processor 1201, the controller hub 1203, the memory 1204, etc., in practical applications, an apparatus using the methods of the present application may include only a part of the devices of the apparatus 1200, for example, only the processor 1201 and the NIC1206 may be included. The nature of the alternative device in fig. 13 is shown in dashed lines.
According to some embodiments of the present application, the memory 1204 serving as a computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the system 1200 executes the method for sharing an application interface as shown in fig. 4 in the embodiments described above, which may specifically refer to the method in the embodiments described above, and will not be described herein again.
Referring now to fig. 14, shown is a block diagram of a SoC (System on Chip) 1300 in accordance with an embodiment of the present application. In fig. 14, like parts have the same reference numerals. In addition, the dashed box is an optional feature of more advanced socs. In fig. 14, the SoC1300 includes: an interconnect unit 1350 coupled to the processor 1310; a system agent unit 1380; a bus controller unit 1390; an integrated memory controller unit 1340; a set or one or more coprocessors 1320 which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a Static Random Access Memory (SRAM) unit 1330; a Direct Memory Access (DMA) unit 1360. In one embodiment, the coprocessor 1320 includes a special-purpose processor, such as, for example, a network or communication processor, compression engine, GPGPU, a high-throughput MIC processor, embedded processor, or the like.
Included in Static Random Access Memory (SRAM) unit 1330 may be one or more computer-readable media for storing data and/or instructions. A computer-readable storage medium may have stored therein instructions, in particular, temporary and permanent copies of the instructions. The instructions may include: when executed by at least one unit in the processor, the Soc1300 is enabled to execute the method for sharing the application interface according to the foregoing embodiment, which may specifically refer to the method of the foregoing embodiment, and details are not described herein again.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the application may be implemented as computer programs or program code executing on programmable systems comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. The program code can also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in this application are not limited in scope to any particular programming language. In any case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or via other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy diskettes, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), Random Access Memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared digital signals, etc.) using the internet in an electrical, optical, acoustical or other form of propagated signal. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some features of the structures or methods may be shown in a particular arrangement and/or order. However, it is to be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a manner and/or order different from that shown in the illustrative figures. In addition, the inclusion of a structural or methodical feature in a particular figure is not meant to imply that such feature is required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the apparatuses in the present application, each unit/module is a logical unit/module, and physically, one logical unit/module may be one physical unit/module, or may be a part of one physical unit/module, and may also be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logical unit/module itself is not the most important, and the combination of the functions implemented by the logical unit/module is the key to solve the technical problem provided by the present application. Furthermore, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units/modules which are not so closely related to solve the technical problems presented in the present application, which does not indicate that no other units/modules exist in the above-mentioned device embodiments.
It is noted that, in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the use of the verb "comprise a" to define an element does not exclude the presence of another, same element in a process, method, article, or apparatus that comprises the element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (29)

1. A method for sharing an application interface is applied to an electronic device with a display screen, and is characterized by comprising the following steps:
the electronic equipment establishes video communication connection with a communication object;
the electronic equipment displays a communication window corresponding to the video communication connection on the display screen in a floating window mode;
the electronic equipment responds to a sharing request of a first application and executes sharing operation;
the electronic equipment runs the first application, so that an interface of the first application is displayed on the display screen, and the displayed interface of the first application is obtained;
and sending the acquired displayed interface of the first application to a communication object based on the floating window connected with the video communication.
2. The method according to claim 1, wherein the electronic device performs a sharing operation in response to a sharing request of a first application, and the sharing operation comprises:
detecting whether an icon of the first application is dragged to a position overlapped with a preset position on the display screen;
and when the icon of the first application is detected to be dragged to a position overlapped with the preset position on the display screen, executing the sharing operation.
3. The method according to claim 1, wherein the electronic device performs a sharing operation in response to a sharing request of a first application, and the sharing operation comprises:
detecting whether a preset position on the display screen is pressed in a preset mode;
and when the preset position is detected to be pressed in a preset mode, executing the sharing operation.
4. The method of claim 2 or 3, wherein any position covered by the floating window is taken as the preset position.
5. The method according to claim 1, wherein the electronic device performs a sharing operation in response to a sharing request of the first application, and the method comprises:
and switching the interface of the first application to foreground operation, and selecting the communication object from an option box popped up from the interface of the first application so as to execute sharing operation.
6. The method according to claim 5, wherein applications already shared and applications currently shared are displayed in an icon manner in the floating window in an arrangement manner, and when the icon is pressed or moved according to a set manner, the applications are cancelled or shared again.
7. The method of claim 6, wherein the icon being pressed in a set manner comprises: and pressing the icon according to a set time length or pressing the icon according to the number of clicks.
8. The method of claim 6, wherein the icon being moved in a set manner comprises: and dragging the icon from the position of the suspension window to a position outside the suspension window or to a specified position.
9. The method according to any one of claims 1-3 or 5, wherein the electronic device performs a sharing operation in response to a sharing request of a first application, further comprising:
after the sharing operation of sharing the first application to the communication object is executed, marking the first application as a sharing state to display that the first application is in the shared state.
10. The method of claim 9, wherein the sharing state is a state in which the first application is being shared by attaching a pattern or a text to an icon of the application or by marking a chinese character in an interface of the application.
11. The method according to claim 1, wherein the electronic device performs a sharing operation in response to a sharing request of a first application, and the sharing operation further comprises:
and confirming whether the first application has the shared authority, and executing the sharing operation when the first application is confirmed to have the shared authority.
12. The method of claim 1, wherein the displayed interface of the first application is obtained by screen recording or extracting a shared application graphic buffer, and the screen recording is performed on an obtained video file, or the interface of the first application extracted from the shared application graphic buffer is sent through the first application-based communication connection.
13. The method of claim 2, further comprising:
executing cancellation of sharing of the first application by closing the first application connection established with a communication object, or clicking the preset position in a preset mode, or clicking an icon of the first application in a preset mode, or making the first application not run in the foreground,
the cancellation refers to stopping acquiring the interface of the first application and stopping sending the interface of the first application to the communication object.
14. The method of claim 1, further comprising the step of sharing a second application different from the first application when the first application is shared to the communication object, comprising:
the electronic equipment responds to a sharing request of a second application, executes sharing operation and triggers the sharing of the first application to be cancelled;
the electronic equipment runs the second application, so that an interface of the second application is displayed on the display screen, and the displayed interface of the second application is obtained;
and sending the acquired displayed interface of the second application to the communication object through a floating window based on the video communication connection.
15. An apparatus for sharing an application interface, comprising:
a display screen;
the communication module establishes video communication connection with a communication object so as to display a communication window corresponding to the video communication connection on the display screen in a floating window mode;
the execution module responds to a sharing request of the first application and executes sharing operation;
the acquisition module acquires the displayed interface of the first application when the interface of the first application is displayed on the display screen;
and the processing module is used for sending the displayed interface of the first application acquired by the acquisition module to a communication object based on the floating window connected with the video communication.
16. The apparatus of claim 15, wherein the execution module is specifically configured to:
detecting whether an icon of the first application is dragged to a position overlapped with a preset position on the display screen;
and when the icon of the first application is detected to be dragged to a position overlapped with the preset position on the display screen, executing the sharing operation.
17. The apparatus of claim 15, wherein the execution module is further specifically configured to:
detecting whether a preset position on the display screen is pressed in a preset mode;
and when the preset position is detected to be pressed in a preset mode, executing the sharing operation.
18. The apparatus of claim 16 or 17, wherein any position covered by the floating window is the preset position.
19. The apparatus of claim 15, wherein the execution module is further configured to:
and switching the interface of the first application to foreground operation, and selecting the communication object from an option box popped up from the interface of the first application so as to execute sharing operation.
20. The apparatus of claim 19, wherein the execution module is specifically configured to: and displaying the shared applications and the applications which are being shared in an icon mode in an arranging mode on the floating window, and canceling or sharing the applications again when the icons are pressed or moved according to a set mode.
21. The apparatus of claim 20, wherein the icon being pressed in a set manner comprises: and pressing the icon according to a set time length or pressing the icon according to the number of clicks.
22. The apparatus of claim 20, wherein the icon being moved in a set manner comprises: and dragging the icon from the position of the suspension window to a position outside the suspension window or to a specified position.
23. The apparatus according to any one of claims 15-17 or 19, wherein the execution module: after the sharing operation of sharing the first application to the communication object is executed, marking the first application as a sharing state to display that the first application is in the shared state.
24. The apparatus of claim 15, wherein the execution module is further configured to determine whether the first application has a shared right, and execute the sharing operation when it is determined that the first application has the shared right.
25. The apparatus of claim 15, wherein the obtaining module obtains the displayed interface of the first application by screen recording or extracting a shared application graphic buffer, and sends the obtained video file by screen recording or the interface of the first application extracted from the shared application graphic buffer through the first application-based communication connection.
26. The apparatus of claim 16, wherein the processing module further comprises:
executing cancellation of sharing of the first application by closing the first application connection established with a communication object, or clicking the preset position in a preset mode, or clicking an icon of the first application in a preset mode, or making the first application not run in the foreground,
the cancellation refers to stopping acquiring the interface of the first application and stopping sending the interface of the first application to the communication object.
27. The apparatus according to claim 15, further comprising, when sharing a first application to the communication object, the step of sharing a second application different from the first application, comprising:
the execution module responds to a sharing request of a second application, executes sharing operation and triggers the sharing of the first application to be cancelled;
when the interface of the second application is displayed on the display screen, the acquisition module acquires the displayed interface of the second application;
and the processing module sends the acquired displayed interface of the second application to the communication object through a floating window based on the video communication connection.
28. An electronic device comprising a processor and a memory,
the memory has stored therein an instruction that,
the processor to read the instructions stored in the memory to perform the method of any of claims 1-14.
29. A computer-readable storage medium having instructions stored thereon, which when executed on a computer cause the computer to perform the method of any one of claims 1-14.
CN202010228921.9A 2020-03-27 2020-03-27 Method and device for sharing application interface, electronic equipment and readable storage medium Pending CN113452945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010228921.9A CN113452945A (en) 2020-03-27 2020-03-27 Method and device for sharing application interface, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010228921.9A CN113452945A (en) 2020-03-27 2020-03-27 Method and device for sharing application interface, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113452945A true CN113452945A (en) 2021-09-28

Family

ID=77807950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010228921.9A Pending CN113452945A (en) 2020-03-27 2020-03-27 Method and device for sharing application interface, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113452945A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327178A (en) * 2021-11-18 2022-04-12 荣耀终端有限公司 Interface display method, device and storage medium
WO2023131051A1 (en) * 2022-01-07 2023-07-13 华为技术有限公司 Content sharing method and electronic device
WO2023142763A1 (en) * 2022-01-27 2023-08-03 华为技术有限公司 Inter-application information sharing method and terminal
WO2024017296A1 (en) * 2022-07-22 2024-01-25 华为技术有限公司 Sharing method, electronic device and system
WO2024022257A1 (en) * 2022-07-29 2024-02-01 华为技术有限公司 Content display method, device, and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349109A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN104426939A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 Information processing method and electronic equipment
CN104750450A (en) * 2015-04-03 2015-07-01 魅族科技(中国)有限公司 File sharing method in IM (Instant Messaging) and terminal
CN109672845A (en) * 2018-12-29 2019-04-23 维沃移动通信有限公司 A kind of method, apparatus and mobile terminal of video calling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349109A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN104426939A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 Information processing method and electronic equipment
CN104750450A (en) * 2015-04-03 2015-07-01 魅族科技(中国)有限公司 File sharing method in IM (Instant Messaging) and terminal
CN109672845A (en) * 2018-12-29 2019-04-23 维沃移动通信有限公司 A kind of method, apparatus and mobile terminal of video calling

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327178A (en) * 2021-11-18 2022-04-12 荣耀终端有限公司 Interface display method, device and storage medium
WO2023131051A1 (en) * 2022-01-07 2023-07-13 华为技术有限公司 Content sharing method and electronic device
WO2023142763A1 (en) * 2022-01-27 2023-08-03 华为技术有限公司 Inter-application information sharing method and terminal
WO2024017296A1 (en) * 2022-07-22 2024-01-25 华为技术有限公司 Sharing method, electronic device and system
WO2024022257A1 (en) * 2022-07-29 2024-02-01 华为技术有限公司 Content display method, device, and system

Similar Documents

Publication Publication Date Title
WO2021017889A1 (en) Display method of video call appliced to electronic device and related apparatus
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
CN110114747B (en) Notification processing method and electronic equipment
CN110058777B (en) Method for starting shortcut function and electronic equipment
CN113645351B (en) Application interface interaction method, electronic device and computer-readable storage medium
WO2021036770A1 (en) Split-screen processing method and terminal device
CN111602379B (en) Voice communication method, electronic equipment and system
CN111602108B (en) Application icon display method and terminal
CN111913750B (en) Application program management method, device and equipment
CN113452945A (en) Method and device for sharing application interface, electronic equipment and readable storage medium
WO2022037726A1 (en) Split-screen display method and electronic device
WO2022042770A1 (en) Method for controlling communication service state, terminal device and readable storage medium
WO2021218429A1 (en) Method for managing application window, and terminal device and computer-readable storage medium
WO2021042878A1 (en) Photography method and electronic device
CN113141483B (en) Screen sharing method based on video call and mobile device
CN114222020B (en) Position relation identification method and device and readable storage medium
WO2021037034A1 (en) Method for switching state of application, and terminal device
CN112532508B (en) Video communication method and video communication device
CN110286975B (en) Display method of foreground elements and electronic equipment
CN113438366A (en) Information notification interaction method, electronic device and storage medium
CN112637477A (en) Image processing method and electronic equipment
WO2022166435A1 (en) Picture sharing method and electronic device
WO2023124829A1 (en) Collaborative voice input method, electronic device, and computer-readable storage medium
CN115706916A (en) Wi-Fi connection method and device based on position information
CN113973152A (en) Unread message quick reply method and electronic equipment

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