Data sharing method and electronic device

By displaying the user interfaces of multiple applications on electronic devices and providing multiple sharing methods, it solves the problem of complex data sharing operations between applications and achieves convenient and flexible data sharing.

WO2024193642A1PCT designated stage expired Publication Date: 2024-09-26HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082992
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-23
Filing Date
2024-03-21
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In the existing technology, the operation steps of data sharing between applications are complicated, making it difficult to improve the convenience of data sharing between applications on the device.

Method used

By displaying the user interfaces of multiple applications on an electronic device and providing multiple sharing methods, allowing users to choose how to share content through drag-and-drop operations and functional options, multiple possibilities between applications are realized.

Benefits of technology

It simplifies the data sharing process between applications, reduces user operation steps, and improves the convenience and flexibility of data sharing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082992_26092024_PF_FP
    Figure CN2024082992_26092024_PF_FP
Patent Text Reader

Abstract

Provided in the present application are a data sharing method and electronic device. The method comprises: an electronic device displaying a first user interface of a first application in a first area of a display screen, and displaying a second user interface of a second application in a second area of the display screen, wherein first content is displayed in the first user interface; the electronic device receiving and responding to a first user operation for the first content, and displaying a first function option and a second function option in a second area; and the electronic device receiving and responding to a second user operation, which acts on the first function option or the first content, and the electronic device displaying the first user interface of the first application in the first area of the display screen and displaying a third user interface of the second application in the second area of the display screen, wherein the third user interface comprises the first content. In this way, when data is shared between applications, a user can choose to share shared content to other applications in different sharing modes according to his / her own requirements, thereby achieving various possibilities of data sharing between applications.
Need to check novelty before this filing date? Find Prior Art

Description

Data sharing method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 23, 2023, with application number 202310295952.X, and priority to the Chinese patent application entitled “A Data Sharing Method and Electronic Device”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a data sharing method and electronic device. Background Art

[0003] As the use cases of various terminal devices, such as mobile phones and laptops, become increasingly complex, users may need to share files, photos, videos, and other data from one application to another. However, the current steps for sharing data between applications are relatively complex. Further research is needed to improve the convenience of sharing data between applications on devices.

[0004] Summary of the Invention

[0005] The present application provides a data sharing method and electronic device, which realizes multiple possibilities of sharing data between applications.

[0006] In a first aspect, the present application provides a data sharing method, the method comprising: an electronic device displays a first user interface of a first application in a first area of ​​a display screen, and displays a second user interface of a second application in a second area of ​​the display screen, wherein the first content is displayed in the first user interface; the electronic device receives a first user operation for the first content; in response to the first user operation, the electronic device displays a first function option and a second function option on the second area, the first function option being used to share the first content to the second application via a first sharing method, and the second function option being used to share the first content to the second application via a second sharing method, the first sharing method being different from the second sharing method; the electronic device receives a second user operation acting on the first function option or the first content; in response to the second user operation, the electronic device displays the first user interface of the first application on the first area of ​​the display screen and displays a third user interface of the second application on the second area of ​​the display screen, wherein the third user interface includes the first content.

[0007] The second user operation may refer to an operation of moving the first content to the first function option. The second user operation is used to select the first sharing method and share the first content to the second application through the first sharing method.

[0008] The third user interface may be the same as or different from the second user interface.

[0009] Through this method, users can choose to share content to other applications through different sharing methods according to their needs, realizing multiple possibilities of sharing data between applications.

[0010] In conjunction with the first aspect, in one possible implementation, the first area is different from the second area. When the first area is different from the second area, the electronic device displays the first user interface and the second user interface in split screen, and the area where the first user interface is located does not overlap with the area where the second user interface is located.

[0011] In other possible implementations, the first area may be the same as the second area. When the first area is the same as the second area, the electronic device displays the second user interface of the second application in a floating manner above the first user interface. The area where the first user interface is located includes the area where the second user interface is located.

[0012] In conjunction with the first aspect, in one possible implementation, the first sharing method is different from the second sharing method:

[0013] The first sharing method and the second sharing method include any one or more of the following: sharing the size of the first content, sharing the path of the first content, and sharing the format of the first content.

[0014] In combination with the first aspect, in one possible implementation, when the electronic device includes a flexible display, in response to a first user operation, the electronic device displays a first function option and a second function option on a second user interface, specifically including: when the flexible display is in a second physical state, in response to the first user operation, displaying the first function option and the second function option on the second user interface.

[0015] In conjunction with the first aspect, in one possible implementation, the physical state of the flexible display includes a first physical state and a second physical state. In the first physical state, the displayable area of ​​the flexible display includes a first area. In the second physical state, the displayable area of ​​the flexible display includes a first area and a second area. The first user interface and the second user interface are displayed in the first area and the second area, respectively. In this way, by changing the physical state of the flexible display of the electronic device, the "multi-function sharing" function between applications can be automatically enabled, eliminating the need for the user to manually enable the function and reducing user operation.

[0016] Optionally, when the flexible display screen is a foldable screen, in one possible implementation, the first physical state may be a folded state, and the second physical state may be an unfolded state. In other possible implementations, the first physical state may also be an unfolded state, and the second physical state may be a folded state.

[0017] The foldable screen can be a two-fold screen, such as a left-right foldable screen or a top-bottom foldable screen. The foldable screen can also be a multi-fold screen.

[0018] Optionally, when the flexible display screen is a scroll screen, in one possible implementation, the first physical state may be an unfolded state, and the second physical state may be a semi-expanded state or a fully expanded state. In other possible implementations, the first physical state may also be a semi-expanded state or a fully expanded state, and the second physical state may be an unfolded state.

[0019] In combination with the first aspect, in one possible implementation, when the electronic device includes a flexible display, in response to a first user operation, the electronic device displays a first function option and a second function option on a second user interface, specifically including: after performing a folding operation on the flexible display, in response to the first user operation, displaying the first function option and the second function option on the second user interface.

[0020] In conjunction with the first aspect, in one possible implementation, the folding operation is an operation of folding the flexible display in a first direction. Alternatively, the folding operation includes an operation of folding the flexible display in the first direction and an operation of folding the flexible display in a second direction, where the first direction and the second direction are opposite directions. In this way, by changing the shape of the flexible display of the electronic device, the "multi-function sharing" function between applications can be automatically enabled, eliminating the need for the user to manually enable it and reducing user operation.

[0021] In combination with the first aspect, in a possible implementation, the method further includes: in the process of the electronic device receiving the first user operation, the electronic device displays a first icon, and the electronic device displays the first icon, where the first icon is used to indicate that the first content is being moved or shared.

[0022] The first icon may be the display image of the first content itself, a thumbnail of the first content, an icon indicating the type of the first content, or a system default icon for indicating moving or sharing. In other embodiments, optionally, during the movement of the first icon, the display state of the first content may be different from the display state before being selected. For example, the first content may be grayed out, or if the sharing is to "move" or "cut" rather than "copy" the first content, then the first content may not be displayed.

[0023] In combination with the first aspect, in a possible implementation, the first user operation includes long pressing the first content and dragging the first icon; the second user operation includes dragging the first icon onto the first function option.

[0024] In conjunction with the first aspect, in one possible implementation, after dragging the first icon onto the first function option, the method further includes: the electronic device switching the display form of the first function option from the first display form to the second display form; the difference between the first display form and the second display form includes any one or more of the following: a different display size of the first function option, a different display color of the first function option, or a different display position of the first function option. In this way, the user is prompted with the currently selected sharing method by changing the display form of the function option.

[0025] In conjunction with the first aspect, in one possible implementation, the method further includes: the electronic device receiving a third user operation, the third user operation including moving the first icon away from the first function option; and in response to the third user operation, the electronic device restoring the display form of the first function option to the first display form. In this way, the user can stop sharing the first content while sharing the first content, and the change in the display form of the function option prompts the user that the sharing of the first content is being stopped.

[0026] In conjunction with the first aspect, in one possible implementation, the method further includes: the electronic device receiving a fourth user operation, the fourth user operation including moving the first icon to the first user interface; and in response to the fourth user operation, the electronic device ceasing to display the first function option and the second function option. In this way, the user can stop sharing the first content while sharing the first content, and ceasing to display the first function option and the second function option notifies the user that sharing has ended.

[0027] In conjunction with the first aspect, in one possible implementation, the first application and the second application are the same, or the first application and the second application are different. When the first application and the second application are the same, content can be shared between different user interfaces of the same application. When the first application and the second application are the same but different, content can be shared between different user interfaces of different applications.

[0028] In a second aspect, the present application provides an electronic device, which includes one or more display screens, a processor and a memory; the memory is coupled to the processor, one or more display screens, and the memory is used to store computer program code, the computer program code includes computer instructions, and the processor calls the computer instructions to enable the electronic device to execute a data sharing method provided in the above-mentioned first aspect.

[0029] In combination with the second aspect, in a possible implementation, the display screen includes a folding screen or a scroll screen.

[0030] In a third aspect, the present application provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a data sharing method provided in the first aspect above.

[0031] In a fourth aspect, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes a data sharing method provided in the first aspect above.

[0032] For the beneficial effects of the second to fourth aspects, reference may be made to the description of the beneficial effects in the first aspect, and this application will not go into details here. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] FIG1 is a schematic diagram of a display form of a straight screen provided in an embodiment of the present application;

[0034] Figures 2A-2C are schematic diagrams of an inward folding screen display configuration provided by an embodiment of the present application;

[0035] Figures 3A-3C are schematic diagrams of an outward folding screen display configuration provided by an embodiment of the present application;

[0036] Figures 3D-3F are schematic diagrams of a vertically foldable screen display provided in an embodiment of the present application;

[0037] FIG4 is a schematic diagram of a display form of an extended screen provided in an embodiment of the present application;

[0038] FIG5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0039] FIG6 is a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0040] 7A-7L are schematic diagrams showing sharing of first data on an electronic device having a bar screen;

[0041] 8A-8E are schematic diagrams showing how to share pictures in a gallery application to an instant messaging application;

[0042] 8F-8N show another schematic diagram of how to share pictures in the gallery application to the instant messaging application;

[0043] 9A-9F are schematic diagrams showing how to share a file in a document editing application to an instant messaging application;

[0044] 10A-10N are schematic diagrams showing sharing of first data on an electronic device with a foldable screen;

[0045] FIG11 is a flow chart of a data sharing method provided in this application. DETAILED DESCRIPTION

[0046] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0047] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0048] The term "user interface (UI)" in the following embodiments of this application refers to the media interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.

