Data sharing method and related apparatus
Patent Information
- Application Number
- PCT/CN2026/076587
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-02-21
- Filing Date
- 2026-02-02
- Publication Date
- 2026-08-27
Smart Images

Figure CN2026076587_27082026_PF_FP_ABST
Abstract
Description
A data sharing method and related apparatus
[0001] This application claims priority to Chinese Patent Application No. 202510202304.4, filed on February 21, 2025, entitled “A Data Sharing Method and Related Apparatus”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to a data sharing method and related apparatus. Background Technology
[0003] With the increasing prevalence of terminal devices, smart terminal devices have become indispensable items in people's lives. Users can share data between two terminal devices or between two applications on the same terminal device. How to improve the user experience of sharing data on terminal devices requires further research. Summary of the Invention
[0004] This application provides a data sharing method and related apparatus, which can provide a quick access point to the source interface of the image when the user views the image on a first electronic device, thereby improving the efficiency and experience of the user in sharing data between different applications.
[0005] In a first aspect, this application provides a data sharing method, comprising: a first electronic device displaying a first interface of a first application; the first electronic device receiving a first input from a user; in response to the first input, the first electronic device sharing a first image of the first interface to a second application; the first electronic device displaying a second interface of the second application and a first control, the second interface including the first image; the first electronic device receiving a second input from a user to the first control; and in response to the second input, the first electronic device displaying the first interface.
[0006] The data sharing method provided in this application can provide a shortcut to return to the first interface when the user views the image in the second application after sharing an image from a first interface in a first application on a first electronic device to a second application, thereby improving the efficiency and experience of sharing data between different applications.
[0007] In one possible implementation, the first image includes all or part of the content of the first interface. This allows for a quick access point to the source interface of the first image to be provided in the second application, even when sharing all or part of the content of the first interface from the first application to the second application.
[0008] In one possible implementation, the second interface displays a large version of the first image; before the first electronic device displays the second interface of the second application, the method further includes: the first electronic device displays a thumbnail of the first image, wherein the resolution of the large version of the first image is greater than that of the thumbnail; the first electronic device receives a third input from the user regarding the thumbnail of the first image; the first electronic device displays the second interface of the second application, specifically including: in response to the third input, the first electronic device displays the second interface of the second application. In this way, after sharing the first interface image of the first application to the second application, when viewing the large version of the first image in full-screen mode in the second application, a shortcut to return to the first interface can be provided, allowing direct access to the first interface of the first application.
[0009] In one possible implementation, the second interface displays a thumbnail of the first image. This allows a first control to return to the first interface when the user clicks on the thumbnail of the first image in the second application to view a larger version of the first image after the first application's first interface image has been shared to the second application. When the user clicks the first control, they are directly taken back to the first interface of the first application.
[0010] In one possible implementation, the first electronic device displays a second interface and a first control of the second application. Specifically, the first electronic device displays the first control while displaying the second interface. This allows for a first control to return to the first interface after the first interface image of the first application is shared to the second application, and when the first image is displayed as a thumbnail in the second application. When the first control is activated, the user is directly taken to the first interface of the first application.
[0011] In one possible implementation, the first electronic device displays a second interface and a first control of the second application. Specifically, when displaying the second interface, the first electronic device receives a fourth input from the user regarding a thumbnail of the first image in the second interface; in response to the fourth input, the first electronic device displays a first shortcut menu, wherein the first shortcut menu includes one or more controls, and the one or more controls include the first control. Thus, when displaying a thumbnail of the first image in the second application, if the user long-presses the thumbnail of the first image to bring up the shortcut menu, a first control to return to the first interface is displayed in the shortcut menu, allowing direct access to the first interface of the first application.
[0012] In one possible implementation, the first electronic device displays a second interface and a first control of the second application. Specifically, when displaying the second interface, the first electronic device receives a fourth input from the user regarding a thumbnail of the first image in the second interface. In response to the fourth input, the first electronic device displays a second shortcut menu and the first control, wherein the second shortcut menu includes one or more controls. Thus, when displaying a thumbnail of the first image in the second application, if the user long-presses the thumbnail to bring up the shortcut menu, a first control to return to the first interface is displayed outside the shortcut menu. When the first control is accessed, the user is directly taken to the first interface of the first application.
[0013] In one possible implementation, the first electronic device displays a second interface and a first control of the second application. Specifically, when displaying the second interface, the first electronic device receives a first drag input from a user regarding a thumbnail of the first image in the second interface; in response to the first drag input, the first electronic device displays a first hotspot; and after the first drag input drags the thumbnail of the first image to the first hotspot, the first electronic device displays the first control. This allows the first control to be accessed quickly by dragging the thumbnail of the first image to the hotspot in the second application, facilitating quick access to the first control when viewing the first image.
[0014] In one possible implementation, the first electronic device displays a second interface and a first control of the second application. Specifically, when displaying the second interface, the first electronic device receives a second drag input from the user regarding a thumbnail of the first image in the second interface; in response to the second drag input, the first electronic device displays a second hotspot, which includes the first control; wherein the second input is a release operation after dragging the thumbnail of the first image to the location of the first control. In this way, by dragging the thumbnail of the first image in the second application, the first control can be displayed in the hotspot, and when the user releases the device near the first control, the user returns to the first interface of the first application, allowing the user to quickly access the first control while viewing the first image.
[0015] In one possible implementation, the method further includes: in response to the first input, the first electronic device generates first tag information for the first image, the first tag information indicating that the first image originates from the first interface in the first application; the first electronic device shares the first tag information to the second application; the first electronic device displays the first interface in response to the second input, specifically including: in response to the second input, the second application of the first electronic device launches the first application to display the first interface based on the first tag information. This allows the second application to identify the first application and the first interface from which the first image originates.
[0016] In one possible implementation, the first electronic device shares the first image of the first interface to a second application, specifically including: the first electronic device sharing the first image and the first tag information to a first contact in the second application; the method further includes: the first electronic device sending the first image and the first tag information to a second electronic device corresponding to the first contact. This allows other devices to identify the first application and the first interface from which the first image originates.
[0017] In one possible implementation, the method further includes: after receiving the first image and the first tag information, the second electronic device displays a third interface of the second application and the second control, the third interface including the first image; the second electronic device receives a fifth input from the user to the second control; and in response to the fifth input, the second electronic device displays the first interface of the first application. This allows for a convenient shortcut to return to the source interface of the first image when the user views it on the first electronic device after the first electronic device shares the first image with another electronic device, thereby improving the efficiency and experience of sharing data across devices and applications.
[0018] In one possible implementation, the method further includes: the first electronic device receiving a second image and second tagging information sent by the second electronic device through a fourth application, wherein the second tagging information is used to indicate that the source of the second image is a fourth interface in the third application; the first electronic device displaying a fifth interface and a third control of the fourth application, wherein the fifth interface includes the second image; the first electronic device receiving a sixth input from a user to the third control; and in response to the sixth input, the first electronic device displaying the fourth interface of the third application. Thus, after the first electronic device receives the third image shared by the second electronic device, it provides a convenient shortcut to return to the source interface of the third image when the user views the third image on the first electronic device, thereby improving the efficiency and experience of sharing data across devices and applications.
[0019] In one possible implementation, the third application may be the same as or different from the first application, and the fourth application may be the same as or different from the second application.
[0020] Secondly, this application provides an electronic device including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store a computer program. When the one or more processors execute the computer program, the data sharing method described in the first aspect and any possible implementation thereof is implemented.
[0021] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a processor, implements the data sharing method in any of the possible implementations of any of the above aspects.
[0022] Fourthly, embodiments of this application provide a computer program product, including a computer program that, when run on a processor, implements the data sharing method in any of the possible implementations of any of the above aspects.
[0023] Fifthly, embodiments of this application provide a chip system including a processing circuit and an interface circuit, wherein the interface circuit is used for... The code instructions are transmitted to the processing circuit, which executes the code instructions to perform the data sharing method in any of the possible implementations of any of the above aspects. Attached Figure Description
[0024] Figure 1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0025] Figure 2 is a schematic diagram of the software structure of an electronic device provided in an embodiment of this application;
[0026] Figures 3A-3J are schematic diagrams illustrating how a set of first electronic devices, according to an embodiment of this application, share a full-screen screenshot of a first interface in a first application to a second application.
[0027] Figures 4A-4C are schematic diagrams illustrating how a second electronic device receives a full-screen screenshot of the first interface in the first application shared by a first electronic device through a second application, according to an embodiment of this application.
[0028] Figures 5A-5C are schematic diagrams illustrating how a set of first electronic devices, according to an embodiment of this application, drag and share a first interface from a first application to a second application.
[0029] Figures 5D-5G are schematic diagrams illustrating how another set of first electronic devices, provided in the embodiments of this application, drag and share a first interface from a first application to a second application;
[0030] Figures 6A-6E are schematic diagrams illustrating how a set of first electronic devices, according to embodiments of this application, share a portion of the content of a first interface in a first application to a second application;
[0031] Figures 7A-7C are schematic diagrams of a set of first electronic devices invoking a first control in a second application according to an embodiment of this application;
[0032] Figures 8A-8D are schematic diagrams of a set of first electronic devices provided in the embodiments of this application, which bring up the first control after dragging the thumbnail of the first image to the designated hot area in the second application;
[0033] Figures 9A and 9B are schematic diagrams of a set of first electronic devices provided in the embodiments of this application dragging a thumbnail of a first image to bring up a first control in a designated hot area in a second application;
[0034] Figures 10A-10E are schematic diagrams illustrating how a set of first electronic devices, according to an embodiment of this application, share a first image of the contact interface in a first application to a second application;
[0035] Figures 10F-10H are schematic diagrams showing a group of second electronic devices receiving a first image of the contact interface in the first application shared by the first electronic device through the second application, according to an embodiment of this application.
[0036] Figures 11A-11C are schematic diagrams illustrating how a set of first electronic devices, according to an embodiment of this application, share a first image including geographic information from a first application to a second application;
[0037] Figures 11D-11E are schematic diagrams of a set of second electronic devices receiving a first image including geographic information shared by a first electronic device through a second application, according to an embodiment of this application.
[0038] Figures 12A-12E are schematic diagrams illustrating how a set of first electronic devices, provided in an embodiment of this application, compares the prices of the same product using multiple screenshots;
[0039] Figures 13A-13B are schematic diagrams of a set of first electronic devices simultaneously viewing a first image in a second application and the source interface of viewing the first image in the first application, according to an embodiment of this application.
[0040] Figure 14 is a flowchart illustrating a data sharing method provided in an embodiment of this application. Detailed Implementation
[0041] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0042] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0043] The term "user interface (UI)" used in the following embodiments of this application, also simply referred to as the interface, is the medium interface through which an application or operating system interacts and exchanges information with the user. It realizes the conversion between the internal form of information and the form that the user can accept. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of a wearable device.
[0044] Figure 1 shows a schematic diagram of the hardware structure of an electronic device 100.
[0045] Electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, 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, a sensor module 180, a display screen 194, a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include one or more sensors, such as a gyroscope sensor 180B, a magnetic sensor 180D, an accelerometer sensor 180E, a proximity sensor 180F, a touch sensor 180K, etc. In some embodiments, the sensor module 180 may also include one or more of the following sensors: a pressure sensor, a barometric pressure sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, etc.
[0046] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0047] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0048] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0049] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. In some embodiments, the processor 110 may include one or more interfaces, such as a universal serial bus (USB) interface.
[0050] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, or USB Type-C port. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0051] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0052] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, display screen 194, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0053] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0054] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0055] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0056] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, 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), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, frequency modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 2.
[0057] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via 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 technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0058] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0059] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0060] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).
[0061] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.
[0062] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.
[0063] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.
[0064] Electronic device 100 can implement audio functions, such as making calls and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, and application processor.
[0065] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0066] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0067] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0068] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0069] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.
[0070] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover.
[0071] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and applied to applications such as screen orientation switching and pedometers.
[0072] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.
[0073] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0074] In some embodiments, the electronic device 100 may further include one or more of buttons, a motor, and an indicator. Buttons may include a power button, volume buttons, etc. Buttons may be mechanical buttons or touch buttons. The electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of the electronic device 100. The motor may generate vibration cues. The indicator may be an indicator light, which can be used to indicate charging status, battery level changes, and can also be used to indicate messages, missed calls, notifications, etc.
[0075] The SIM card interface 195 is used to connect the SIM card.
[0076] In this embodiment, the hardware structure of the electronic device 200 can also refer to the hardware structure description of the electronic device 100 in the embodiment shown in FIG1 above, and will not be repeated here.
[0077] In this embodiment of the application, the device type of electronic device 100 can be any of the following: mobile phone, tablet computer, handheld computer, desktop computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), as well as smart home devices such as smart screens and smart speakers, wearable devices such as smart bracelets, smartwatches, and smart glasses, extended reality (XR) devices such as augmented reality (AR), virtual reality (VR), and mixed reality (MR), in-vehicle devices, or smart city devices.
[0078] Please refer to Figure 2, which exemplarily shows a software structure block diagram of electronic device 100.
[0079] The electronic device provided in this application embodiment can run an operating system (OS). This operating system can be various operating systems used in industry, such as operating systems developed based on OpenHarmony, like HarmonyOS; or other operating systems such as Android™, iOS mobile operating systems; it can also be various open-source operating systems or their derivatives, such as Linux OS, and other embedded operating systems; or it can be a future new operating system, such as an AI operating system based on artificial intelligence. An operating system is a set of interconnected system software programs that manage and control the operation of electronic devices, utilize and run hardware and software resources, and provide public services to organize user interaction. In electronic devices, the operating system connects downwards to the physical devices at the hardware layer and provides a runtime environment for application software upwards.
[0080] An operating system typically includes a kernel layer, a middleware layer, and an application layer. The application layer includes applications, which can include system applications and third-party applications. The middleware layer includes a suite of software providing various services to application developers, or frameworks providing services such as databases, multimedia, and graphics, or capabilities such as distributed scheduling and system scaling. For example, the middleware layer may include a framework layer and / or a system service layer. The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The system service layer includes the system's core capabilities, providing services to applications through the framework layer. The kernel layer is the layer between hardware and software. The kernel layer may include hardware drivers and the operating system kernel. In addition to providing hardware drivers, the kernel layer also supports functions such as memory management and system process management.
[0081] The electronic devices we use in our daily lives come in various types and forms, and are applied in a wide range of scenarios. Therefore, based on the different forms and functions of electronic devices, different application scenarios, and different user needs, the operating systems used in these devices may also differ. The basic functions implemented by the electronic device provided in this application can be implemented using a general-purpose operating system or a dedicated operating system. To more clearly illustrate the implementation of the embodiments of this application under a specific operating system, the architecture of HarmonyOS is shown below. Those skilled in the art can deduce the implementation of the embodiments of this application under other specific operating systems, such as Android™.
[0082] As shown in Figure 2, the software architecture of an electronic device can be divided into several layers. In some embodiments, from bottom to top, these layers are: kernel layer, system service layer, framework layer, and application layer. Layers communicate with each other through software interfaces. System functions can be tailored, added, or combined at the subsystem level depending on the deployment scenario of different device forms. Each subsystem can also be tailored, added, or combined at the functional level.
[0083] The Kernel Abstraction Layer (KAL) provides basic kernel capabilities to upper layers by shielding the differences between multiple kernels, including but not limited to process / thread management, memory management, file system, network management, and peripheral device management.
[0084] Kernel Subsystem: Supports the selection of a suitable OS kernel for different resource-constrained devices, including but not limited to Linux kernel, HarmonyOS kernel, LiteOS (Lite Operating System), etc.
[0085] Driver Subsystem: The driver framework is the foundation for the open system hardware ecosystem, providing unified peripheral access capabilities and a framework for driver development and management. The driver framework includes: display drivers, camera drivers, audio drivers, Bluetooth drivers, sensor drivers, etc.
[0086] The system service layer comprises the core capabilities of the system, providing services to applications through the framework layer. This layer includes, but is not limited to, the following subsystems:
[0087] The system's basic capability subsystem set provides fundamental capabilities for the operation, scheduling, and migration of distributed applications across multiple devices. This set may include distributed soft bus, distributed data management, distributed task scheduling, and Ark multi-language runtime; it may also include multi-modal input subsystem, graphics subsystem, security subsystem, and AI business subsystem.
[0088] In some embodiments, the AI business subsystem can add tag information to a first image selected by a user in a first application to be shared. This tag information can be used to indicate that the first image originates from a first interface within the first application. The tag information can be a URL address or a QR code of the first interface.
[0089] In some embodiments, the tagging information can also be used to represent relevant parameters of the first image. For example, image processing parameters of the first image edited by the user, or content information of the first image. The content information of the first image may include geographical information, contact information, etc.
[0090] When a user shares a first image from the first application to the second application, the AI business subsystem can also send the first image and its tagging information to the second application. Upon receiving the first image and its tagging information, the second application can display the functional controls associated with the first image based on the tagging information. For example, when displaying the first image in the second application, it can display an open control for the first application based on the tagging information. This open control can be used to trigger the electronic device 100 to display that the first image originated from the first interface within the first application, etc.
[0091] In some embodiments, when electronic device 100 shares a first image with electronic device 200 via a second application, electronic device 100 can also send the tagging information of the first image to electronic device 200 via the second application. When displaying the first image, electronic device 200 can display functional controls associated with the first image based on the tagging information. For example, when displaying the first image, electronic device 200 can display an open control for the first application, which can be used to trigger electronic device 200 to display that the first image originated from a first interface within the first application, etc.
[0092] Basic software service subsystem set: provides public and general software services; the basic software service subsystem set may include event notification subsystem, telephone service subsystem, multimedia subsystem, etc.
[0093] Enhanced software service subsystem suite: Provides differentiated enhanced software services for different devices; the enhanced software service subsystem suite may include smart screen proprietary business subsystem, wearable proprietary business subsystem, IoT proprietary business subsystem, etc.
[0094] Hardware service subsystem set: Provides hardware services; the hardware service subsystem set may include location service subsystem, user IAM (Identity and Access Management) subsystem, wearable proprietary hardware service subsystem, biometric identification, IoT proprietary hardware service subsystem, etc.
[0095] Distributed task scheduling enables distributed service management (discovery, synchronization, registration, and invocation), supporting remote startup, remote invocation, remote connection, and migration of applications across devices.
[0096] Distributed data management enables data synchronization, data storage, data sharing, and data access across all scenarios and devices.
[0097] The distributed soft bus provides communication-related capabilities for seamless interconnection between multiple devices, including: WLAN service capabilities, Bluetooth service capabilities, soft bus, inter-process communication RPC (Remote Procedure Call), and StarFlash communication capabilities.
[0098] Ark Multilingual Runtime is a unified compilation runtime platform designed to support the joint compilation and execution of multiple programming languages and multiple chip platforms.
[0099] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The framework layer includes: the ArkUI framework (which provides a complete infrastructure for UI development of system applications, including UI functions such as components, layouts, animations, and interactive events, as well as a real-time interface preview tool), the user application framework, and the Ability framework (an Ability is a lightweight application; the Ability framework schedules and manages the operation and lifecycle of Abilities). Different devices may have different operating systems, and therefore support different APIs.
[0100] The HarmonyOS API is a series of open capabilities provided to support HarmonyOS application development. The HarmonyOS API can be set at the framework layer or independently of the framework layer. The HarmonyOS API includes the Audio API (audio service), Push API (push service), and Account API (account service), among others.
[0101] Applications can include system apps and extended / third-party apps. System apps can include the desktop, control bar, settings, contacts, phone, camera, etc., while extended / third-party apps can include social apps, travel apps, etc.
[0102] In this embodiment, the software structure of the electronic device 200 can also refer to the description of the software structure of the electronic device 100 in the embodiment shown in FIG2 above, and will not be repeated here.
[0103] The following section provides a detailed description of a data sharing method provided in this application, using different scenarios as examples.
[0104] In one application scenario, electronic device 100 can receive and respond to a user's screenshot input to capture a screenshot of a first interface in a first application, obtaining a first image. The first image includes all content of the first interface. Electronic device 100 can share the first image to a second application. After sharing the first image of the first interface from the first application to the second application, if electronic device 100 displays the first image in the second interface of the second application, it can display a first control. Electronic device 100 can receive and respond to user input on this first control, displaying the first interface of the first application. This provides a convenient shortcut to the source interface of the image when the user views it on electronic device 100, thereby improving the efficiency and experience of sharing data between different applications.
[0105] Specifically, when the electronic device 100 captures a first image from a first interface in a first application, the electronic device 100 can generate first marker information for the first image. This first marker information can be used to indicate that the first image originated from the first interface in the first application. The electronic device 100 can provide both the first image and the first marker information to a second application.
[0106] For example, the first application can be a shopping application, such as shopping application A1. The first interface can be the product interface in the first application. The second application can be an instant messaging application, such as chat application B1. In this embodiment, the first control can also be referred to as an application opening control.
[0107] Figures 3A-3J illustrate a schematic diagram of a set of electronic devices 100 provided in this application sharing a full-screen screenshot of a first interface in a first application to a second application.
[0108] For example, as shown in FIG3A, the electronic device 100 displays a desktop 310, which displays a page containing application icons. This page includes multiple application icons (e.g., icons for settings, app store, gallery, chat application B1 (icon 312), chat application B2, shopping application A1 (icon 311), etc.). Below the multiple application icons, a page indicator is displayed to indicate the positional relationship between the currently displayed page and other pages. Below the page indicator, a tray area is displayed. The tray area includes multiple tray icons, such as icons for the camera, contacts, phone, and messaging applications. The tray area remains displayed during page switching. In some embodiments, the page may also include multiple application icons and a page indicator. The page indicator may not be part of the page and may exist independently. The tray icons are also optional, and this embodiment does not limit this.
[0109] Electronic device 100 can receive user input (e.g., click) on the icon 311 of the shopping application A1, and in response to the input, electronic device 100 can display the main interface 320 of the shopping application as shown in FIG3B.
[0110] As shown in Figure 3B, the main interface 320 of the shopping application may include one or more product options. For example, product option 321. The electronic device 100 may receive user input on the product option 321 (e.g., a click), and in response to the input, the electronic device 100 may display the product interface 330 as shown in Figure 3C.
[0111] As shown in Figure 3C, the product interface 330 may include a product image 331, a product price (e.g., starting from 247), a product name (e.g., "New Summer Dress"), purchase controls, style selection controls, size selection controls, favorites controls, and add-to-cart controls. The electronic device 100 can receive full-screen screenshot input from the user for the product interface 330. Full-screen screenshot input may include any of the following: user input via physical buttons on the electronic device 100, knuckle input, swipe gesture input, air gesture input, tapping the screenshot control, or typing. For example, user input via physical buttons on the electronic device 100 could be the user simultaneously pressing the power button and the volume down button. Knuckle input could be the user double-tapping the screen with their knuckle. Swipe gesture input could be the user sliding three fingers down on the screen. Air gesture input could be the user gripping the screen with their palm. Tapping the screenshot control could be the user swiping down the status bar on the screen to bring up the shortcut window and then tapping the screenshot control in the shortcut window. Typing input could be the user tapping the back cover of the electronic device 100 twice consecutively. The above examples are merely for explaining the embodiments of this application and should not be construed as limiting the embodiments of this application.
[0112] As shown in Figure 3D, after the electronic device 100 receives a screenshot input from the user regarding the product interface 330, the electronic device 100 can generate a first image based on the product interface 330 and generate first marker information for the first image. The first marker information is used to identify that the first image originates from the interface in the first application. After generating the first image and the first marker information, the electronic device 100 can display a thumbnail 341 of the first image and a sharing control 342. The sharing control 342 can be used to share the first image with other applications or other devices. Optionally, after generating the first image and the first marker information, the electronic device 100 can also display a scrolling screenshot control 343. This scrolling screenshot control 343 can be used to trigger the electronic device 100 to perform a scrolling screenshot of the first interface.
[0113] Electronic device 100 can receive user input (e.g., click) to the sharing control 342, and in response to the input, electronic device 100 can display a sharing window 350 as shown in FIG3E.
[0114] As shown in Figure 3E, the sharing window 350 may include a thumbnail 351 of the first image, the name of the first image (e.g., "Screenshot 1"), the format of the first image (e.g., JPG format), and options for one or more applications. For example, the options for the one or more applications may include option 352 for chat application B1 and options for chat application B2. Optionally, the sharing window 350 may also include a Bluetooth option and a WLAN Direct option. The Bluetooth option can be used to trigger the electronic device 100 to share the first image with other devices via Bluetooth. The WLAN Direct option can be used to trigger the electronic device 100 to share the first image with other devices via WLAN Direct.
[0115] Electronic device 100 can receive input from a user on option 352 of the chat application B1 (e.g., click), and in response to the input, electronic device 100 can display the contact selection interface 360 of the chat application B1 as shown in FIG3F.
[0116] As shown in Figure 3F, the contact selection interface 360 may include dialog boxes for one or more contacts. For example, the dialog boxes for one or more contacts may include a dialog box for "Group Chat", a dialog box for "File Transfer Assistant", a dialog box 361 for contact "Lisa", a dialog box for contact "Dad", a dialog box for contact "Mom", etc.
[0117] Electronic device 100 can receive input from a user in dialog box 361 for the contact “Lisa” (e.g., click), and in response to the input, electronic device 100 can display a send window 370 as shown in FIG3G.
[0118] As shown in Figure 3G, the sending window 370 may include a thumbnail 371 of the first image, the name 372 of the contact "Lisa", an avatar 373, a sending control 374, and a cancel control 375. The sending control 374 can be used to trigger the electronic device 100 to send the first image to the contact "Lisa" in the second application. The cancel control 375 can be used to trigger the electronic device 100 to cancel sending the first image.
[0119] Electronic device 100 can receive user input (e.g., a click) to the sending control 374. In response to this input, electronic device 100 can send a first image and first tag information to a second application. The second application of electronic device 100 can then send the first image and first tag information to electronic device 200 corresponding to the contact "Lisa" within the second application. The second application runs on electronic device 200 and is logged into the account of contact "Lisa".
[0120] In one possible implementation, after the electronic device 100 shares the first image of the first interface of the first application to the second application, if the electronic device 100 displays a larger version of the first image in the second application, the electronic device 100 may display a first control. The electronic device 100 may receive and respond to user input to the first control, and display the first interface of the first application.
[0121] For example, as shown in FIG3H, after electronic device 100 shares a first image with a first contact (e.g., contact "Lisa") in a second application, electronic device 100 can display a conversation interface 380 of the first contact in the second application based on user input. The conversation interface 380 may include a thumbnail 381 of the first image.
[0122] Electronic device 100 can receive input from a user on a thumbnail 381 of the first image (e.g., a click). In response to this input, electronic device 100 can display an image viewing interface 390 as shown in FIG3I and an application opening control 396. The application opening control 396 can be used to trigger electronic device 100 to display the product interface 330 in the shopping application A1 shown in FIG3C.
[0123] As shown in Figure 3I, the image viewing interface 390 may include a large image 391 of the first image, a close control 392, more controls 393, a save control 394, and a share control 395. The resolution of the large image 391 of the first image is higher than the resolution of the thumbnail 381 of the first image. The close control 392 can be used to trigger the electronic device 100 to exit the image viewing interface 390 and display the dialog interface 380 shown in Figure 3H. The more controls 393 can be used to trigger the electronic device 100 to display more image viewing-related function controls. The save control 394 can be used to trigger the electronic device 100 to save the first image to the electronic device 100's image library. The electronic device 100 can receive and respond to user input (e.g., a click) to the application open control 396, displaying the product interface 330 of the shopping application A1 as shown in Figure 3C.
[0124] Optionally, the electronic device 100 may continuously display the application open control 396 on the image viewing interface 390.
[0125] Optionally, the electronic device 100 can cancel the display of the application opening control 396 after it has been continuously displayed for a certain period of time. For example, the electronic device 100 displays the application opening control 396 in the image viewing interface 390 each time it is triggered by user input. When the continuous display time of the application opening control 396 exceeds 2 seconds, the electronic device 100 can cancel the display of the application opening control 396 in the image viewing interface 390. This prevents the application opening control 396 from obscuring the original content in the image viewing interface 390 for an extended period of time.
[0126] Optionally, the name of the first application can be displayed on the application open control 396.
[0127] In one possible implementation, after the electronic device 100 shares a first image of the first interface of the first application to the second application, if the electronic device 100 displays a thumbnail of the first image in the second application, the electronic device 100 may display a first control. The electronic device 100 may receive and respond to user input to the first control, and display the first interface of the first application.
[0128] For example, as shown in FIG3J, after electronic device 100 shares the first image with a first contact (e.g., contact "Lisa") in a second application, electronic device 100 can display the first contact's chat interface 380 and application open control 382 in the second application based on user input. The application open control 382 can be used to trigger electronic device 100 to display the product interface 330 in the shopping application A1 shown in FIG3C.
[0129] In one possible implementation, electronic device 100 shares a first image and a first tag information of the first image from a first interface in a first application to electronic device 200 corresponding to a first contact in a second application. Upon receiving the first image and the first tag information, electronic device 200 can display a second control when displaying the first image in a third interface of the second application, based on user input. Electronic device 200 can receive and respond to user input on the second control, displaying the first interface of the first application. Thus, after electronic device 100 shares the first image with electronic device 200, it provides a convenient shortcut for users to return to the source interface of the first image when viewing it on electronic device 200, thereby improving the efficiency and experience of sharing data across devices and applications.
[0130] Optionally, if the electronic device 200 displays a large version of the first image in the second application, the electronic device 200 may display a second control. The electronic device 200 may receive and respond to user input to the second control, and display the first interface of the first application.
[0131] Optionally, if the electronic device 200 displays a thumbnail of the first image in the second application, the electronic device 200 may display a second control. The electronic device 200 may receive and respond to user input to the second control, and display the first interface of the first application.
[0132] Figures 4A-4C illustrate schematic diagrams of a set of electronic devices 200 receiving a full-screen screenshot of the first interface of the first application shared by electronic device 100 through a second application, according to an embodiment of this application.
[0133] For example, as shown in Figure 4A, after receiving the first image and first tag information sent by electronic device 100 through chat application B1, electronic device 200 can display the chat interface 410 of chat application B1. The chat interface 410 of chat application B1 can display a thumbnail 411 of the first image sent by electronic device 100. The chat application B1 of electronic device 100 is logged into an account with the contact "Alee".
[0134] Electronic device 200 can receive input (e.g., a click) from a user on a thumbnail 411 of the first image. In response to this input, electronic device 100 can display an image viewing interface 420 as shown in FIG4B and an application open control 426.
[0135] As shown in Figure 4B, the image viewing interface 420 may include a large image 421 of the first image, a close control 422, more controls 423, a save control 424, and a share control 425. The resolution of the large image 421 of the first image is higher than the resolution of the thumbnail 411 of the first image. The close control 422 can be used to trigger the electronic device 200 to exit the image viewing interface 420 and display the dialog interface 410 shown in Figure 4A. The more controls 423 can be used to trigger the electronic device 200 to display more image viewing-related function controls. The save control 424 can be used to trigger the electronic device 200 to save the first image to the electronic device 200's image library.
[0136] Electronic device 200 can receive and respond to user input (e.g., a click) to the application opening control 426, displaying the product interface 330 in shopping application A1 as shown in FIG4C. For a textual description of the product interface 330, please refer to the embodiment shown in FIG3C above, and will not be repeated here.
[0137] In one possible implementation, electronic device 200 can share a second image and a second tag information of the second image from a fourth interface in a third application to electronic device 100 corresponding to a second contact in the fourth application. Upon receiving the second image and the second tag information, electronic device 100 can display a third control when displaying the first image in a fifth interface of the fourth application based on user input. Electronic device 100 can receive and respond to user input on this third control, displaying the fourth interface of the third application. Thus, after electronic device 100 receives the shared third image from electronic device 200, it provides a convenient shortcut to the source interface of the third image when the user views it on electronic device 100, thereby improving the efficiency and experience of sharing data across devices and applications.
[0138] Optionally, the third application may be the same as or different from the first application, and the fourth application may be the same as or different from the second application.
[0139] In one application scenario, electronic device 100 can display a first interface of a first application. Electronic device 100 can receive and respond to user input in dragging the first interface to share to a second application, generate a first image of the first interface, and share the first image to the second application. The first image includes all content of the first interface. After electronic device 100 shares the first image to the second application, if electronic device 100 displays the first image in the second interface of the second application, electronic device 100 can display a first control. Electronic device 100 can receive and respond to user input on this first control and display the first interface of the first application. This provides a convenient shortcut to the source interface of the image when the user views it on electronic device 100, thereby improving the efficiency and experience of sharing data between different applications.
[0140] When the electronic device 100 receives input from a user dragging a first interface to share to a second application, the electronic device 100 can also generate first marker information for the first image. This first marker information can be used to indicate the first interface described in the first application. The electronic device 100 can provide both the first image and the first marker information to the second application.
[0141] Figures 5A-5C illustrate a schematic diagram of a set of electronic devices 100 provided in an embodiment of this application dragging and sharing a first interface from a first application to a second application.
[0142] For example, as shown in FIG5A, the electronic device 100 can display the product interface 330 of the shopping application A1. The textual description of the product interface 330 can be referred to the embodiment shown in FIG3C above, and will not be repeated here.
[0143] The electronic device 100 can receive drag input from the user on the product interface 330 (e.g., long press and drag the top of the product interface 330). In response to the drag input, the electronic device 100 can display a floating window 510 and a sharing hotspot 520 as shown in FIG5B, and shrink the display of the product interface 330 in the floating window 510.
[0144] As shown in Figure 5B, the sharing hotspot 520 may include options from one or more applications. These options may include option 521 from chat application B1 and option 522 from chat application B2. When the floating window 510 is dragged near option 521 of chat application B1 and released by the user, the electronic device 100 can display the contact selection interface 360 of chat application B1 as shown in Figure 3F. After the electronic device 100 receives the first contact selected by the user in the contact selection interface 360, it can display the sending window 370 as shown in Figure 3G. After the electronic device 100 receives confirmation from the user to share the product interface 330 with the first contact, the electronic device 100 can generate a first image and first tag information based on the product interface 330. The first image may include all the content of the product interface 330. The electronic device 100 can then send the first image and first tag information to a second application. The second application of the electronic device 100 can then send the first image and first tag information to the electronic device 200 corresponding to the first contact in the second application.
[0145] Optionally, as shown in FIG5C, the electronic device 100 can receive drag input from the user on the product interface 330 (e.g., long-pressing and dragging the top of the product interface 330). In response to the drag input, the electronic device 100 can display a floating window 510 and a sharing hotspot 530, and shrink the product interface 330 in the floating window 510. The sharing hotspot 530 may include options for contacts in one or more applications. Optionally, the sharing hotspot 530 may also include options for one or more applications. For example, options for contacts in one or more applications may include option 531 for the contact "Lisa" in chat application B1, and option 532 for the contact "Dad" in chat application B1. Options for one or more applications may include option 533 for chat application B2. When the floating window 510 is dragged near the contact "Lisa" option 531 in chat application B1 and released by the user following the user's drag input, the electronic device 100 can display the sending window 370 shown in FIG3G above. When electronic device 100 receives confirmation from the user to share product interface 330 with a first contact, electronic device 100 can generate a first image and first tag information for the first image based on product interface 330. The first image may include all content of product interface 330. Electronic device 100 can then provide the first image and first tag information to a second application. The second application of electronic device 100 can then provide the first image and first tag information to the electronic device 200 corresponding to the first contact within the second application.
[0146] Figures 5D-5G illustrate a schematic diagram of another set of electronic devices 100 provided in the embodiments of this application dragging and sharing a first interface from a first application to a second application.
[0147] For example, as shown in FIG5D, the electronic device 100 can receive drag input from the user on the product interface 330 shown in FIG5A (e.g., long press and drag the top of the product interface 330). In response to the drag input, the electronic device 100 can display the desktop 310 and the floating window 510, and display the product interface 330 in a scaled-down manner in the floating window 510.
[0148] While the user presses and holds the floating window 510, the electronic device 100 can receive the user's input to the chat application B1 (e.g., a click). In response to the input, the electronic device 100 can display the main interface 540 and the floating window 510 of the chat application B1 as shown in FIG5E.
[0149] As shown in Figure 5E, the main interface 540 of the chat application B1 may include dialog boxes for one or more contacts. For example, the dialog boxes for one or more contacts may include a "group chat" dialog box, a "file transfer assistant" dialog box, a dialog box 541 for the contact "Lisa", a dialog box for the contact "Dad", a dialog box for the contact "Mom", etc.
[0150] Electronic device 100 can receive input (e.g., a click) from a user into a dialog box 541 for the contact “Lisa”. In response to the input, electronic device 100 can display a dialog window 380 for the contact “Lisa” as shown in FIG5F, and display a floating window 510.
[0151] As shown in Figure 5F, when the electronic device 100 detects that the user releases the floating window 510 in the dialog window 380, the electronic device 100 can generate a first image and first tag information of the first image based on the product interface 330, and display the sending interface 540 as shown in Figure 5G. The first image may include all the content of the product interface 330. The electronic device 100 can then send the first image and the first tag information to a second application.
[0152] As shown in Figure 5G, the sending interface 540 may include a large image 541 of the first image, a sending control 542, a cancel control 543, and an editing control 544. The sending control 542 can be used to trigger the electronic device 100 to send the first image to the electronic device 200 corresponding to the first contact (e.g., contact "Lisa"). The cancel control 543 can be used to trigger the electronic device 100 to cancel sending the first image. The editing control 544 can be used to trigger the electronic device 100 to edit the first image based on user input.
[0153] Electronic device 100 can receive user input (e.g., a click) to the sending control 542. In response to this input, a second application of electronic device 100 can send the first image and first tag information to electronic device 200 corresponding to the first contact (e.g., contact "Lisa") in the second application. After sending the first image and first tag information to the second application, electronic device 100 can display a thumbnail 381 of the first image in dialog window 380, as shown in FIG. 3H above.
[0154] Optionally, when electronic device 100 receives drag input from the user on the product interface 330 shown in Figure 5A (e.g., long-pressing and dragging the top of the product interface 330), electronic device 100 can display desktop 310 and floating window 510, and shrink the product interface 330 in floating window 510. Even after the user releases floating window 510, it remains displayed. Electronic device 100 can also drag floating window 510 to a specified position within chat application B1's dialog window 380 (e.g., a text input box within dialog window 380) after opening the dialog window 380. After dragging floating window 510 to the specified position within dialog window 380, electronic device 100 can generate a first image and first marker information for the first image based on the product interface 330. Electronic device 100 can then send the first image and first marker information to a second application. The second application of electronic device 100 can then send the first image and first marker information to electronic device 200 corresponding to a first contact (e.g., contact "Lisa") within the second application.
[0155] In this way, users can share the first interface of the first application to the second application without having to long-press the floating window.
[0156] In one application scenario, electronic device 100 can display a first interface of a first application. Electronic device 100 can receive and respond to user input to share first content from the first interface to a second application, generate a first image of the first content, and share the first image to the second application. The first image may include the first content of the first interface. After electronic device 100 shares the first image to the second application, if electronic device 100 displays the first image in the second interface of the second application, electronic device 100 can display a first control. Electronic device 100 can receive and respond to user input to the first control and display the first interface of the first application. This provides a convenient shortcut to the source interface of the image when the user views it on electronic device 100, thereby improving the efficiency and experience of sharing data between different applications.
[0157] When the electronic device 100 generates a first image from first content of a first interface in a first application, the electronic device 100 may also generate first tag information for the first image. This first tag information can be used to indicate that the first image originates from the first interface in the first application. The electronic device 100 may provide both the first image and the first tag information to a second application.
[0158] For example, the first application can be a shopping application, such as shopping application A1. The first interface can be the product interface in the first application. The second application can be an instant messaging application, such as chat application B1. In this embodiment, the first control can also be referred to as an application opening control.
[0159] Figures 6A-6E illustrate a schematic diagram of a set of electronic devices 100 provided in an embodiment of this application sharing part of the content of a first interface in a first application to a second application.
[0160] For example, as shown in FIG6A, the electronic device 100 can display the product interface 330 of the shopping application A1. The textual description of the product interface 330 can be referred to the embodiment shown in FIG3C above, and will not be repeated here.
[0161] The electronic device 100 can receive input from a user selecting first content on the product interface 330. In response to this input, the electronic device 100 can generate a first image and first marker information of the first image based on the first content in the product interface 330. For example, a user can draw a rectangle 611 with their knuckle at the location of the product image 331 and the product price in the product interface 330. The first content can include the product image 331 and the product price in the product interface 330. The electronic device 100 can generate the first image based on the content in the rectangle 611.
[0162] As shown in Figure 6B, after generating the first image and the first tag information, the electronic device 100 can display a thumbnail 612 of the first image. When the electronic device 100 receives drag input from the user on the thumbnail 612 of the first image, the electronic device 100 can display a sharing hotspot 620. This sharing hotspot 620 may include options for contacts in one or more applications. Optionally, the sharing hotspot 620 may also include options for one or more applications. For example, options for contacts in one or more applications may include option 621 for the contact "Lisa" in chat application B1, and option 622 for the contact "Dad" in chat application B1. Options for one or more applications may include option 623 for chat application B2.
[0163] When the thumbnail 612 of the first image is dragged to the vicinity of the contact "Lisa" option 621 in the chat application B1 and released by the user following the user's drag input, the electronic device 100 can display the send window 630 as shown in FIG6C.
[0164] As shown in Figure 6C, the sending window 630 may include a thumbnail 631 of the first image, the name 632 of the contact "Lisa", an avatar 633, a sending control 634, and a cancel control 635. The sending control 634 can be used to trigger the electronic device 100 to send the first image to the contact "Lisa" in the chat application B1. The cancel control 635 can be used to trigger the electronic device 100 to cancel sending the first image.
[0165] Electronic device 100 can receive user input (e.g., a click) to the sending control 634. In response to this input, electronic device 100 can send a first image and first tag information to chat application B1. Chat application B1 of electronic device 100 can then send the first image and first tag information to electronic device 200 corresponding to the contact "Lisa" in chat application B1. Chat application B1 runs on electronic device 200, and the chat application B1 on electronic device 200 is logged into the account of contact "Lisa".
[0166] In this case, the electronic device 100 can share the first image of the product interface 330 in the shopping application A1 with the chat application B1 in other ways. Other methods can be referred to the embodiments shown in Figures 3D-3G above, and will not be described in detail here.
[0167] In one possible implementation, after the electronic device 100 shares the first image of the first interface of the first application to the second application, if the electronic device 100 displays a larger version of the first image in the second application, the electronic device 100 may display a first control. The electronic device 100 may receive and respond to user input to the first control, and display the first interface of the first application.
[0168] For example, as shown in FIG6D, after electronic device 100 shares the first image with the contact "Lisa" in chat application B1, electronic device 100 can display a conversation interface 640 of the contact "Lisa" in chat application B1 based on user input. The conversation interface 640 may include a thumbnail 641 of the first image.
[0169] Electronic device 100 can receive input from a user on a thumbnail 641 of the first image (e.g., a click). In response to this input, electronic device 100 can display an image viewing interface 650 as shown in FIG. 6E and an application opening control 656. The application opening control 656 can be used to trigger electronic device 100 to display the product interface 330 in the shopping application A1 shown in FIG. 6A.
[0170] As shown in Figure 6E, the image viewing interface 650 may include a large image 651 of the first image, a close control 652, more controls 653, a save control 654, and a share control 655. The resolution of the large image 651 of the first image is higher than the resolution of the thumbnail 641 of the first image. The close control 652 can be used to trigger the electronic device 100 to exit the image viewing interface 650 and display the dialog interface 640 shown in Figure 6D. The more controls 653 can be used to trigger the electronic device 100 to display more image viewing-related function controls. The save control 654 can be used to trigger the electronic device 100 to save the first image to the electronic device 100's image library. The electronic device 100 can receive and respond to user input (e.g., a click) to the application open control 656, displaying the product interface 330 of the shopping application A1 as shown in Figure 6A.
[0171] Optionally, the electronic device 100 may continuously display the application opening control 656 on the image viewing interface 650.
[0172] Optionally, the electronic device 100 can cancel the display of the application opening control 656 after it has been continuously displayed for a certain period of time. For example, the electronic device 100 displays the application opening control 656 in the image viewing interface 650 each time it is triggered by user input. When the continuous display time of the application opening control 656 exceeds 2 seconds, the electronic device 100 can cancel the display of the application opening control 656 in the image viewing interface 650. This prevents the application opening control 656 from obscuring the original content in the image viewing interface 650 for an extended period of time.
[0173] In one possible implementation, after the electronic device 100 shares a first image of the first interface of the first application to the second application, if the electronic device 100 displays a thumbnail of the first image in the second application, the electronic device 100 may display a first control. The electronic device 100 may receive and respond to user input to the first control, and display the first interface of the first application.
[0174] In one possible implementation, electronic device 100 shares a first image and a first tag information of the first image from a first interface in a first application to electronic device 200 corresponding to a first contact in a second application. Upon receiving the first image and the first tag information, electronic device 200 can display a second control when displaying the first image in a third interface of the second application based on user input. Electronic device 200 can receive and respond to user input on the second control, displaying the first interface of the first application. Thus, after electronic device 100 shares the first image with electronic device 200, it provides a convenient shortcut for users to return to the source interface of the first image when viewing it on electronic device 200, thereby improving the efficiency and experience of sharing data across devices and applications.
[0175] Optionally, if the electronic device 200 displays a large version of the first image in the second application, the electronic device 200 may display a second control. The electronic device 200 may receive and respond to user input to the second control, and display the first interface of the first application.
[0176] Optionally, if the electronic device 200 displays a thumbnail of the first image in the second application, the electronic device 200 may display a second control. The electronic device 200 may receive and respond to user input to the second control, and display the first interface of the first application.
[0177] In one application scenario, after electronic device 100 shares a first image from a first interface of a first application to a second application, if electronic device 100 displays a thumbnail of the first image in the second interface of the second application, electronic device 100 can receive and respond to the user's input of the thumbnail of the first image, displaying a shortcut menu and a first control. Electronic device 100 can also receive and respond to the user's input of the first control, displaying the first interface of the first application. The first control can be within the shortcut menu, or it can be outside the shortcut menu. The first image can include all or part of the content of the first interface. This provides a convenient shortcut to the source interface of the image when the user views it on electronic device 100, thereby improving the efficiency and experience of sharing data between different applications.
[0178] Figures 7A-7C show schematic diagrams of a set of electronic devices 100 provided in the embodiments of this application calling up a first control in a second application.
[0179] For example, as shown in FIG7A, after the electronic device 100 shares a first image of a first interface in a first application with a first contact (e.g., contact "Lisa") in a second application, it can display a conversation interface 380 of the first contact in the second application. The textual description of the conversation interface 380 can be referenced in the embodiment shown in FIG3J above, and will not be repeated here.
[0180] Electronic device 100 can receive input from a user on a thumbnail 381 of a first image in dialog interface 380 (e.g., long press, super long press, or press), and in response to the input, electronic device 100 can display a shortcut menu 710 as shown in FIG7B, or a shortcut menu 720 and an application open control 711 as shown in FIG7C.
[0181] As shown in Figure 7B, the shortcut menu 710 may include an application open control 711 and one or more shortcut controls. For example, the one or more shortcut controls may include a forward control, a favorite control, an edit control, a delete control, etc. The forward control can be used to trigger the electronic device 100 to forward the first image to other contacts in the second application. The favorite control can be used to trigger the electronic device 100 to favorite the first image to a specified folder in the second application. The edit control can be used to trigger the electronic device 100 to edit the first image based on user input. The delete control can be used to trigger the electronic device 100 to delete the thumbnail of the first image in the dialog interface 380.
[0182] As shown in Figure 7C, the application open control 711 can be displayed outside the shortcut menu 720; for example, the application open control 711 can be displayed at the bottom of the display screen. The shortcut menu 720 can be displayed below the thumbnail 381 of the first image. The shortcut menu can include one or more shortcut controls, such as forwarding controls, favorites controls, editing controls, and delete controls.
[0183] Electronic device 100 can receive and respond to user input (e.g., click) to the application opening control 711 shown in FIG7B or FIG7C above, and display the product interface 330 of the shopping application A1 shown in FIG3C above.
[0184] In one possible implementation, electronic device 100 shares a first image and a first tag information of the first image from a first interface in a first application to electronic device 200 corresponding to a first contact in a second application. After receiving the first image and the first tag information, electronic device 200 can, based on user input, display a thumbnail of the first image in a third interface of the second application. In response to user input regarding the thumbnail, electronic device 200 can also display a shortcut menu and a second control. Electronic device 100 can also receive and respond to user input regarding the second control, displaying the first interface of the first application. The second control may be within or outside the shortcut menu. The first image may include all or part of the content of the first interface. Thus, after electronic device 100 shares the first image with electronic device 200, it provides a convenient shortcut to return to the source interface of the first image when the user views it on electronic device 200, thereby improving the efficiency and experience of sharing data across devices and applications.
[0185] The process of displaying the shortcut menu and the second control on the electronic device 200 can be referred to the process of displaying the shortcut menu and the first control on the electronic device 100 shown in Figure 7B or Figure 7C above, and will not be repeated here.
[0186] In one application scenario, after electronic device 100 shares a first image from a first interface in a first application to a second application, if electronic device 100 displays a thumbnail of the first image in the second interface of the second application, electronic device 100 can receive and respond to the user's drag input on the thumbnail of the first image, displaying a designated hotspot. When electronic device 100 drags the thumbnail of the first image to the designated hotspot, electronic device 100 can display a first control. Electronic device 100 can receive and respond to the user's input on the first control, displaying the first interface of the first application. The first image may include all or part of the content of the first interface. This provides a convenient shortcut to the source interface of the image when the user views it on electronic device 100, thereby improving the efficiency and experience of sharing data between different applications.
[0187] Figures 8A-8D illustrate a schematic diagram of a set of electronic devices 100 provided in this application dragging a thumbnail of a first image to a designated hot area in a second application to bring up a first control.
[0188] For example, as shown in FIG8A, after the electronic device 100 shares a first image of a first interface in a first application with a first contact (e.g., contact "Lisa") in a second application, it can display a conversation interface 380 of the first contact in the second application. The textual description of the conversation interface 380 can be referenced in the embodiment shown in FIG3J above, and will not be repeated here.
[0189] The electronic device 100 can receive drag input from a user on a thumbnail 381 of the first image in the dialog interface 380. In response to the drag input, the electronic device 100 can display a hot zone 811 as shown in Figure 8B, and display an icon 812 corresponding to the thumbnail 381 of the first image at the touch position of the user's finger on the display screen. During the drag input, the corresponding icon 812 of the thumbnail 381 of the first image can follow the user's finger movement.
[0190] Optionally, the icon 812 can also be a thumbnail of the first image. The display size of the icon 812 can be smaller than that of the thumbnail 381, and the resolution of the icon 812 can also be smaller than that of the thumbnail 381.
[0191] As shown in Figure 8C, when icon 812 follows the user's finger and slides to hot zone 811, it indicates that the user has dragged the thumbnail 381 of the first image to hot zone 811, and electronic device 100 can display application open control 821 as shown in Figure 8D. Electronic device 100 can receive and respond to the user's input to application open control 821 (e.g., click), and display the product interface 330 of shopping application A1 shown in Figure 3C above.
[0192] Optionally, when icon 812 follows the user's finger as it slides to hotspot 811, electronic device 100 may also display other functional controls associated with the first image. For example, the functional controls associated with the first image may include a price comparison control 823. This price comparison control 823 can be used to trigger electronic device 100 to identify the products included in the first image and search the internet for and display product information for other products of the same style as those included in the first image. Product information includes product images, product names, product prices, product page links, etc.
[0193] In one application scenario, after electronic device 100 shares a first image from a first interface of a first application to a second application, if electronic device 100 displays a thumbnail of the first image in the second interface of the second application, electronic device 100 can receive and respond to the user's drag input on the thumbnail of the first image, displaying a designated hotspot. This designated hotspot may include a first control. When electronic device 100 detects that the user has dragged the thumbnail of the first image to the location of the first control, it can display the first interface of the first application. The first image may include all or part of the content of the first interface. This provides a convenient shortcut to the source interface of the image when the user views it on electronic device 100, thereby improving the efficiency and experience of sharing data between different applications.
[0194] Figures 9A and 9B illustrate a schematic diagram of a set of electronic devices 100 provided in an embodiment of this application dragging a thumbnail of a first image in a second application to bring up a first control in a designated hot zone.
[0195] For example, as shown in FIG9A, after the electronic device 100 shares the first image of the first interface of the first application with the first contact (e.g., contact "Lisa") in the second application, it can display the dialog interface 380 of the first contact in the second application. The textual description of the dialog interface 380 can be referenced in the embodiment shown in FIG3J above, and will not be repeated here. The electronic device 100 can receive drag input from the user on the thumbnail 381 of the first image in the dialog interface 380. In response to the drag input, an icon 912 corresponding to the thumbnail 381 of the first image is displayed at the touch position of the user's finger on the display screen, and a hot zone 911 is displayed. The hot zone 911 may include an application opening control 913. Optionally, the hot zone 911 may also include other functional controls associated with the first image. For example, the functional controls associated with the first image may include a price comparison control 914 for the same product.
[0196] Optionally, during the dragging process of the input, the corresponding icon 912 of the thumbnail 381 of the first image can follow the user's finger swipe.
[0197] Optionally, the icon 912 can also be a thumbnail of the first image. The display size of the icon 912 can be smaller than that of the thumbnail 381, and the resolution of the icon 912 can also be smaller than that of the thumbnail 381.
[0198] As shown in Figure 9B, when the icon 912 follows the user's finger to the location of the application opening control 913, the electronic device 100 can display the product interface 330 of the shopping application A1 shown in Figure 3C above.
[0199] When icon 912 follows the user's finger as it slides to the location of the price comparison control 914, the electronic device 100 identifies the product included in the first image and searches the internet for and displays product information for other products of the same style as those included in the first image. Product information includes product images, product names, product prices, and product page links.
[0200] In one application scenario, after electronic device 100 shares a first image from a first interface of a first application to a second application, electronic device 100 can display the first image on a second interface of the second application. If electronic device 100 receives input from a user activating AI recognition (e.g., a two-finger long press on the display screen), electronic device 100 can activate AI recognition to perform content recognition on the first image and display a first control. Electronic device 100 can receive and respond to user input on this first control, displaying the first interface of the first application. This provides a convenient shortcut to the source interface of the image when the user is viewing it on electronic device 100, thereby improving the efficiency and experience of sharing data between different applications.
[0201] In one application scenario, electronic device 100 can take a screenshot of the contacts interface in a first application to obtain a first image. The contacts interface may include contact information. The first image may include all or part of the content from the contacts interface. When electronic device 100 shares the first image to a second application, if electronic device 100 displays the first image in the second interface of the second application, it can display the contact information separately outside of the first image. This allows users to easily copy, dial, and perform other operations on the contact information in the first image while viewing it in the second application.
[0202] Specifically, when generating the first image, the electronic device 100 can identify and extract contact information from the contact interface. When the electronic device 100 shares the contact image to a second application, it provides both the first image and the contact information from the first image to the second application.
[0203] For example, the first application could be a contact application, such as a contact management app. The first interface could be a product interface within the first application. The second application could be an instant messaging application, such as a chat application like B1.
[0204] Figures 10A-10E illustrate a schematic diagram of a set of electronic devices 100 provided in an embodiment of this application sharing a first image of the contacts interface in a first application to a second application.
[0205] For example, as shown in FIG10A, electronic device 100 can display a contact interface 1010 of an address book application. The contact interface 1010 may include contact information and one or more controls. The contact information may include the contact's phone number 1011. Optionally, the contact information may also include one or more of the following: contact name 1012 and contact avatar 1013. The one or more controls may include any one or more of the following: dial control 1016, send SMS control 1017, edit control 1014, delete control 1015, etc.
[0206] The electronic device 100 can receive screenshot input from the user on the contact interface 1010, and in response to the screenshot input, the electronic device 100 can generate a first image and contact information based on the contact interface 1010.
[0207] As shown in Figure 10B, after generating the first image and contact information, the electronic device 100 can display a thumbnail 1021 of the first image and a sharing control 1022. The sharing control 1022 can be used to share the first image with other applications or other devices.
[0208] Electronic device 100 can receive user input (e.g., click) to the sharing control 1022 and share the first image and the contact information of the first image with the first contact in the second application in the manner shown in Figures 3D to 3G.
[0209] Optionally, the electronic device 100 can also share the first image with a first contact in the second application through other sharing methods. Other sharing methods can be found in the foregoing embodiments and will not be described in detail here.
[0210] As shown in Figure 10C, after the electronic device 100 shares the first image and the contact of the first image with the contact "Lisa" in the chat application B1, the electronic device 100 can display a chat interface 1030. The chat interface 1030 may include a thumbnail 1031 of the first image.
[0211] The electronic device 100 can receive input (e.g., a click) from a user on a thumbnail 1031 of the first image. In response to this input, the electronic device 100 can display an image viewing interface 1040 and a contact phone control 1042 as shown in FIG10D. The contact phone control 1042 can display the contact phone number from the contact information of the first image.
[0212] As shown in Figure 10D, the image viewing interface 1040 may include a large image 1041 of the first image and other functional controls related to image viewing. For a detailed description of the functional controls related to image viewing, please refer to the embodiment shown in Figure 3I above; further details will not be repeated here.
[0213] The electronic device 100 can receive user input (e.g., a click) to the contact phone number control 1042. In response to this input, the electronic device 100 can display the dialing control 1051 and / or the text message control 1052 as shown in FIG10E. The dialing control 1051 can be used to trigger the electronic device 100 to dial the contact phone number in the contact information of the first image. The text message control 1052 can be used to trigger the electronic device 100 to display a text message editing interface with the recipient's contact phone number in the contact information of the first image.
[0214] In one possible implementation, after receiving the first image and its associated contact information, the electronic device 200 can, based on user input, display the contact information separately outside the first image when displaying it in the third interface of the second application. This allows the user to easily copy, dial, or perform other operations on the contact information in the first image while viewing it in the second application, after the electronic device 100 shares the first image with the electronic device 200.
[0215] Figures 10F-10H illustrate a schematic diagram of a group of electronic devices 200 provided in an embodiment of this application receiving a first image of the contacts interface in a first application shared by an electronic device 100 through a second application.
[0216] For example, as shown in FIG10F, after receiving the first image and contact information sent by electronic device 100 through chat application B1, electronic device 200 can display the chat interface 1060 of chat application B1. The chat interface 1060 of chat application B1 can display a thumbnail 1061 of the first image sent by electronic device 100. The chat application B1 of electronic device 100 is logged into an account belonging to the contact "Alee".
[0217] The electronic device 200 can receive input from a user on a thumbnail 1061 of the first image (e.g., a click). In response to this input, the electronic device 200 can display an image viewing interface 1070 and a contact phone control 1072 as shown in FIG10G. The contact phone control 1072 can display the contact phone number from the contact information of the first image.
[0218] As shown in Figure 10H, the image viewing interface 1070 may include a large image 1071 of the first image and other functional controls related to image viewing. For a detailed description of the functional controls related to image viewing, please refer to the embodiment shown in Figure 3I above; further details will not be repeated here.
[0219] The electronic device 200 can receive user input (e.g., a click) to the contact phone number control 1072. In response to this input, the electronic device 200 can display the dialing control 1081 and / or the text message control 1082 as shown in FIG10H. The dialing control 1081 can be used to trigger the electronic device 100 to dial the contact phone number in the contact information of the first image. The text message control 1082 can be used to trigger the electronic device 100 to display a text message editing interface with the recipient's contact phone number in the contact information of the first image.
[0220] In one possible implementation, electronic device 200 can share a second image and its contact information from a fourth interface in a third application to electronic device 100 corresponding to the second contact in the fourth application. After receiving the second image and its contact information, electronic device 100 can, based on user input, display the first image in the fifth interface of the fourth application, while simultaneously displaying the contact information of the second image separately from the first image. Electronic device 100 can receive and respond to user input to the third control, displaying the fourth interface of the third application. This allows users to easily copy, dial, and perform other operations on the contact information in the second image when viewing it in the fourth application of electronic device 100 after sharing it with electronic device 200.
[0221] Optionally, the third application may be the same as or different from the first application, and the fourth application may be the same as or different from the second application.
[0222] In one application scenario, electronic device 100 can take a screenshot of a first interface in a first application to obtain a first image. The first interface may include first geographical information. The first image may include all or part of the content from the geographical interface. After electronic device 100 shares the first image to a second application, it can display a first card component on the second interface of the second application, and display the first image on the first card component. Electronic device 100 can receive and respond to user input on the first card component, opening a map application and displaying a map interface including the first geographical information. This allows users to quickly jump to the map application to view the map while viewing the first image including geographical information in the second application.
[0223] When the electronic device 100 receives a screenshot of the first interface from the user to obtain a first image, the electronic device 100 can also generate first geographic information of the first image. This first tagging information can be used to indicate the first interface described in the first application. The electronic device 100 can provide both the first image and the first tagging information to a second application.
[0224] Optionally, the first application and the map application can be the same or different.
[0225] Figures 11A-11C illustrate a schematic diagram of a set of electronic devices 100 provided in an embodiment of this application sharing a first image including geographic information from a first application to a second application.
[0226] For example, as shown in FIG11A, electronic device 100 can display map interface 1110. The map interface 1110 may include map 1111. Electronic device 100 can receive selection input from a user on location region 1112 in map 1111 (e.g., sliding a rectangle at the edge of location region 1112 with a knuckle). In response to the selection input, electronic device 100 can take a screenshot of location region 1112 in map 1111, generate a first image, and generate first geographic information based on location region 1112.
[0227] As shown in Figure 11B, after generating the first image and the first geographic information, the electronic device 100 can display a thumbnail 1113 of the first image. When the electronic device 100 receives drag input from the user on the thumbnail 1113 of the first image, the electronic device 100 can display a sharing hotspot 1120. This sharing hotspot 1120 may include options for contacts in one or more applications. Optionally, the sharing hotspot 1120 may also include options for one or more applications. For example, the contact options in one or more applications may include option 1121 for the contact "Lisa" in chat application B1, and an option for the contact "Dad" in chat application B1. The options for one or more applications may include options for chat application B2.
[0228] After the thumbnail 1113 of the first image is dragged by the user and placed near the contact "Lisa" option 1121 in the chat application B1, and then released by the user, the electronic device 100 can send the first image and the first geographical information to the chat application B1. Specifically, the chat application B1 of the electronic device 100 can send the first image and the first geographical information to the electronic device 200 corresponding to the contact "Lisa" in the chat application B1.
[0229] As shown in Figure 11C, after the electronic device 100 shares the first image with the contact "Lisa" in the chat application B1, the electronic device 100 can display a conversation interface 1130 of the contact "Lisa" in the chat application B1 based on user input. This conversation interface 1130 may include a card component 1131, on which the first image may be displayed.
[0230] Electronic device 100 can receive user input (e.g., a click) for the card component 1131, and in response to the input, electronic device 100 can open the map interface 1110 shown in Figure 11A above through a map application.
[0231] In one possible implementation, after receiving the first image and its first geographic information, the electronic device 200 can, based on user input, display a second card component in a third interface of a second application, and display the first image on the second card component. The electronic device 200 can also receive and respond to user input on the second card component, opening a map application and displaying a map interface including the first geographic information. This allows the user to quickly jump to the map application to view the map after the electronic device 100 shares the first image with the electronic device 200, facilitating quick navigation from the first image viewer in the second application to the map application.
[0232] Figures 11D-11E illustrate a schematic diagram of a set of electronic devices 200 provided in an embodiment of this application receiving a first image including geographic information from a first application shared by an electronic device 100 through a second application.
[0233] For example, as shown in FIG11D, after receiving the first image and first geographical information sent by electronic device 100 through chat application B1, electronic device 200 can display the chat interface 1140 of chat application B1. The chat interface 1140 of chat application B1 may include a card component 1141. The first image may be displayed on the card component 1141.
[0234] Electronic device 100 can receive user input (e.g., a click) for the card component 1141, and in response to the input, electronic device 100 can display a map interface 1150 as shown in FIG11E through a map application.
[0235] As shown in Figure 11E, the map interface 1150 may include a map 1151 and location markers 1152 corresponding to the first geographic information. Optionally, the map interface 1150 may also include location markers 1153 corresponding to the location of the electronic device 200.
[0236] In one application scenario, electronic device 100 can store multiple images and their tagging information. These images may contain identical or similar products. When electronic device 100 displays a large image of any one of the multiple images based on user input, a comparison control for the same product can be displayed. Electronic device 100 can receive and respond to user input for this comparison control, displaying the source interfaces of multiple images in a split-screen format. This allows users to conveniently view the source interfaces of multiple images simultaneously for comparison.
[0237] Optionally, the interval between the times when the multiple images are saved on the electronic device 100 does not exceed a duration threshold 1 (e.g., 10 minutes).
[0238] Optionally, the time interval between the time when the multiple images are saved on the electronic device 100 and the current time does not exceed a duration threshold 2 (e.g., 30 minutes).
[0239] Optionally, the multiple images can be stored in the image library of the electronic device 100 in an adjacent order.
[0240] Optionally, the multiple images can be saved in the same album.
[0241] Optionally, the multiple images can come from different applications or the same application.
[0242] Figures 12A-12E illustrate a schematic diagram of a set of electronic devices 100 provided in an embodiment of this application comparing the prices of multiple screenshots of the same product.
[0243] For example, as shown in FIG12A, electronic device 100 can display desktop 1210. Desktop 1210 may include icons of one or more applications. These icons may include icons for settings applications, app stores, gallery applications (icon 1211), chat applications B1 and B2, shopping applications A1, etc. Electronic device 100 can receive user input (e.g., a click) on the gallery application icon 1211, and in response to this input, electronic device 100 can display gallery interface 1220 as shown in FIG12B.
[0244] As shown in Figure 12B, the gallery interface 1220 may include one or more albums. One or more albums may include an all-photos album, a camera album, and a screenshot album 1221. The electronic device 100 can receive user input on the screenshot album 1221, and in response to this input, the electronic device 100 can display the screenshot album interface 1230 as shown in Figure 12C.
[0245] As shown in Figure 12C, the screenshot album interface 1230 may include images 1231, 1232, and 1233. Images 1231, 1232, and 1233 all contain the same or similar products. The electronic device 100 can receive and respond to user input on image 1231, displaying the image display interface 1240 and the price comparison control 1242 shown in Figure 12D.
[0246] As shown in Figure 12D, the image display interface 1240 may include a larger version of the image 1231 1241 and controls related to image viewing. For example, the functional controls related to image viewing may include share controls, favorite controls, edit controls, delete controls, etc.
[0247] As shown in Figure 12E, the electronic device 100 can receive and respond to the user's input (e.g., a click) to the aforementioned price comparison control 1242, and display the source interface 1251 of image 1231, the source interface 1252 of image 1232, and the source interface 1253 of image 1233 in a split-screen manner.
[0248] In one application scenario, electronic device 100 can store multiple files of the same type. When electronic device 100 displays any one of these files based on user input, a comparison control for files of the same type can be displayed. Electronic device 100 can receive and respond to the user's input regarding this comparison, displaying the content of multiple files in a split-screen format. This allows users to conveniently view and compare the contents of multiple files simultaneously.
[0249] In one application scenario, after sharing a first image from a first interface of a first application to a second application, if the electronic device 100 can display the first image on a second interface of the second application, it can also display a first control. The electronic device 100 receives user input on this first control and can then display both the second interface of the second application and the first interface of the first application in a split-screen format. This facilitates viewing the first image on the second interface of the second application, improving the efficiency and experience of sharing data between different applications.
[0250] When the electronic device 100 generates a first image from a first interface in a first application, the electronic device 100 may also generate first tag information for the first image. This first tag information can be used to indicate that the first image originated from the first interface in the first application. The electronic device 100 may provide both the first image and the first tag information to a second application.
[0251] Figures 13A-13B show schematic diagrams of a group of electronic devices 100 provided in an embodiment of this application simultaneously viewing a first image in a second application and a source interface for viewing the first image in the first application.
[0252] For example, as shown in Figure 13A, after electronic device 100 shares the first image of the product interface of shopping application A1 with the contact "Lisa" in chat application B1, electronic device 100 can display the chat interface 1310 of contact "Lisa" in chat application B1 and the application open control 1312 according to the user's input. The chat interface 1310 may include a thumbnail 1311 of the first image. Optionally, electronic device 100 may also display a price comparison control 1312 for the same product when displaying the chat interface 1310 of contact "Lisa" in chat application B1.
[0253] As shown in Figure 13B, the electronic device 100 can receive and respond to the user's input (e.g., a click) to the application opening control 1312, and display the dialog interface 1310 and the product interface 1320 of the shopping application A1 in a split screen.
[0254] Optionally, the electronic device 100 can receive and respond to user input (e.g., a click) to the aforementioned price comparison control 1313, identify the products included in the first image, and search for product interfaces of one or more other products of the same style as those included in the first image through one or more applications. The electronic device 100 can display the first interface to which the first image belongs and the product interfaces of one or more other products in a split-screen manner. The effect of displaying the first interface to which the first product belongs and the product interfaces of one or more other products in a split-screen manner can be referred to the embodiment shown in Figure 12E above, and will not be repeated here.
[0255] In one application scenario, electronic device 100 can receive user input and perform image processing on a first target image. Electronic device 100 can record the image processing parameters of the first target image. When electronic device 100 receives drag input from the user to drag the first target image onto a second target image, electronic device 100 can perform image processing on the second target image according to the image processing parameters of the first target image. These image processing parameters may include brightness, contrast, saturation, exposure, sharpness, filters, etc. This allows the image processing parameters of the first target image to be quickly applied to the second target image, saving the user the steps of processing multiple images.
[0256] The following describes the flow of a data sharing method provided in an embodiment of this application.
[0257] Figure 14 shows a flowchart of a data sharing method provided in an embodiment of this application.
[0258] As shown in Figure 14, the data sharing method may include the following steps S1401 to S1406.
[0259] S1401, The first electronic device displays the first interface of the first application.
[0260] For example, the first application can be a shopping application, such as shopping application A1. The first interface can be the product interface in the first application. The above examples are merely used to explain the embodiments of this application and should not be construed as limiting the embodiments of this application. In specific implementations, the first application can also be other types of applications.
[0261] S1402, Receive the user's first input.
[0262] S1403, In response to the first input, the first electronic device shares the first image of the first interface to the second application.
[0263] The first image may include all or part of the content of the first interface.
[0264] The first input can be a single input from the user or a combination of multiple consecutive inputs. The first input can refer to the single input or combination of inputs used in the foregoing embodiments for sharing the first image to the second application.
[0265] In one possible implementation, the first electronic device can share a full-screen screenshot of a first interface in a first application to a second application. Specific examples can be found in the embodiments shown in Figures 3A-3J above.
[0266] In one possible implementation, the first electronic device can drag and drop a first interface from a first application to a second application. Specific examples can be found in the embodiments shown in Figures 5A-5C or Figures 5D-5G, which will not be elaborated further here.
[0267] In one possible implementation, the first electronic device can share a portion of the content from the first interface of the first application to the second application. Specific examples can be found in the embodiments shown in Figures 6A-6E above, and will not be repeated here.
[0268] S1404, The first electronic device displays a second interface and a first control for the second application.
[0269] For example, the second application can be an instant messaging application, such as the chat application B1. The first control can be the application opening control mentioned in the above embodiments. The above examples are merely for explaining the embodiments of this application and should not be construed as limiting the embodiments of this application. In specific implementations, the second application can also be other types of applications.
[0270] In one possible implementation, a larger version of the first image is displayed on the second interface. Before the first electronic device displays the second interface of the second application, the first electronic device displays a thumbnail of the first image, wherein the resolution of the larger version of the first image is greater than that of the thumbnail; the first electronic device receives a third input from the user regarding the thumbnail of the first image; the first electronic device displays the second interface of the second application, specifically including: in response to the third input, the first electronic device displays the second interface of the second application. In this way, after sharing the first interface image of the first application to the second application, when viewing the larger version of the first image in full screen in the second application, a shortcut to return to the first interface can be provided, allowing direct access to the first interface of the first application. Specific examples can be found in the embodiments shown in Figures 3H-3I above, and will not be repeated here.
[0271] In one possible implementation, a thumbnail of the first image is displayed on the second interface. When the first electronic device displays the second interface, it also displays the first control. This allows the user to return to the first interface after sharing the first interface image from the first application to the second application. When the user clicks on the thumbnail of the first image in the second application to view a larger version of the first image, a first control is provided, allowing direct access to the first interface of the first application. Specific examples can be found in the embodiment shown in Figure 3J above, and will not be repeated here.
[0272] In one possible implementation, when the first electronic device displays the second interface, it receives a fourth input from the user regarding a thumbnail of the first image on the second interface. In response to the fourth input, the first electronic device displays a first shortcut menu, wherein the first shortcut menu includes one or more controls, and the one or more controls include the first control. Thus, when the thumbnail of the first image is displayed in the second application, if the user long-presses the thumbnail of the first image to bring up the shortcut menu, a first control to return to the first interface is displayed in the shortcut menu. When the first control is accessed, the user is directly taken to the first interface of the first application. For example, the first shortcut menu can be the shortcut menu 710 shown in Figure 7B above. Specific examples can be found in the embodiments shown in Figures 7A and 7B above, and will not be repeated here.
[0273] In one possible implementation, when the first electronic device displays the second interface, it receives a fourth input from the user regarding a thumbnail of the first image in the second interface. In response to this fourth input, the first electronic device displays a second shortcut menu and a first control, wherein the second shortcut menu includes one or more controls. Thus, when the thumbnail of the first image is displayed in the second application, if the user long-presses the thumbnail to bring up the shortcut menu, a first control to return to the first interface is displayed outside the shortcut menu. Using the first control allows direct access to the first interface of the first application. For example, the second shortcut menu can be the shortcut menu 720 shown in Figure 7C above. Specific examples can be found in the embodiments shown in Figures 7A and 7C above, and will not be repeated here.
[0274] In one possible implementation, when the first electronic device displays the second interface, it receives a first drag input from the user regarding a thumbnail of the first image on the second interface; in response to the first drag input, the first electronic device displays a first hotspot; after the first drag input drags the thumbnail of the first image to the first hotspot, the first electronic device displays the first control. Thus, in the second application, the first control can be accessed by dragging the thumbnail of the first image to the hotspot, allowing the user to quickly access the first control while viewing the first image. For example, the first hotspot can be hotspot 811 as shown in Figure 8B. Specific examples can be found in the embodiments shown in Figures 8A-8D, which will not be repeated here.
[0275] In one possible implementation, when the first electronic device displays the second interface, it receives a second drag input from the user regarding a thumbnail of the first image in the second interface. In response to this second drag input, the first electronic device displays a second hotspot, which includes the first control. The second input is a release operation after dragging the thumbnail of the first image to the location of the first control. This allows the user to quickly access the first control while viewing the first image by dragging the thumbnail of the first image in the second application, and return to the first interface in the first application when the user releases the drag near the first control. For example, the second hotspot can be hotspot 911 as shown in Figure 9A. Specific examples can be found in the embodiments shown in Figures 9A and 9B, which will not be repeated here.
[0276] In one possible implementation, in response to the first input, the first electronic device generates first tag information for the first image, the first tag information indicating that the first image originates from the first interface within the first application; the first electronic device shares the first tag information to the second application; the first electronic device displays the first interface in response to the second input, specifically including: in response to the second input, the second application of the first electronic device launches the first application and displays the first interface based on the first tag information. This allows the second application to identify the first application and the first interface from which the first image originates.
[0277] In one possible implementation, the first electronic device can share the first image and the first tag information to a first contact within the second application. This allows other devices to identify the first application and the first interface from which the first image originates.
[0278] In one possible implementation, after receiving the first image and the first tag information, the second electronic device displays a third interface of the second application and the second control, the third interface including the first image; the second electronic device receives a fifth input from the user to the second control; in response to the fifth input, the second electronic device displays the first interface of the first application. This allows for a convenient shortcut to return to the source interface of the first image when the user views it on the first electronic device after the first electronic device shares the first image with another electronic device, thereby improving the efficiency and experience of sharing data across devices and applications. Specific examples can be found in the embodiments shown in Figures 4A-4C above or other embodiments, which will not be elaborated upon here.
[0279] In one possible implementation, a first electronic device receives a second image and second tag information sent by the second electronic device through a fourth application. The second tag information indicates that the source of the second image is a fourth interface within the third application. The first electronic device displays a fifth interface and a third control of the fourth application, wherein the fifth interface includes the second image. The first electronic device receives a sixth input from the user to the third control. In response to the sixth input, the first electronic device displays the fourth interface of the third application. Thus, after the first electronic device receives the third image shared by the second electronic device, it provides a convenient shortcut to the source interface of the third image when the user views it on the first electronic device, thereby improving the efficiency and experience of sharing data across devices and applications.
[0280] The third application may be the same as or different from the first application, and the fourth application may be the same as or different from the second application.
[0281] S1405, The first electronic device receives a second input from the user to the first control.
[0282] S1406. In response to the second input, the first electronic device displays the first interface.
[0283] The data sharing method provided in this application can provide a shortcut to return to the first interface when the user views the image in the second application after sharing an image from a first interface in a first application on a first electronic device to a second application, thereby improving the efficiency and experience of sharing data between different applications.
[0284] In this embodiment of the application, the first electronic device can be electronic device 100, and the second electronic device can be electronic device 200.
[0285] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.
[0286] This application also provides a computer program product, including a computing program, which, when run on a computer, enables the computer to perform the steps in the various method embodiments described above.
[0287] This application also provides a chip system, which includes a processing circuit interface circuit. The interface circuit receives code instructions and transmits them to the processing circuit. The processing circuit executes the code instructions to enable the chip system to implement the steps of any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.
[0288] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A data sharing method, characterized in that, include: The first electronic device displays the first interface of the first application; The first electronic device receives the user's first input; In response to the first input, the first electronic device shares the first image of the first interface to the second application; The first electronic device displays a second interface of the second application and the first control, wherein the second interface includes the first image; The first electronic device receives a second input from the user to the first control; In response to the second input, the first electronic device displays the first interface.
2. The method according to claim 1, characterized in that, The first image includes all or part of the content in the first interface.
3. The method according to claim 1, characterized in that, The second interface displays a larger version of the first image; Before the first electronic device displays the second interface of the second application, the method further includes: The first electronic device displays a thumbnail of the first image, wherein the resolution of the larger image of the first image is greater than that of the thumbnail of the first image; The first electronic device receives a third input from the user regarding a thumbnail of the first image; The first electronic device displays a second interface of the second application, specifically including: In response to the third input, the first electronic device displays the second interface of the second application.
4. The method according to claim 1, characterized in that, The second interface displays a thumbnail of the first image.
5. The method according to claim 4, characterized in that, The first electronic device displays a second interface and a first control of the second application, specifically including: When the first electronic device displays the second interface, it displays the first control.
6. The method according to claim 4, characterized in that, The first electronic device displays a second interface and a first control of the second application, specifically including: When the first electronic device displays the second interface, it receives a fourth input from the user regarding a thumbnail of the first image in the second interface; In response to the fourth input, the first electronic device displays a first shortcut menu, wherein the first shortcut menu includes one or more controls, the one or more controls including the first control.
7. The method according to claim 4, characterized in that, The first electronic device displays a second interface and a first control of the second application, specifically including: When the first electronic device displays the second interface, it receives a fourth input from the user regarding a thumbnail of the first image in the second interface; In response to the fourth input, the first electronic device displays a second shortcut menu and the first control, wherein the second shortcut menu includes one or more controls.
8. The method according to claim 4, characterized in that, The first electronic device displays a second interface and a first control of the second application, specifically including: When the first electronic device displays the second interface, it receives a first drag input from the user for a thumbnail of the first image in the second interface; In response to the first drag input, the first electronic device displays a first hot zone; When the first drag input drags the thumbnail of the first image to the first hot area, the first electronic device displays the first control.
9. The method according to claim 4, characterized in that, The first electronic device displays a second interface and a first control of the second application, specifically including: When the first electronic device displays the second interface, it receives a second drag input from the user regarding a thumbnail of the first image in the second interface; In response to the second drag input, the first electronic device displays a second hot zone, the second hot zone including the first control; wherein, the second input is a release operation after the second drag input drags a thumbnail of the first image to the position of the first control.
10. The method according to any one of claims 1-9, characterized in that, The method further includes: In response to the first input, the first electronic device generates first tag information for the first image, the first tag information being used to indicate that the first image originates from the first interface in the first application; The first electronic device shares the first tagging information with the second application; In response to the second input, the first electronic device displays the first interface, specifically including: In response to the second input, the second application of the first electronic device launches the first application and displays the first interface based on the first tag information.
11. The method according to claim 10, characterized in that, The first electronic device shares the first image of the first interface to the second application, specifically including: The first electronic device shares the first image and the first tag information with a first contact in the second application; The method further includes: The first electronic device sends the first image and the first tag information to the second electronic device corresponding to the first contact.
12. The method according to claim 11, characterized in that, The method further includes: After receiving the first image and the first tagging information, the second electronic device displays the third interface of the second application and the second control, wherein the third interface includes the first image; The second electronic device receives a fifth input from the user to the second control; In response to the fifth input, the second electronic device displays the first interface of the first application.
13. The method according to any one of claims 1-12, characterized in that, The method further includes: The first electronic device receives a second image and second tag information sent by the second electronic device through a fourth application, wherein the second tag information is used to indicate the source of the second image and the fourth interface in the third application; The first electronic device displays a fifth interface and a third control of the fourth application, wherein the fifth interface includes the second image; The first electronic device receives a sixth input from the user to the third control; In response to the sixth input, the first electronic device displays the fourth interface of the third application.
14. The method according to claim 13, characterized in that, The third application may be the same as or different from the first application, and the fourth application may be the same as or different from the second application.
15. An electronic device, characterized in that, include: One or more processors and one or more memories, wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store a computer program that, when the one or more processors execute the computer program, performs the data sharing method as described in any one of claims 1-14.
16. A computer-readable storage medium, characterized in that, The system contains a computer program that, when executed by a processor, implements the data sharing method as described in any one of claims 1-14.
17. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the data sharing method as described in any one of claims 1-14.
18. A chip system, characterized in that, It includes a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to execute the code instructions to perform the data sharing method as described in any one of claims 1-14.