[0049] In some embodiments of the present application, when the display panel adopts materials such as OLED, AMOLED, FLED, etc., the display screen of the electronic device can be bent. For example, the display screen of the electronic device can be folded in half from left to right in the middle, or folded in half from top to bottom in the middle, and the display screen of the electronic device can also be unfolded, that is, the screen can be opened and closed. In this application, the display screen that can be bent is referred to as a foldable display screen (or a folding screen), wherein the foldable display screen can be a single screen or a display screen composed of multiple screens pieced together, which is not limited here. The screen of the electronic device may include but is not limited to: an outer folding screen, a scroll screen, an inner folding screen, a diagonal folding screen, etc., and the screen of the electronic device can be folded at least once.

[0050] First, the forms of display screens of several electronic devices involved in the embodiments of the present application are introduced.

[0051] The electronic device display screens covered by this application may include: straight screens, foldable screens, and expandable screens. Foldable screens can be further categorized as inward-folding screens, outward-folding screens, and vertically foldable screens. In some embodiments, the foldable screen can also be a bifold screen.

[0052] FIG1 is a schematic diagram showing a display form of a straight display screen.

[0053] In some embodiments, the bar display screen may also be referred to as a vertical display screen. As shown in FIG1 , the bar display screen has a fixed shape and is neither retractable nor foldable.

[0054] 2A-2C and 3A-3C show schematic diagrams of the display form of the folding screen.

[0055] Foldable screens can be divided into inward-folding screens and outward-folding screens. The display states of inward-folding screens and outward-folding screens can be divided into folded state and unfolded state. Among them, the folding states of inward-folding screens and outward-folding screens can be divided into intermediate folding state and fully folded state.

[0056] 2A-2C show schematic diagrams of the inward folding screen display form.

[0057] FIG2A is a schematic diagram showing the display state of the inner folding screen when it is in the unfolded state.

[0058] (a) in Figure 2A exemplarily shows a front view of the inner folding screen when it is in the unfolded state. Among them, when the inner folding screen is in the unfolded state, the displayable screens of the folding screen include screen A, screen B and screen C. Screen A and screen B can be a complete display screen or two independent display screens. Among them, in the fully folded state, the display area where screens A and B are located can also be called a large screen, and the display area where screens A and B are located can also be called an inner screen. Exemplarily, when the inner folding screen is in the unfolded state, the angle α between screens A and B is greater than angle one and less than or equal to 180 degrees. Exemplarily, the value of angle one can be between 170 degrees and 180. For example, when the inner folding screen is in the unfolded and folded state, the angle α between screens A and B can be 180 degrees.

[0059] Figure 2A(b) illustrates a rear view of the inner folding screen in its unfolded and folded state. When the inner folding screen is unfolded, the folding screen also includes a C-screen, which is a completely independent display from the A and B screens.

[0060] 2B-2C are schematic diagrams showing the display form when the inner folding screen is in a folded state.

[0061] Among them, the folding state of the folding screen shown in Figure 2B can also be called the intermediate folding state.

[0062] The inner folding screen can be bent in the direction where screen A and screen B face each other to form a folding form with a certain angle. When the inner folding screen is in the middle folding state, the screens that can be displayed by the folding screen include screen A, screen B and screen C. Among them, in the middle folding state, the display area where screen A and screen B are located can also be called the large screen, and the display area where screen A and screen B are located can also be called the inner screen. The angle α between screen A and screen B is greater than or equal to angle 2 and less than angle 1. For example, the value of angle 2 can be between 10 degrees and 170 degrees. For example, when the inner folding screen is in the middle folding state, the angle α between screen A and screen B can be 120 degrees.

[0063] Among them, the folded state of the folding screen shown in Figure 2C can also be called a fully folded state.

[0064] The inner folding screen can continue to bend in the direction where screen A and screen B face each other until the inner folding screen is in a fully folded state.

[0065] As shown in Figure 2C, when the inner folding screen is in a fully folded state, the displayable screen of the inner folding screen only includes screen C. Among them, in the fully folded state, the display area where screen C is located can also be called a small screen, and the display area where screen C is located can also be called an outer screen. Screen A and screen B are hidden and invisible. Among them, in the middle folding state, the display area where screen A and screen B are located can also be called a large screen, and the display area where screen A and screen B are located can also be called an inner screen. The angle α between screen A and screen B is greater than or equal to 0 degrees and less than angle 2. For example, when the inner folding screen is in a fully folded state, the angle α between screen A and screen B can be 0 degrees.

[0066] 3A-3C are schematic diagrams showing the display form of the external folding screen.

[0067] FIG3A is a schematic diagram showing the display state of the outer folding screen when it is in the unfolded state.

[0068] (a) in Figure 3A exemplarily shows a front view of the outer folding screen when it is in the unfolded state. Among them, when the outer folding screen is in the unfolded state, the displayable screens of the folding screen include screen A and screen B. Screen A and screen B can be a complete display screen or two independent display screens. Exemplarily, when the inner folding screen is in the unfolded state, the angle α between screen A and screen B is greater than angle three and less than or equal to 180 degrees. Exemplarily, the value of angle three can be between 170 degrees and 180 degrees. Exemplarily, if the value of angle three is 180 degrees, when the outer folding screen is in the unfolded state, the angle α between screen A and screen B can be 180 degrees.

[0069] Figure 3A(b) shows an exemplary rear view of the outer folding screen in the unfolded state. When the outer folding screen is in the unfolded state, compared with the inner folding screen in the unfolded state, the display screen of the outer folding screen does not include the C screen.

[0070] 3B-3C are schematic diagrams showing the display form when the outer folding screen is in a folded state.

[0071] Among them, the folding state of the folding screen shown in Figure 3B can also be called the intermediate folding state.

[0072] The outer folding screen can be bent in a direction opposite to screen A and screen B to form a folding form with a certain angle. That is, the folding directions of the outer folding screen and the inner folding screen are opposite. When the outer folding screen is in the middle state, the screens that can be displayed by the folding screen include screen A and screen B, and the angle α between screen A and screen B is greater than or equal to angle four and less than or equal to angle three. Exemplarily, the value of angle four can be between 10 degrees and 170. For example, when the outer folding screen is in the middle folding state, the angle α between screen A and screen B can be 120 degrees.

[0073] Among them, the folded state of the folding screen shown in Figure 3C can also be called a fully folded state.

[0074] As shown in Figure 3C, the outer folding screen can continue to bend in a direction opposite to screen A and screen B. When the outer folding screen is in the folded state, the display screen of the folding screen can be screen B (or the display screen can also be screen A). Exemplarily, when the inner folding screen is in the fully folded state, screen A is in the off state (or screen B is in the off state), and the angle α between screens A and B is greater than or equal to 0 degrees and less than angle 4. Exemplarily, the value of angle 4 can be between 0 degrees and 10 degrees. Exemplarily, when the outer folding screen is in the fully folded state, the angle α between screens A and B can be 0 degrees.

[0075] 3D-3F show schematic diagrams of the display form of the upper and lower folding screen.

[0076] Figure 3D shows a schematic diagram of the display form when the upper and lower folding screens are in the unfolded state. Among them, when the upper and lower folding screens are in the unfolded state, the displayable screens of the folding screen include screen A and screen B. Screen A and screen B can be a complete display screen or two independent display screens. Exemplarily, when the inner folding screen is in the unfolded state, the angle α between screen A and screen B is greater than angle three and less than or equal to 180 degrees. Exemplarily, the value of angle three can be between 170 degrees and 180 degrees. Exemplarily, if the value of angle three is 180 degrees, when the outer folding screen is in the unfolded state, the angle α between screen A and screen B can be 180 degrees.

[0077] 3E-3F are schematic diagrams showing the display forms when the upper and lower folding screens are in the folded state.

[0078] Among them, the folded state of the upper and lower folding screens shown in Figure 3E can also be called the middle folding state.

[0079] The upper and lower folding screens can be bent toward each other, toward screens A and B, to form a folded configuration with a predetermined angle. When the upper and lower folding screens are in an intermediate position, the displayable screens on the upper and lower folding screens include screens A and B, and the angle α between screens A and B is greater than or equal to angle 4 and less than or equal to angle 3. For example, angle 4 can be between 10 degrees and 170 degrees. For example, when the upper and lower folding screens are in the intermediate folding position, the angle α between screens A and B can be 120 degrees.

[0080] Among them, the folded state of the upper and lower folding screens shown in Figure 3F can also be called a fully folded state.

[0081] As shown in Figure 3F, the upper and lower folding screens can continue to bend outward in a direction toward where screens A and B face each other. When the folding screens are in the folded state, screens A and B of the upper and lower folding screens are hidden and invisible. Exemplarily, when the upper and lower folding screens are in the fully folded state, screens A and B are both off, and the angle α between screens A and B is greater than or equal to 0 degrees and less than angle 4. Exemplarily, angle 4 can be between 0 and 10 degrees. Exemplarily, when the upper and lower folding screens are in the fully folded state, the angle α between screens A and B can be 0 degrees.

[0082] For example, in some embodiments, the upper and lower folding screens may further include a C-screen. The C-screen is located behind the A-screen or the B-screen. When the upper and lower folding screens are in the unfolded state, the C-screen is in the off state. When the upper and lower folding screens are in the folded state, the C-screen is in the on state.

[0083] FIG4 is a schematic diagram showing the display form of the extended screen.

[0084] In some cases, the extended screen may also be referred to as a scroll screen. The scroll screen of an electronic device can be pulled out or rolled back in a direction perpendicular to the scroll axis, changing the screen length perpendicular to the scroll axis.

[0085] The form of the scroll screen can be divided into an unrolled state, a semi-rolled state, and a fully-rolled state. Among them, (a) in Figure 4 is a schematic diagram of the unrolled state of the scroll screen. When the scroll screen is in the unrolled state, part of the scroll screen is hidden inside the body of the electronic device, and the electronic device can display the interface of the application on the other part of the unfolded screen. At this time, the length of the screen is length one. The part of the screen hidden inside the body of the scroll screen can be extended in a specified direction (for example, the direction of the arrow shown in the figure). When the screen of the scroll screen has not been fully unfolded, the scroll screen is in a semi-rolled state, as shown in (b) in Figure 4. When the scroll screen is in a semi-rolled state, the part of the screen hidden inside the body of the scroll screen decreases, and the part of the screen exposed on the surface of the body increases, until the entire scroll screen is exposed on the surface of the body. When the entire scroll screen is exposed on the surface of the body, the scroll screen is in a fully unfolded state, as shown in (c) in Figure 4, and the length of the screen is length two. Among them, length two is greater than length one. It can be understood that when the length of the screen is greater than length one and less than length two, the scroll screen is in a semi-unfolded state.

[0086] It should be noted that in the embodiment of the present application, the scroll screen can be unfolded along a first direction perpendicular to the scroll axis, from an unfolded state, through a semi-folded state, to a fully unfolded state. Similarly, the scroll screen can also be retracted along a second direction perpendicular to the scroll axis, from a fully unfolded state, through a semi-folded state, to an unfolded state. The first direction and the second direction are opposite.

[0087] Optionally, the scroll screen of the electronic device is not limited to being pulled out horizontally to the right perpendicular to the scroll axis. In some embodiments, the scroll screen of the electronic device can also be pulled out horizontally to the left perpendicular to the scroll axis.

[0088] Optionally, in some embodiments, the scroll of the electronic device may also be located in a horizontal direction, and the electronic device may also pull out the scroll screen perpendicularly to the scroll upward or downward, which is not limited in this embodiment of the present application.

[0089] This application provides a data sharing method. The method includes:

[0090] The electronic device displays a first user interface of a first application and a second user interface of a second application. The first user interface displays first content.

[0091] The electronic device receives a first operation of the user on the first content, where the first operation is used to drag the first content into the second user interface;

[0092] In response to the first operation, the electronic device displays one or more function options on the second user interface, where the one or more function options include a first function option and a second function option;

[0093] The electronic device may receive a second operation of the user on a first function option among one or more function options, where the second operation is used to share the first content to the second application in a first manner.

[0094] In response to the second operation, the electronic device displays a third user interface including the first content.

[0095] The electronic device may also receive a third operation of the user on a second function option among the one or more function options, where the third operation is used to share the first content to the second application in a second manner.

[0096] In response to the third operation, the electronic device displays a fourth user interface including the first content.

[0097] Among them, the second mode is different from the first mode, and the fourth user interface is different from the third user interface.

[0098] The first content may include one or more of the following:

[0099] Through this method, when sharing data between applications, users can choose to share the shared content to other applications through different sharing methods according to their own needs, realizing multiple possibilities of sharing data between applications.

[0100] This method can be applied to a straight screen, as well as to other devices such as a folding screen or an extended screen. The following embodiments of this application will use a straight screen, a folding screen and an extended screen as examples to explain in detail a data sharing method provided by this application.

[0101] FIG5 shows a schematic structural diagram of an electronic device.

[0102] The electronic device may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device.

[0103] The electronic device 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 button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. 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, etc.

[0104] It is understood that the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0105] The processor 110 may include one or more processing units. For example, 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). The different processing units may be independent devices or integrated into one or more processors.

[0106] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0107] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0108] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (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.

[0109] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C busses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device.

[0110] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0111] The PCM interface can 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 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0112] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0113] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the electronic device's camera function. The processor 110 and the display 194 communicate via the DSI interface to implement the electronic device's display function.

[0114] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0115] USB port 130 is an interface that complies with USB standards and may be a Mini USB port, a Micro USB port, a USB Type-C port, or the like. USB port 130 can be used to connect a charger to charge an electronic device, transfer data between the electronic device and peripherals, connect headphones to play audio, and connect other electronic devices, such as augmented reality devices.

[0116] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0117] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the electronic device's wireless charging coil. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.

[0118] 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 charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0119] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.

[0120] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0121] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied in electronic devices. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0122] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed 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 an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0123] The wireless communication module 160 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0124] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).

[0125] The electronic device implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0126] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1. The display screen 194 can be a straight screen, a folding screen, an extended screen, etc., which is not limited in this application.

[0127] The electronic device can realize the shooting function through the ISP, camera 193, video codec, GPU, display 194 and application processor.

[0128] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise and brightness. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0129] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0130] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency, the DSP performs a Fourier transform on the frequency energy.

[0131] Video codecs are used to compress or decompress digital video. Electronic devices may support one or more video codecs. This allows them to play or record videos in a variety of encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0132] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables intelligent cognitive applications in electronic devices, such as image recognition, face recognition, speech recognition, and text comprehension.

[0133] The internal memory 121 may include one or more random access memories (RAMs) and one or more non-volatile memories (NVMs). RAMs may include static random access memories (SRAMs), dynamic random access memories (DRAMs), synchronous dynamic random access memories (SDRAMs), and double data rate synchronous dynamic random access memories (DDR SDRAMs, such as the fifth generation DDR SDRAM, generally referred to as DDR5 SDRAMs). NVMs may include disk storage devices and flash memories. Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; can be divided into single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage cell potential level; can be divided into universal flash storage (UFS), embedded multi-media card (eMMC), etc. according to the storage specification. Random access memory can be directly read and written by processor 110, and can be used to store executable programs (such as machine instructions) of operating systems or other running programs, and can also be used to store user and application data. Non-volatile memory can also store executable programs and user and application data, etc., and can be loaded into random access memory in advance for direct reading and writing by processor 110.

[0134] The external memory interface 120 can be used to connect to an external non-volatile memory device to expand the storage capacity of the electronic device. The external non-volatile memory device communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory device.

[0135] The electronic device can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0136] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0137] The speaker 170A, also called a "speaker," is used to convert audio electrical signals into sound signals. The electronic device can listen to music or make hands-free calls through the speaker 170A.

[0138] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device receives a call or voice message, the voice can be heard by placing the receiver 170B close to the human ear.

[0139] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device can be provided with at least one microphone 170C. In other embodiments, the electronic device can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.

[0140] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0141] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, the electronic device detects the touch intensity based on pressure sensor 180A. The electronic device can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.

[0142] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device through reverse motion to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0143] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.

[0144] The magnetic sensor 180D includes a Hall sensor. The electronic device can use the magnetic sensor 180D to detect the opening and closing of a flip case. In some embodiments, when the electronic device is a flip phone, the electronic device can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.

[0145] The accelerometer 180E can detect the magnitude of an electronic device's acceleration in all directions (generally three axes). When the electronic device is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0146] Distance sensor 180F is used to measure distance. The electronic device can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device can use distance sensor 180F to measure distance to achieve fast focus.

[0147] 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 emits infrared light outward through the light emitting diode. The electronic device uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device can determine that there is no object near the electronic device. The electronic device can use the proximity light sensor 180G to detect when the user holds the electronic device close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0148] The ambient light sensor 180L senses ambient light brightness. The electronic device can adaptively adjust the brightness of the display screen 194 based on the perceived ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking photos. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device is in a pocket to prevent accidental touches.

[0149] Fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.

[0150] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device uses the temperature detected by the temperature sensor 180J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device heats the battery 142 to prevent the electronic device from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.

[0151] The touch sensor 180K is also referred to as a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also referred to as a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device, at a location different from that of the display screen 194.

[0152] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.

[0153] Keys 190 include a power button, a volume button, and the like. Keys 190 may be mechanical keys or touch-sensitive keys. The electronic device may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device.

[0154] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0155] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0156] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device.

[0157] FIG6 is a block diagram of the software structure of the electronic device according to an embodiment of the present invention.

[0158] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0159] The application layer can include a series of application packages.

[0160] As shown in FIG6 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

[0161] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0162] As shown in FIG6 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

[0163] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0164] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0165] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0166] The phone manager is used to provide communication functions for electronic devices, such as call status management (including answering, hanging up, etc.).

[0167] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0168] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0169] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.

[0170] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0171] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0172] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0173] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0174] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0175] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0176] A 2D graphics engine is a drawing engine for 2D drawings.

[0177] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0178] The following describes the workflow of the electronic device software and hardware in conjunction with capturing a photo scene.

[0179] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture a still image or video through the camera 193.

[0180] The following will describe in detail a data sharing method provided by this application using electronic devices with a straight screen, a folding screen, and an expandable screen.

[0181] First, how to share data between two applications on an electronic device with a bar screen is introduced.

[0182] 7A-7L are schematic diagrams showing sharing of first data on an electronic device having a bar screen.

[0183] In some embodiments, only after the electronic device has enabled the "Multi-function Sharing" function can the electronic device share data between applications in the manner shown in Figures 7D-7K. If the electronic device has disabled the "Multi-function Sharing" function, the electronic device cannot share data between applications in the manner shown in Figures 7D-7K.

[0184] 7A-7C show schematic diagrams of enabling the “multi-function sharing” function.

[0185] Exemplarily, as shown in Figure 7A, the electronic device may display an interface 710 of a home screen, in which a page with application icons is displayed, and the page includes multiple application icons (for example, icons for file management applications, icons for email applications, icons for music applications, icons for smart life applications, icons for sports and health applications, icons for settings applications, icons for camera applications, etc.). A page indicator is also displayed below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages. Below the page indicator are multiple tray icons (for example, a dialing application icon, a message application icon, a contact application icon, and a camera application icon), and the tray icon remains displayed when the page is switched. In some embodiments, the above-mentioned page may also include multiple application icons and page indicators, and the above-mentioned picture icon is also optional, which is not limited in the embodiments of the present application.

[0186] As shown in Figure 7A, the electronic device receives a user input operation (e.g., a single click) on an icon for a settings application. In response to the user input operation, the electronic device displays a user interface 720 as shown in Figure 7B. User interface 720 shows multiple settings items, such as an airplane mode setting item (airplane mode is currently off), a Wi-Fi setting item (Wi-Fi is currently off), a Bluetooth setting item (Bluetooth is currently off), a personal hotspot setting item, a mobile network setting item, a Do Not Disturb mode setting item, a display and brightness setting item, a Huawei account setting item, a "Multi-function Sharing" item, and the like.

[0187] As shown in FIG7B , the electronic device receives a user input operation (eg, a single click) for the “multi-function sharing” item. In response to the user input operation, the electronic device displays a user interface 730 as shown in FIG7C .

[0188] As shown in FIG7C , after the electronic device turns on the “multi-function sharing” function, the electronic device may change the display format of the “multi-function sharing” item to prompt that the “multi-function sharing” function of the electronic device has been turned on.

[0189] The "Multi-function Sharing" function of the electronic device is not limited to being enabled in the Settings application. Users can also quickly enable the "Multi-function Sharing" function of the electronic device in other areas such as the pull-down notification bar. This application does not limit this. In other embodiments, the system can also enable this function by default without user operation.

[0190] An electronic device can simultaneously display the user interfaces of two different applications and share the content displayed in one application's user interface to the other application by dragging and dropping. This allows for quick data sharing between the two applications. Furthermore, users can choose to share content from one application to another by dragging and dropping using different methods.

[0191] 7D-7L are schematic diagrams showing an electronic device receiving user operations to share data between applications.

[0192] As shown in FIG7D , the electronic device displays a split screen with a user interface 740 of a first application and a user interface 750 of a second application. The first application and the second application are different. Specifically, the electronic device displays the user interface 740 of the first application above the dividing line 701, and displays the user interface 750 of the second application below the dividing line 701.

[0193] Optionally, the first application may be the same as the second application, or the first application may be different from the second application. The user interface 740 is different from the user interface 750 .

[0194] When the first application may be different from the second application, it is about sharing data between different user interfaces of different applications.

[0195] When the first application and the second application may be the same, it is about sharing data between different user interfaces within the same application.

[0196] Among them, content 7401 and content 7402 are displayed in the user interface 740. More or less content can also be displayed in the user interface 740, and this application does not limit this.

[0197] The electronic device may receive a user operation to share content 7401 and / or content 7402 in the user interface 740 to the second application.

[0198] Specifically, as shown in Figure 7E, the electronic device can receive the user's long press operation of content 7402. When the long press duration of content 7402 exceeds a certain duration, the electronic device can select content 7402 and move content 7402 into the user interface 750 based on the user's operation of dragging content 7402.

[0199] Optionally, in response to the user's long press and drag operation of content 7402, the electronic device can display icon 7403, so that icon 7403 moves as the user drags, to prompt the user that content 7402 is being moved or indicate that content 7402 is being shared.

[0200] Optionally, icon 7403 may be the display image of content 7402 itself, or a thumbnail of content 7402, or an icon indicating the type of content 7402, or a system default icon for indicating moving or sharing.

[0201] In other embodiments, the display state of content 7402 may optionally be different from the display state before icon 7403 is selected during the movement of icon 7403. For example, content 7402 may be grayed out, or if the current sharing is "moving" or "cutting" the content 7402 instead of "copying", the content 7402 may not be displayed.

[0202] Optionally, as shown in FIG7F , when icon 7403 moves downward beyond dividing line 701, the electronic device may display a “Multi-function Sharing” option. The “Multi-function Sharing” option may include one or more sharing function options. For example, as shown in FIG7F , the “Multi-function Sharing” option may include a function one option and a function two option. Function one and function two correspond to different sharing methods, for example, function one corresponds to sharing method one, function two corresponds to sharing method two, and sharing method one is different from sharing method two. The user can choose to share content 7402 to the second application through any of the sharing methods.

[0203] In other embodiments, the timing of the appearance of "multi-function sharing" may be after long pressing the content 7402, or after long pressing and dragging the content 7402. It does not have to wait until it exceeds the dividing line 701. Alternatively, it may be other appearance times that can effectively prompt the user.

[0204] As shown in Figure 7G, icon 7403 continues to move toward the area where the "Multi-function Sharing" option is located as the user drags it. Optionally, after icon 7403 moves to the "Multi-function Sharing" option, the electronic device can change the display format of the "Multi-function Sharing" option. For example, as shown in Figure 7G, the electronic device can expand and display the function one option and the function two option respectively to prompt the user which methods of sharing data are currently available. In addition to being limited to expanded display, other methods can also be used to prompt the user which methods of sharing data are currently available, such as darkening the color display, etc. This application does not limit this.

[0205] Optionally, the electronic device may also only change the display form of the function options overlapping with the icon 7403. For example, the electronic device may only change the display form of the function 2 option, and not change the display form of the function 1 option.

[0206] In other embodiments, the display styles of function one and function two can be other shapes, such as a circle, a capsule, etc., which are not limited in this application. In other embodiments, the display positions of function one and function two can also be other positions, such as distributed on the left and right sides of the display screen, or in the middle of the interface of the second application, or in the dividing bar position of the two application interfaces, or in the application interface of the first application, etc., which are not limited in this application.

[0207] Icon 7403 continues to move toward the area where the function one option is located or the area where the function two option is located as the user drags the icon.

[0208] As shown in Figure 7H, icon 7403 moves toward the area where function 2 is located as the user drags the icon 7403. When the overlapping area between the display area where icon 7403 is located and the area where function 2 is located exceeds a certain value, the user releases their finger and chooses to share content 7402 to the second application via sharing method 2.

[0209] As shown in FIG7I , in response to sharing content 7402 to the second application via sharing method 2, the electronic device may display a user interface 760 in the second application below the dividing line 701. User interface 760 is different from user interface 750. User interface 760 includes content 7402.

[0210] In this way, the user can choose to share content 7402 to the second application through sharing method two.

[0211] In some embodiments, the user may also choose to share the content 7402 to the second application through sharing method one.

[0212] Optionally, after the electronic device shares the content 7402 to the second application through the second sharing method, the electronic device may stop displaying the “multi-function sharing” option.

[0213] In some embodiments, as shown in FIG7J , after icon 7403 is moved to the "Multi-function Share" option, the user moves icon 7403 out of the area where the "Multi-function Share" option is located, and the area where icon 7403 is located does not intersect with the area where the "Multi-function Share" option is located. At this time, electronic device 100 may display the "Multi-function Share" option as shown in FIG7K . In other words, function one and function two options in the "Multi-function Share" option are restored to their original display states. For example, function one and function two options stop being expanded and return to their original display sizes.

[0214] In some embodiments, after Figure 7K , icon 7403 moves toward the area where user interface 740 is located as the user drags the icon 7403. As shown in Figure 7L , when icon 7403 is dragged beyond dividing line 701 and the area where icon 7403 is located overlaps with the area where user interface 740 is located, the electronic device may stop displaying the "Multi-function Sharing" option, thereby prompting the user that content 7402 has been stopped from being shared with the second application.

[0215] 7D to 7H above show that the electronic device shares content 7402 to the second application through sharing method 2. In some embodiments, the electronic device can also share multiple contents to the second application at the same time, saving user operations.

[0216] In some embodiments, when the electronic device displays the user interface in the first application and the user interface in the third application in split screen, one or more contents are displayed in the user interface in the first application. The electronic device can receive a user operation to share one or more contents displayed in the user interface of the first application to the third application. After the electronic device receives a user operation to drag one or more contents displayed in the user interface of the first application to the user interface in the third application, the electronic device can display a "multi-function sharing" option so that the user can choose which sharing method to use to share the content to be shared to the third application. If the third application is different from the second application, the "multi-function sharing" option displayed in the third application may also be different from the "multi-function sharing" option displayed in the second application. In this way, the electronic device can provide different sharing methods for different applications, and the sharing methods provided by different applications can match the characteristics of the application.

[0217] In some embodiments, when the electronic device shares the same content to different user interfaces of the same application, the sharing methods corresponding to the different user interfaces may be different, and the sharing methods are related to the functional attributes of the user interfaces.

[0218] Optionally, the sharing methods provided by different applications can be preset or user-defined. When the sharing methods provided by an application support user-defined settings, the user can set the sharing methods that they frequently use across different applications. Different users can have different customized settings, achieving personalized settings. For example, if a second application supports six sharing methods, the user can select several of these six sharing methods as the user's frequently used sharing methods and set them as the default sharing methods for the second application.

[0219] Alternatively, in some embodiments, after icon 7403 is moved to user interface 750, icon 7403 is not moved to the "Multi-function Share" option, i.e., the area where icon 7403 is located does not intersect with the area where the "Multi-function Share" option is located. If the user releases their finger, electronic device 100 may display a temporary staging area on the electronic device, and icon 7403 may be displayed within the temporary staging area. The user may then drag icon 7403 from the temporary staging area and move it into user interface 750. In this case, electronic device 100 may not display the "Multi-function Share" option within user interface 750, and electronic device 100 may share content 7402 to the second application in a predetermined manner. In other embodiments, after icon 7403 is moved to user interface 750, icon 7403 is not moved to the "Multi-function Share" option, i.e., the area where icon 7403 is located does not intersect with the area where the "Multi-function Share" option is located. If the user releases their finger, electronic device 100 may directly share content 7402 to the second application in a predetermined manner.

[0220] Next, we will explain in detail how to share data on electronic devices with a straight screen in combination with various scenarios.

[0221] 1. Picture Sharing Scenarios in Gallery Apps

[0222] For example, the first application may be a gallery application, the content 7402 may be a picture in the gallery application, and the second application may be an instant messaging application.

[0223] 8A-8E are schematic diagrams showing how to share pictures in a gallery application to an instant messaging application.

[0224] As shown in FIG8A , the electronic device displays a gallery application and an instant messaging application in split screen mode, wherein the electronic device may display a user interface 810 of the gallery application above the dividing line 701 and a user interface 820 of the instant messaging application below the dividing line 701 .

[0225] Multiple pictures are shown in the user interface 810 , including picture 8101 .

[0226] The user interface 820 shows a contact dialog box, for example, the contact is "Lily", and the user interface 820 also includes multiple chat records.

[0227] The user can share the picture displayed in the user interface 810 with the contact "Lily".

[0228] Specifically, the electronic device may receive a user operation to select picture 8101 and drag picture 8101. In response to the operation of dragging picture 8101, the electronic device may display icon 8103 shown in FIG8B, and icon 8103 is used to prompt the user that picture 8101 is currently being shared.

[0229] The icon 8103 may be moved into the user interface 820 according to a drag operation by the user.

[0230] After icon 8103 moves downward beyond dividing line 701, the electronic device may display a "multi-function sharing" option on user interface 820. As shown in Figure 8C, the "multi-function sharing" option displayed on user interface 820 includes function option 8201 and function option 8202. Among them, function option 8201 is used to share picture 8101 to contact "Lily" through sharing method one, and function option 8202 is used to share picture 8101 to contact "Lily" through sharing method two. After the electronic device shares picture 8101 to contact "Lily" through sharing method one, contact "Lily" can only view picture 8101 once. After the electronic device shares picture 8101 to contact "Lily" through sharing method two, contact "Lily" can view picture 8101 within three days.

[0231] Icon 8103 can continue to move toward the area where the "Multi-function Share" option is located as the user drags the icon 8103. After icon 8103 moves to the "Multi-function Share" option, the electronic device can change the display format of the "Multi-function Share" option. For example, as shown in Figure 8D, the electronic device can expand and display function options 8201 and 8202 separately.

[0232] Icon 8103 may continue to move toward the area where function option 8201 is located or the area where function option 8202 is located as the user drags the icon 8103 .

[0233] As shown in Figure 8D, icon 8103 moves toward the area where function option 8202 is located as the user drags it. When the overlapping area of ​​the display area where icon 8103 is located and the area where function option 8202 is located exceeds a certain value, the user releases their finger and chooses to share image 8101 to contact "Lily" through sharing method 2.

[0234] As shown in FIG8E , in response to sharing picture 8101 to contact “Lily” via sharing method 2, the electronic device may display a user interface 830 of the second application below dividing line 701. User interface 830 includes picture 8101, and user interface 830 is different from user interface 820.

[0235] It is not limited to sharing one picture to the contact "Lily" at a time. The electronic device can also receive user operations to share multiple pictures to the contact "Lily" at one time. This application will not go into details here.

[0236] Through this method, when sharing pictures in a gallery application to other applications, the electronic device can select a viewing time limit for the shared pictures, and then share the pictures to other applications with a specific time limit.

[0237] 8F-8N show another schematic diagram of how to share pictures in a gallery application to an instant messaging application.

[0238] As shown in FIG8F , the electronic device displays a gallery application and an instant messaging application in split screen mode. The electronic device may display a user interface 810 of the gallery application above the dividing line 701 and a user interface 830 of the instant messaging application below the dividing line 701 .

[0239] Multiple pictures are shown in the user interface 810 , including picture 8101 .

[0240] The user interface 830 may be a main interface of an instant messaging application, and a plurality of contacts are shown in the user interface 830 , for example, the contact “Lily” and the contact “Lucy”.

[0241] The user can share the picture displayed in the user interface 810 with an instant messaging application.

[0242] Specifically, the electronic device may receive a user operation to select picture 8101 and drag picture 8101. In response to the operation of dragging picture 8101, the electronic device may display icon 8103 shown in FIG8G, which is used to prompt the user that picture 8101 is currently being shared.

[0243] The icon 8103 may be moved into the user interface 820 according to a drag operation by the user.

[0244] When icon 8103 moves downward beyond dividing line 701, the electronic device may display a "Multi-function Sharing" option on user interface 820. As shown in Figure 8H, the "Multi-function Sharing" option displayed on user interface 820 includes function option 8401 and function option 8402. Function option 8401 is used to share image 8101 to contacts in the instant messaging application using sharing method three, and function option 8402 is used to share image 8101 to the dynamic publishing area in the instant messaging application using sharing method four.

[0245] Icon 8103 can continue to move toward the area where the "Multi-function Share" option is located as the user drags the icon 8103. After icon 8103 moves to the "Multi-function Share" option, the electronic device can change the display format of the "Multi-function Share" option. For example, as shown in Figure 8I, the electronic device can expand and display function options 8401 and 8402 separately.

[0246] Icon 8103 may continue to move toward the area where function option 8401 is located or the area where function option 8402 is located as the user drags the icon 8103 .

[0247] As shown in Figure 8I, icon 8103 moves toward the area where function option 8401 is located as the user drags the icon. When the overlapping area between the display area where icon 8103 is located and the area where function option 8401 is located exceeds a certain value, the user releases their finger and chooses to share image 8101 to a contact in the instant messaging application using sharing method three.

[0248] As shown in FIG8J , in response to sharing image 8101 to a contact in an instant messaging application via sharing method three, the electronic device may display a prompt bar 850 as shown in FIG8J to allow the user to determine which contact or contacts to share with. Prompt bar 850 is used to prompt the user to select a contact. For example, prompt bar 850 displays the contact "Lucy" and the contact "Lily."

[0249] As shown in Figure 8K , after the electronic device receives a user selection operation for the contact "Lily" option in prompt bar 850 and an input operation (e.g., a single click) for determining the option in prompt bar 850, in response to the user input operation, the electronic device may display user interface 860 shown in Figure 8L . User interface 860 includes image 8101, and user interface 830 is different from user interface 840.

[0250] Optionally, after the electronic device receives the user's input operation for confirming the option in prompt bar 850, before the electronic device displays user interface 860 shown in Figure 8L, the electronic device may display prompt bar 8601 and prompt bar 8602 shown in Figure 8M. Prompt bar 8601 and prompt bar 8602 are used to prompt the user to select a sharing method of sharing picture 8101 with contact "Lily".

[0251] As shown in FIG8M , the electronic device may receive a user selection operation on prompt bar 8601. In response to the user selecting prompt bar 8601, the electronic device may send picture 8101 to contact "Lily." For example, the electronic device may display user interface 860 shown in FIG8L . However, after receiving picture 8101, the electronic device used by contact "Lily" can only view picture 8101 once.

[0252] In other embodiments, the electronic device may also receive a user selection operation on prompt bar 8602. In response to the user selecting prompt bar 8602, the electronic device may send picture 8101 to contact "Lily". For example, the electronic device may display user interface 860 shown in Figure 8L. After receiving picture 8101, the electronic device used by contact "Lily" can view picture 8101 within three days.

[0253] In other embodiments, when the electronic device 100 chooses to share the picture 8101 with a friend, the electronic device 100 can choose the size of the shared picture to save the traffic of the electronic device 100 in sending the picture. For example, sending the original picture, sending a thumbnail, etc. As shown in Figure 8N, when the user drags the picture 8101 beyond the dividing line 701, the electronic device 100 can display the prompt bar 8604 and the prompt bar 8605 shown in Figure 8N. The prompt bar 8604 is used to prompt the user to share the picture 8101 with friends in the form of the original picture. The prompt bar 8605 is used to prompt the user to share the picture 8101 with friends in the form of thumbnails. The user can choose any method to share the picture 8101 with friends. Specifically, it is the same as the sharing method introduced in the above embodiment, and this application will not go into details here.

[0254] Through this method, when sharing pictures in a gallery application to other applications, the electronic device can select a sharing path in other applications and then share the pictures to the selected sharing path.

[0255] 2. File Sharing Scenarios in Document Editing Applications

[0256] 9A-9F are schematic diagrams showing how to share a file in a document editing application to an instant messaging application.

[0257] As shown in Figure 9A, the electronic device displays a document editing application and an instant messaging application in split screen mode. The electronic device may display a user interface 910 of the document editing application above the dividing line 701 and a user interface 820 of the instant messaging application below the dividing line 701.

[0258] User interface 910 displays multiple files, including file 9101. File 9101 is named "Project Scheduling Plan," was edited on July 15, 2023, and is 280 KB in size. Another file is named "Venue Personnel List," was edited on July 15, 2023, and is 126.6 KB in size.

[0259] The user can share the file displayed in the user interface 910 with the contact “Lily”.

[0260] Specifically, the electronic device may receive a user operation to select a file 9101 and drag the file 9101. In response to the operation of dragging the file 9101, the electronic device may display an icon 9102 as shown in FIG9B , which is used to prompt the user that the file 9101 is currently being shared.

[0261] Icon 9102 can be moved into the user interface 820 according to the user's drag operation.

[0262] After icon 9102 moves downward beyond dividing line 701, the electronic device may display a "multi-function sharing" option on user interface 820. As shown in FIG9C , the "multi-function sharing" option displayed on user interface 820 includes function option 9103, function option 9104, and function option 9105. Among them, function option 9103 is used to share file 9101 to contact "Lily" through sharing method one, function option 9104 is used to share file 9101 to contact "Lily" through sharing method two, and function option 9105 is used to share file 9101 to contact "Lily" through sharing method three. After the electronic device shares file 9101 to contact "Lily" through sharing method one, the electronic device used by contact "Lily" receives file 9101 in pdf format. After the electronic device shares file 9101 to contact "Lily" through sharing method two, the electronic device used by contact "Lily" receives file 9101 in txt format. After the electronic device shares the file 9101 to the contact "Lily" through sharing method 3, the electronic device used by the contact "Lily" receives the file 9101 in the rar format. In other embodiments, the electronic device can also share the file 9101 to the contact "Lily" through other methods, which are not limited in this application.

[0263] Icon 9102 can continue to move toward the area where the "Multi-function Share" option is located as the user drags the icon 9102. After icon 9102 moves to the "Multi-function Share" option, the electronic device can change the display format of the "Multi-function Share" option. For example, as shown in Figure 9D, the electronic device can expand and display function options 9103, 9104, and 9105, respectively.

[0264] Icon 9102 may continue to move toward the area where function option 9103 is located or the area where function option 9104 or function option 9105 is located as the user drags the icon 9102 .

[0265] As shown in Figure 9E, icon 9102 moves toward the area where function option 9103 is located as the user drags it. When the overlapping area of ​​the display area where icon 9102 is located and the area where function option 9103 is located exceeds a certain value, the user releases their finger and chooses to share file 9101 to the contact "Lily" via sharing method 1.

[0266] As shown in FIG9F , in response to sharing file 9101 to contact “Lily” via sharing method 1, the electronic device may display user interface 920 in the instant messaging application below dividing line 701. User interface 920 includes file 9101 and is different from user interface 820.

[0267] It is not limited to sharing one file to the contact "Lily" at a time. The electronic device can also receive user operations to share multiple files to the contact "Lily" at one time. This application will not go into details here.

[0268] Through this method, when sharing a file in a document editing application to other applications, the electronic device can select the format of the shared file and then share the file in the selected format to the other applications.

[0269] Next, let’s talk about how to share data between two applications on an electronic device with a foldable screen.

[0270] 10A-10N are schematic diagrams showing sharing of first data on an electronic device with a foldable screen.

[0271] In some embodiments, only after the electronic device has enabled the "Multi-function Sharing" function can the electronic device share data between applications in the manner shown in Figures 10A-10N. If the electronic device has disabled the "Multi-function Sharing" function, the electronic device cannot share data between applications in the manner shown in Figures 10A-10N.

[0272] Electronic devices with foldable screens can enable the "multi-function sharing" function in any of the following ways, but not limited to.

[0273] Method 1: The electronic device can receive a user operation to enable the "Multi-function Sharing" function in the settings application. Specifically, the implementation of how to enable the "Multi-function Sharing" function of an electronic device with a candy bar screen is similar to that shown in Figures 7A-7C. Please refer to the description in Figures 7A-7C, and this application will not repeat it here.

[0274] Method 2: The electronic device can automatically turn on / off the "multi-function sharing" function by identifying the display status of the folding screen of the electronic device.

[0275] In one possible implementation, when the folding screen of the electronic device is in a folded state, the electronic device turns on the "multi-function sharing" function, and when the electronic device is in an unfolded state, the electronic device turns off the "multi-function sharing" function.

[0276] In other possible implementations, when the folding screen of the electronic device is in the unfolded state, the electronic device turns on the "multi-function sharing" function, and when the electronic device is in the folded state, the electronic device turns off the "multi-function sharing" function.

[0277] For example, when the electronic device is in the folded state, the "Multi-function Sharing" function is disabled, and the electronic device displays the first user interface. When the electronic device switches from the folded state to the unfolded state, the electronic device automatically displays the first user interface and the second user interface in a split-screen display. At the same time, the electronic device can enable the "Multi-function Sharing" function. The first user interface and the second user interface can be user interfaces within the same application.

[0278] In one possible implementation, the first user interface and the second user interface may be user interfaces in two different applications. The second user interface may be a user interface associated with the first user interface. When the electronic device is detected to switch from the folded state to the unfolded state, the electronic device activates the "multi-function sharing" function, and the electronic device automatically displays the second user interface.

[0279] In other possible implementations, when the electronic device is in a folded state, multiple user interfaces are running in the background of the electronic device, and the multiple user interfaces include a second user interface. The electronic device only displays the first user interface in the folded state. When the electronic device is detected to switch from a folded state to an unfolded state, the electronic device turns on the "multi-function sharing" function, and the electronic device can automatically select a user interface from multiple user interfaces for split-screen display. For example, the electronic device selects the second user interface for split-screen display. The second user interface can be the user interface that the user used most recently among the multiple user interfaces, the second user interface can also be the user interface that the user has used the longest among the multiple user interfaces, and the second user interface can also be a user interface light that supports the "multi-function sharing" function among the multiple user interfaces.

[0280] For another example, when the electronic device is in the folded state, the "multi-function sharing" function is turned off, and the electronic device displays two user interfaces in the upper and lower split screens, and the user can use the existing single-function sharing function. When the electronic device switches from the folded state to the unfolded state, the electronic device can automatically display the two user interfaces in the left and right split screens. At the same time, the electronic device can turn on the "multi-function sharing" function. The user can use the "multi-function sharing" function between the two user interfaces. Among them, the two user interfaces can be user interfaces in the same application or user interfaces in two different applications.

[0281] As can be seen from the embodiments shown in Figures 2A-2C, when the foldable screen is an outward-folding screen, when the angle α between screen A and screen B is greater than or equal to angle 1 and less than or equal to 180 degrees, the display state of the foldable screen is unfolded. When the angle α between screen A and screen B is greater than or equal to 0 degrees and less than angle 1, the display state of the foldable screen is folded.

[0282] As can be seen from the embodiments shown in Figures 3A-3C, when the foldable screen is an inward-folding screen, when the angle α between screen A and screen B is greater than or equal to angle 3 and less than or equal to 180 degrees, the display state of the foldable screen is unfolded. When the angle α between screen A and screen B is greater than or equal to 0 degrees and less than angle 3, the display state of the foldable screen is folded.

[0283] As can be seen from the embodiments shown in Figures 3D-3F, when the foldable screen is vertically foldable, when the angle α between screen A and screen B is greater than or equal to angle 3 and less than or equal to 180 degrees, the display state of the foldable screen is unfolded. When the angle α between screen A and screen B is greater than or equal to 0 degrees and less than angle 3, the display state of the foldable screen is folded.

[0284] The electronic device can automatically enable or disable the "Multi-function Sharing" function based on the display state of the foldable screen, eliminating the need for the user to manually enable or disable the "Multi-function Sharing" function in the settings app. This can save user operation and also allow the "Multi-function Sharing" function to be enabled or disabled quickly.

[0285] Method 3: The electronic device is in the unfolded state. Based on a user operation, the electronic device folds to a certain angle in a first direction. Subsequently, upon receiving a user operation, the electronic device folds to the same angle in a second direction, switching back to the unfolded state. The first and second directions are different. At this point, the electronic device can enable the "Multi-function Sharing" feature.

[0286] For example, when the electronic device is in the unfolded state, the electronic device 100 displays two user interfaces on the left and right split screens. The electronic device folds a certain angle in a first direction based on a user operation. Afterwards, upon receiving a user operation, the electronic device folds the certain angle in a second direction again to switch to the unfolded state, where the first direction and the second direction are different. At this time, the electronic device can enable the "multi-function sharing" function. The user can use the "multi-function sharing" function between the two user interfaces. The two user interfaces can be user interfaces in the same application or in two different applications.

[0287] Optionally, the certain angle may be less than the folding angle when the electronic device switches from the unfolded state to the folded state. The certain angle may also be greater than or equal to the folding angle when the electronic device switches from the unfolded state to the folded state. This application does not limit this.

[0288] Not limited to method one and method three, the electronic device can also turn on / off the "multi-function sharing" function of the electronic device based on other methods, and this application does not limit this.

[0289] This application can also be applied to scroll screens. The unfolded state of a scroll screen is equivalent to the unfolded state of a folding screen, and the unfolded and semi-expanded states of a scroll screen are equivalent to the folded state of a folding screen. The above-mentioned methods 1 and 3 for enabling the "multi-function sharing" function on a folding screen can also be applied to scroll screens, and this application will not repeat them here.

[0290] The electronic device can display two user interfaces on screens A and B simultaneously, and share the content of the user interface displayed on screen A to another user interface displayed on screen B by dragging and dropping. In this way, data can be shared quickly between applications. In addition, the user can choose to share the content of one user interface to another user interface by dragging and dropping in different ways. The two user interfaces can be user interfaces in the same application or in two different applications.

[0291] The embodiment of the present application is described by taking an example in which the electronic device turns off the "multi-function sharing" function when the folding screen of the electronic device is in a folded state, and turns on the "multi-function sharing" function when the folding screen of the electronic device is in an unfolded state.

[0292] Figures 10A-10N show schematic diagrams of an electronic device with an inward folding screen receiving user operations to share data between applications.

[0293] As shown in FIG10A , the electronic device displays a user interface 1000 of the first application and a user interface 1010 of the second application in split screens, wherein the user interface 1000 is displayed on screen A and the user interface 1010 is displayed on screen B.

[0294] Optionally, the first application may be the same as the second application, or the first application may be different from the second application. The user interface 1000 is different from the user interface 1010 .

[0295] When the first application may be different from the second application, it is about sharing data between different user interfaces of different applications.

[0296] When the first application and the second application may be the same, it is about sharing data between different user interfaces within the same application.

[0297] Among them, content 1002 and content 1001 are displayed in user interface 1010. More or less content may also be displayed in user interface 1000, and this application does not limit this.

[0298] The electronic device may receive a user operation to share the content 1001 and / or the content 1002 in the user interface 1000 to the second application.

[0299] Specifically, as shown in Figure 10A, the electronic device can receive the user's long press operation of content 1002. When the long press duration of content 1002 exceeds a certain duration, the electronic device can select content 1002 and move content 1002 to the user interface 1010 based on the user's operation of dragging content 1002.

[0300] As shown in FIG10B , optionally, in response to the user's long press and drag operation of content 1002 , the electronic device may display icon 1003 so that icon 1003 moves as the user drags, to prompt the user that content 1002 is being moved or to indicate that content 1002 is being shared.

[0301] Optionally, icon 1003 may be the display image of content 1002 itself, or a thumbnail of content 1002, or an icon indicating the type of content 1002, or a system default icon for indicating moving or sharing.

[0302] In other embodiments, the display state of the content 1002 may optionally be different from the display state before the icon 1003 is selected during the movement of the icon 1003. For example, the content 1002 may be grayed out, or if the current sharing is "moving" or "cutting" the content 1002 instead of "copying", the content 1002 may not be displayed.

[0303] As shown in Figure 10C, optionally, when the icon 1003 moves to the right beyond the dividing line 1004, the electronic device may display a "multi-function sharing" option. Among them, the "multi-function sharing" option may include one or more sharing function options. For example, as shown in Figure 10C, the "multi-function sharing" option may include a function one option, a function two option, and a function three option. Function one option, function two option, and function three option correspond to different sharing methods, for example, function one corresponds to sharing method one, function two corresponds to sharing method two, function three corresponds to sharing method three, and sharing method one, sharing method two, and sharing method three are different. The user can choose to share content 1002 to the second application through any of the sharing methods.

[0304] In other embodiments, the timing of the appearance of "multi-function sharing" may be after long pressing the content 1002, or after long pressing and dragging the content 1002. It does not have to wait until it exceeds the dividing line 1004 to appear. Alternatively, it may be other appearance times that can effectively prompt the user.

[0305] As shown in Figure 10D, icon 1003 continues to move toward the area where the "Multi-function Sharing" option is located as the user drags it. Optionally, after icon 1003 moves to the "Multi-function Sharing" option, the electronic device can change the display format of the "Multi-function Sharing" option. For example, as shown in Figure 10D, the electronic device can expand and display the function one option, the function two option, and the function three option respectively to prompt the user which methods of sharing data are currently available. In addition to being limited to expanded display, other methods can also be used to prompt the user which methods of sharing data are currently available, such as darkening the color display, etc., which is not limited in this application.

[0306] Optionally, the electronic device may also only change the display form of the function options overlapping with the icon 1003. For example, the electronic device may only change the display form of the function 2 option, and does not change the display form of the function 1 option.

[0307] In other embodiments, the display styles of function one and function two can be other shapes, such as a circle, a capsule, etc., which are not limited in this application. In other embodiments, the display positions of function one and function two can also be other positions, such as distributed on the left and right sides of the display screen, or in the middle of the interface of the second application, or in the dividing bar position of the two application interfaces, or in the application interface of the first application, etc., which are not limited in this application.

[0308] Icon 1003 continues to move toward the area where the function one option is located, the area where the function two option is located, or the area where the function three option is located as the user drags the icon 1003 .

[0309] As shown in Figure 10E, icon 1003 moves toward the area where the second function option is located as the user drags the icon. When the overlapping area of ​​the display area where icon 1003 is located and the area where the second function option is located exceeds a certain value, the user releases their finger, thus selecting to share content 1002 to the second application via sharing method 2.

[0310] As shown in FIG10F , in response to sharing content 1002 to the second application via sharing method 2, the electronic device may display a user interface 1020 of the second application on the right side of dividing line 1004. User interface 1020 is different from user interface 1010 and includes content 1002.

[0311] In this way, the user can choose to share the content 1002 to the second application through sharing method two.

[0312] In some embodiments, the user may also choose to share the content 1002 to the second application through sharing method one or sharing method three.

[0313] Optionally, after the electronic device shares the content 1002 to the second application through the second sharing method, the electronic device may stop displaying the “multi-function sharing” option.

[0314] In some embodiments, after FIG10D , after the area where the icon 1003 is located partially overlaps with the area where the “Multi-function Share” option is located, as shown in FIG10G and FIG10H , the user moves the icon 1003 out of the area where the “Multi-function Share” option is located, and the area where the icon 1003 is located does not intersect with the area where the “Multi-function Share” option is located. At this time, the electronic device 100 may display the “Multi-function Share” option as shown in FIG10H . In other words, the function one option, the function two option, and the function three option in the “Multi-function Share” option are restored to their original display state. For example, the function one option, the function two option, and the function three option stop being expanded and restored to their original display size.

[0315] In some embodiments, as shown in Figures 10H and 10I , icon 1003 continues to move toward the area where user interface 1000 is located as the user drags the icon 1003. When icon 1003 exceeds dividing line 1004 as the user drags the icon 1003, and the area where icon 1003 is located overlaps with the area where user interface 1000 is located, the electronic device may stop displaying the "Multi-function Sharing" option, thereby prompting the user that content 1002 has stopped being shared with the second application.

[0316] In some embodiments, the electronic device can also save user operations by sharing multiple contents to the second application at the same time.

[0317] In some embodiments, when the electronic device shares the same content to different user interfaces in different applications, the sharing methods corresponding to the different user interfaces may be different, and the sharing methods are related to the functional attributes of the applications.

[0318] In some embodiments, when the electronic device shares the same content to different user interfaces of the same application, the sharing methods corresponding to the different user interfaces may be different, and the sharing methods are related to the functional attributes of the user interfaces.

[0319] Optionally, the sharing methods provided by different applications can be preset or user-defined. When the sharing methods provided by an application support user-defined settings, the user can set the sharing methods that they frequently use across different applications. Different users can have different customized settings, achieving personalized settings. For example, if a second application supports six sharing methods, the user can select several of these six sharing methods as the user's frequently used sharing methods and set them as the default sharing methods for the second application.

[0320] Optionally, in some embodiments, when icon 1003 is moved to user interface 1010, icon 1003 is not moved to the "Multi-function Share" option, that is, the area where icon 1003 is located does not intersect with the area where the "Multi-function Share" option is located. If the user releases their finger, electronic device 100 may display a temporary transfer area on the electronic device, and icon 1003 may be displayed within the temporary transfer area. Thereafter, the user may drag icon 1003 from the temporary transfer area to user interface 1010. In this case, electronic device 100 may not display the "Multi-function Share" option within user interface 1010, and electronic device 100 may share content 1002 to the second application in a preset manner. In other embodiments, when icon 1003 is moved to user interface 1010, icon 1003 is not moved to the "Multi-function Share" option, that is, the area where icon 1003 is located does not intersect with the area where the "Multi-function Share" option is located. If the user releases their finger, electronic device 100 may directly share content 1002 to the second application in a preset manner.

[0321] Next, we will take how to share pictures from the Gallery app to the Meitu app as an example to explain.

[0322] As shown in FIG10J , the electronic device displays a Gallery application and a Meitu application in split screen. The electronic device may display a user interface 1040 of the Gallery application on the left half of the screen of the dividing line 1004 and a user interface 1050 of the Meitu application on the right half of the screen of the dividing line 1004 .

[0323] User interface 1040 shows multiple pictures, including picture 1041 .

[0324] The user interface 1050 shows picture beautification functions, such as a picture beautification function, a camera function, a portrait beauty function, a collage function, and a video editing function.

[0325] The user can share the picture displayed in the user interface 1040 to the user interface 1050 to quickly beautify the picture displayed in the user interface 1040.

[0326] Specifically, the electronic device may receive a user operation to select the picture 1041 and drag the picture 1041 .

[0327] As shown in FIG10K , in response to the operation of dragging the picture 1041 , the electronic device may display the icon 1042 shown in FIG10K , where the icon 1042 is used to prompt the user that the picture 1041 is currently being shared.

[0328] The icon 1042 may be moved into the user interface 1050 in response to a drag operation by the user.

[0329] When icon 1042 moves downward beyond dividing line 1004, the electronic device may display a "Multi-function Sharing" option on user interface 1050. As shown in FIG10K , the "Multi-function Sharing" option displayed on user interface 1050 includes a picture beautification function option, a portrait beauty function option, and a puzzle function option.

[0330] Icon 1042 can continue to move toward the area where the "Multi-function Share" option is located as the user drags the icon 1042. After icon 1042 moves to the "Multi-function Share" option, the electronic device can change the display format of the "Multi-function Share" option. For example, as shown in Figure 10L, the electronic device can expand and display the picture beautification function option, the portrait beauty function option, and the puzzle function option.

[0331] Optionally, in some embodiments, the electronic device 100 may only change the display form of the puzzle function option, without changing the display form of the picture beautification function option and the portrait beauty function option.

[0332] The icon 1042 may continue to move toward the picture beautification function option, the portrait beauty function option, and the puzzle function option as the user drags.

[0333] As shown in Figure 10M, icon 1042 moves toward the area where the puzzle function option is located as the user drags it. When the display area where icon 1042 is located overlaps with the area where the puzzle function option is located to a certain extent, the user releases their finger and selects to beautify image 1041 based on the puzzle function.

[0334] As shown in Figure 10N, in response to beautifying picture 1041 based on the puzzle function, the electronic device can display user interface 1060 in the second application on screen B. User interface 1060 includes picture 1041, and user interface 1060 is a puzzle interface in the picture beautification application, and user interface 1060 is different from user interface 1050.

[0335] It is not limited to selecting one puzzle piece at a time. The electronic device can also receive user operations to select multiple pictures for puzzle at one time. This application will not go into details here.

[0336] Figures 10J-10N only illustrate an application scenario of multi-function sharing on the inner folding screen. The multiple sharing scenarios on the electronic device with a straight screen introduced above are also applicable to the inner folding screen. For details, please refer to the detailed descriptions in the embodiments of Figures 8A-8E, 8F-8M, and 9A-9E, which will not be repeated in this application. Similarly, an application scenario of multi-function sharing on the inner folding screen shown in Figures 10J-10N is also applicable to the straight screen, which will not be repeated in this application.

[0337] The foldable screens mentioned in this application include not only inner folding screens but also outer folding screens, top-to-bottom folding screens, and scrolling screens. The specific implementation of multi-function sharing on the outer folding screen, top-to-bottom folding screen, and scrolling screen is similar to that on the inner folding screen, and can be found in the description of the embodiments in Figures 10J-10N , so this application will not elaborate on this.

[0338] FIG11 is a flow chart of a data sharing method provided in this application.

[0339] S1101. The electronic device displays a first user interface of a first application in a first area of ​​a display screen, and displays a second user interface of a second application in a second area of ​​the display screen, wherein the first user interface displays first content.

[0340] Exemplarily, the first application may be the gallery application shown in FIG. 8A , the first user interface may be the user interface 810 shown in FIG. 8A , and the first content may be the picture 8101 shown in FIG. 8A .

[0341] The second application may be the instant messaging application shown in FIG. 8A , and the second user interface may be the user interface 820 shown in FIG. 8A .

[0342] Exemplarily, the first application may be the document editing application shown in FIG. 9A , the first user interface may be the user interface 910 shown in FIG. 9A , and the first content may be the file 9101 shown in FIG. 9A .

[0343] The second application may be the instant messaging application shown in FIG. 9A , and the second user interface may be the user interface 820 shown in FIG. 9A .

[0344] Exemplarily, the first application may be the gallery application shown in FIG10J , the first user interface may be the user interface 1040 shown in FIG10J , and the first content may be the picture 1041 shown in FIG10J .

[0345] The second application may be the beauty image application shown in FIG10J , and the second user interface may be the user interface 1050 shown in FIG10J .

[0346] In one possible implementation, the first area is different from the second area. When the first area is different from the second area, the electronic device displays the first user interface and the second user interface in split screen, and the area where the first user interface is located does not overlap with the area where the second user interface is located.

[0347] In other possible implementations, the first area may be the same as the second area. When the first area is the same as the second area, the electronic device displays the second user interface of the second application in a floating manner above the first user interface. The area where the first user interface is located includes the area where the second user interface is located.

[0348] In a possible implementation, the first application is the same as the second application, or the first application is different from the second application.

[0349] When the first application and the second application are the same, content can be shared between different user interfaces of the same application.

[0350] When the first application is the same as or different from the second application, content may be shared between different user interfaces of different applications.

[0351] S1102: The electronic device receives a first user operation on first content.

[0352] Exemplarily, the first user operation may be a long press and drag operation on the image 8101 as shown in FIG. 8A and FIG. 8B .

[0353] Exemplarily, the first user operation may also be the long press and drag operation on the file 9101 shown in FIG. 9A and FIG. 9B .

[0354] Exemplarily, the first user operation may also be the long press and drag operation on the image 1041 shown in FIG. 10J and FIG. 10K .

[0355] S1103. In response to the first user operation, the electronic device displays a first function option and a second function option on the second area, where the first function option is used to share the first content to the second application via a first sharing method, and the second function option is used to share the first content to the second application via a second sharing method, where the first sharing method is different from the second sharing method.

[0356] In a possible implementation, the first sharing method and the second sharing method are different: the first sharing method and the second sharing method include any one or more of the following: sharing the size of the first content, sharing the path of the first content, and sharing the format of the first content.

[0357] Exemplarily, the first function option may be function option 8202 shown in FIG. 8C , and the second function option may be function option 8201 shown in FIG. 8C .

[0358] Exemplarily, the first function option may be function option 8401 shown in FIG. 8H , and the second function option may be function option 8402 shown in FIG. 8H .

[0359] Exemplarily, the first function option may be the prompt bar 8604 shown in FIG. 8N , and the second function option may be the prompt bar 8605 shown in FIG. 8N .

[0360] Exemplarily, the first function option may be function option 9103 shown in FIG. 9C , and the second function option may be function option 9104 or function option 9105 shown in FIG. 9C .

[0361] Exemplarily, the first function option may be the puzzle function option shown in FIG10K , and the second function option may be the picture beautification function option or the portrait beauty function option shown in FIG10K .

[0362] S1104: The electronic device receives a second user operation on the first function option or the first content.

[0363] The second user operation may refer to an operation of moving the first content to the first function option. The second user operation is used to select the first sharing method and share the first content to the second application through the first sharing method.

[0364] S1105. In response to the second user operation, the electronic device displays a first user interface of the first application on a first area of ​​the display screen and displays a third user interface of the second application on a second area of ​​the display screen, where the third user interface includes the first content.

[0365] The third user interface may be the same as or different from the second user interface.

[0366] Illustratively, the second user operation may be an operation of moving the icon 8103 onto the function option 8202 as shown in FIG8D , so that the overlapping area of ​​the display region where the icon 8103 is located and the region where the function option 8202 is located exceeds a certain value.

[0367] Exemplarily, the second user operation may be an operation of moving the icon 8103 onto the function option 8401 as shown in FIG8I , so that the overlapping area of ​​the display region where the icon 8103 is located and the region where the function option 8401 is located exceeds a certain value.

[0368] Exemplarily, the second user operation may be an operation of moving the icon 9102 onto the function option 9103 as shown in FIG9E , so that the overlapping area of ​​the display region where the icon 9102 is located and the region where the function option 9103 is located exceeds a certain value.

[0369] Exemplarily, the second user operation may be the operation of moving the icon 1042 to the puzzle function option as shown in FIG10M , so that the overlapping area of ​​the display area where the icon 1042 is located and the area where the puzzle function option is located exceeds a certain value.

[0370] Exemplarily, the electronic device displays a third user interface of the second application on the second area of ​​the display screen. The third user interface may be the user interface 830 shown in FIG8E .

[0371] Exemplarily, the electronic device displays a third user interface of the second application on the second area of ​​the display screen. The third user interface may be the user interface 860 shown in FIG8L .

[0372] Exemplarily, the electronic device displays a third user interface of the second application on the second area of ​​the display screen. The third user interface may be the user interface 920 shown in FIG. 9F .

[0373] Exemplarily, the electronic device displays a third user interface of the second application on the second area of ​​the display screen. The third user interface may be the user interface 1060 shown in FIG10N .

[0374] In one possible implementation, when the electronic device includes a flexible display, in response to a first user operation, the electronic device displays a first function option and a second function option on a second user interface, specifically including: when the flexible display is in a second physical state, in response to the first user operation, displaying the first function option and the second function option on the second user interface.

[0375] In one possible implementation, the flexible display's physical state includes a first physical state and a second physical state. In the first physical state, the displayable area of ​​the flexible display includes a first area. In the second physical state, the displayable area of ​​the flexible display includes a first area and a second area. The first user interface and the second user interface are displayed in the first area and the second area, respectively. In this way, by changing the physical state of the electronic device's flexible display, the "multi-function sharing" feature between applications can be automatically enabled, eliminating the need for manual user activation and reducing user effort.

[0376] Optionally, when the flexible display screen is a foldable screen, in one possible implementation, the first physical state may be a folded state, and the second physical state may be an unfolded state. In other possible implementations, the first physical state may also be an unfolded state, and the second physical state may be a folded state.

[0377] The foldable screen can be a two-fold screen, such as a left-right foldable screen or a top-bottom foldable screen. The foldable screen can also be a multi-fold screen.

[0378] Optionally, when the flexible display screen is a scroll screen, in one possible implementation, the first physical state may be an unfolded state, and the second physical state may be a semi-expanded state or a fully expanded state. In other possible implementations, the first physical state may also be a semi-expanded state or a fully expanded state, and the second physical state may be an unfolded state.

[0379] In one possible implementation, when the electronic device includes a flexible display, in response to a first user operation, the electronic device displays a first function option and a second function option on a second user interface, specifically including: after performing a folding operation on the flexible display, in response to the first user operation, displaying the first function option and the second function option on the second user interface.

[0380] In one possible implementation, the folding operation is an operation of folding the flexible display in a first direction. Alternatively, the folding operation includes an operation of folding the flexible display in the first direction and an operation of folding the flexible display in a second direction, where the first direction and the second direction are opposite directions. In this way, by changing the shape of the flexible display of the electronic device, the "multi-function sharing" function between applications can be automatically enabled, eliminating the need for manual activation by the user and reducing user operation.

[0381] In a possible implementation, the method further includes: in a process in which the electronic device receives the first user operation, the electronic device displays a first icon, and the electronic device displays the first icon, where the first icon is used to indicate that the first content is being moved or shared.

[0382] Exemplarily, the first icon may be icon 8103 shown in FIG. 8B .

[0383] Exemplarily, the first icon may be the icon 9102 shown in FIG. 9B .

[0384] Exemplarily, the first icon may be the icon 1042 shown in FIG. 10K .

[0385] The first icon may be the display image of the first content itself, a thumbnail of the first content, an icon indicating the type of the first content, or a system default icon for indicating moving or sharing. In other embodiments, optionally, during the movement of the first icon, the display state of the first content may be different from the display state before being selected. For example, the first content may be grayed out, or if the sharing is to "move" or "cut" rather than "copy" the first content, then the first content may not be displayed.

[0386] In a possible implementation, the first user operation includes long pressing the first content and dragging the first icon; the second user operation includes dragging the first icon onto the first function option.

[0387] In one possible implementation, after dragging the first icon onto the first function option, the method further includes: the electronic device switching the display form of the first function option from the first display form to the second display form; the difference between the first display form and the second display form includes any one or more of the following: a different display size of the first function option, a different display color of the first function option, or a different display position of the first function option. In this way, the user is prompted with the currently selected sharing method by changing the display form of the function option.

[0388] In one possible implementation, the method further includes: the electronic device receiving a third user operation, the third user operation including moving the first icon away from the first function option; and in response to the third user operation, the electronic device restoring the display form of the first function option to the first display form. In this way, the user can stop sharing the first content while sharing the first content, and the change in the display form of the function option prompts the user that the sharing of the first content is being stopped.

[0389] For example, the third user operation may be the operation of moving icon 7403 away from the function 2 option as shown in FIG7G . The electronic device may change the display form of the function 1 option and the function 2 option, for example, displaying the display form of the function 1 option and the function 2 option as shown in FIG7J .

[0390] For example, the third user operation may be the operation of moving icon 1003 away from the function 2 option as shown in FIG10G . The electronic device may change the display form of the function 1 option, the function 2 option, and the function 3 option, for example, displaying the display form of the function 1 option, the function 2 option, and the function 3 option as shown in FIG10H .

[0391] In one possible implementation, the method further includes: the electronic device receiving a fourth user operation, the fourth user operation including moving the first icon to the first user interface; and in response to the fourth user operation, the electronic device ceasing to display the first function option and the second function option. In this way, the user can stop sharing the first content while sharing the first content, and ceasing to display the first function option and the second function option notifies the user that sharing has ended.

[0392] For example, the fourth user operation may be the operation of moving the icon 7403 to the user interface 740 as shown in Figure 7K. The electronic device may stop displaying the function one option and the function two option.

[0393] Exemplarily, the fourth user operation may also be the operation of moving the icon 1003 to the user interface 1000 as shown in Fig. 10I. The electronic device may stop displaying the function one option, the function two option, and the function three option.

[0394] Through this method, users can choose to share content to other applications through different sharing methods according to their needs, realizing multiple possibilities of sharing data between applications.

[0395] The present application also provides an electronic device, which includes one or more display screens, a processor and a memory; the memory is coupled to the processor, one or more display screens, and the memory is used to store computer program code, the computer program code includes computer instructions, and the processor calls the computer instructions to enable the electronic device to execute a data sharing method shown in Figure 11.

[0396] The present application also provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a data sharing method shown in FIG11 .

[0397] The present application also provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes a data sharing method shown in FIG11 .

[0398] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.

[0399] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0400] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0401] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection of the present invention.

Claims

1. A data sharing method, characterized in that: The method comprises: The electronic device displays a first user interface of a first application in a first area of ​​a display screen, and displays a second user interface of a second application in a second area of ​​the display screen, wherein the first user interface displays first content; The electronic device receives a first user operation on the first content; In response to the first user operation, the electronic device displays a first function option and a second function option on the second area, the first function option is used to share the first content to the second application in a first sharing method, and the second function option is used to share the first content to the second application in a second sharing method, and the first sharing method is different from the second sharing method; The electronic device receives a second user operation acting on the first function option or the first content; In response to the second user operation, the electronic device displays the first user interface of the first application on the first area of ​​the display screen and displays a third user interface of the second application on the second area of ​​the display screen, wherein the third user interface includes the first content.

2. The method according to claim 1, characterized in that The first region is different from the second region.

3. The method according to claim 1, characterized in that The first sharing method is different from the second sharing method: The first sharing method and the second sharing method include any one or more of the following: sharing the size of the first content, sharing the path of the first content, and sharing the format of the first content.

4. The method according to any one of claims 1 to 3, characterized in that: When the electronic device includes a flexible display screen, in response to the first user operation, the electronic device displays the first function option and the second function option on the second user interface, specifically including: When the flexible display screen is in a second physical state, in response to the first user operation, a first function option and a second function option are displayed on the second user interface.

5. The method according to claim 4, characterized in that The physical state of the flexible display screen includes a first physical state and a second physical state, wherein in the first physical state, the displayable area of ​​the flexible display screen includes a first area, and in the second physical state, the displayable area of ​​the flexible display screen includes the first area and the second area, and the first user interface and the second user interface are displayed in the first area and the second area, respectively.

6. The method according to any one of claims 1 to 3, characterized in that: When the electronic device includes a flexible display screen, in response to the first user operation, the electronic device displays the first function option and the second function option on the second user interface, specifically including: After the flexible display screen is folded, in response to the first user operation, a first function option and a second function option are displayed on the second user interface.

7. The method according to claim 6, characterized in that The folding operation is an operation of folding the flexible display screen in a first direction, or, The folding operation includes an operation of folding the flexible display screen in a first direction and an operation of folding the flexible display screen in a second direction, wherein the first direction and the second direction are opposite directions.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: During the process of the electronic device receiving the first user operation, the electronic device displays a first icon, where the first icon is used to indicate that the first content is being moved.

9. The method according to claim 6, characterized in that The first user operation includes long pressing the first content and dragging the first icon; The second user operation includes an operation of dragging the first icon onto the first function option.

10. The method according to claim 7, characterized in that After dragging the first icon onto the first function option, the method further includes: The electronic device switches the display form of the first function option from a first display form to a second display form; The difference between the first display form and the second display form includes any one or more of the following: The display size of the first function option is different, the display color of the first function option is different, or the display position of the first function option is different.

11. The method according to claim 10, characterized in that The method further comprises: The electronic device receives a third user operation, where the third user operation includes an operation of moving the first icon away from the first function option; In response to the third user operation, the electronic device restores the display form of the first function option to the first display form.

12. The method according to any one of claims 8 to 11, characterized in that: The method further comprises: The electronic device receives a fourth user operation, where the fourth user operation includes an operation of moving the first icon to the first user interface; In response to the fourth user operation, the electronic device stops displaying the first function option and the second function option.

13. The method according to any one of claims 1 to 12, characterized in that: The first application is the same as the second application, or the first application is different from the second application.

14. An electronic device, characterized in that: The electronic device includes one or more display screens, a processor and a memory; the memory is coupled to the processor, the one or more display screens, the memory is used to store computer program code, the computer program code includes computer instructions, and the processor calls the computer instructions so that the electronic device executes the method described in any one of claims 1-13.

15. The electronic device according to claim 14, characterized in that: The display screen includes a folding screen or a scroll screen.

16. A computer-readable storage medium, characterized in that: Used to store computer instructions, when the computer instructions are executed on an electronic device, the electronic device executes any one of the methods of claims 1-13.

17. A computer program product, characterized in that When the computer program product is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • File sharing method and terminal

    CN110321044A

  • Message processing method and electronic equipment

    CN111638837A

  • Information sharing method and device, electronic equipment and computer readable medium

    CN114840128A

  • Method and apparatus for sharing objects in electronic device

    US20150067590A1