Data transmission method and system and electronic equipment
By achieving application continuation in multi-device interconnection scenarios, and using servers to match target applications of the same application series and connection type, the problem of low data transmission efficiency is solved, the user experience is improved and the seamless flow of tasks is achieved.
Patent Information
- Application Number
- CN202411998191.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-05-27
AI Technical Summary
In the multi-device interconnection scenario, it is difficult for the existing technology to effectively optimize the efficiency of data transmission, affecting the user experience.
By enabling application continuation between electronic devices, a server is used to determine the same application series as the source application and has the same type of connection, thereby achieving seamless flow of tasks and efficient transmission of data.
Optimizes the efficiency of data transmission, improves the user experience when switching tasks between multiple devices, and ensures seamless switching of application tasks between multiple devices.
Smart Images

Figure CN120050268A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202411295333.1, and the filing date of the original application is September 13, 2024. The entire content of the original application is incorporated herein by reference. Technical Field
[0002] This application relates to the field of electronic devices, and more particularly, to a method, system, and electronic device for data transmission. Background Art
[0003] With the development of science and technology, data such as application programs, pictures, and videos can be transferred in a multi-device interconnection scenario. For example, an application program can be seamlessly transferred between multiple devices, enabling an application task in progress on one device to be transferred to another device for continued execution. It can be seen that users can seamlessly switch the application program to a more suitable device according to the actual situation to continue processing the current task, so as to obtain a better user experience. Before data is transmitted between multiple devices, matching needs to be completed, and the efficiency of data matching will affect the efficiency of data transmission.
[0004] Therefore, how to optimize the efficiency of data transmission and further improve the user experience is an urgent problem to be solved at present. Summary of the Invention
[0005] This application provides a data transmission method, system, and electronic device. This method can optimize the efficiency of data transmission and further improve the user experience.
[0006] In a first aspect, a data transmission method is provided. This method is applied to a first electronic device, which includes at least one application program. The first electronic device is interconnected with a second electronic device. The method includes: receiving first information from the second electronic device, where the first information includes information about a first application program installed on the second electronic device; sending a first request message to a server according to the information about the first application program, where the first request message is used to request to query application programs related to the first application program; determining a first target application program in the first electronic device according to first feedback information from the server, where the first target application program belongs to the at least one application program; starting the first target application program; and executing a task related to the first application program in the first target application program.
[0007] It should be noted that the first electronic device can be understood as the target device, the second electronic device can be understood as the source device, the first electronic device and the second electronic device support application continuation, and the first application program and the first target application program support application continuation. The first application program can be understood as the source application program.
[0008] Based on the above solution, in the application continuation scenario, the target device can determine, through the server, an application program that belongs to the same application series as the source application program, and determine that the application program includes an ability with the same continuation type as the ability of the source application program, so as to determine that the application program is the target application program, realize the seamless transfer of tasks from the first application program to the target application program, optimize the efficiency of data transmission, and thus improve the user experience.
[0009] Combined with the first aspect, in some implementation manners of the first aspect, sending the first query request to the server according to the information of the first application program includes: when the information of the first application program is different from the information of the at least one application program, sending the first request information to the server.
[0010] It should be noted that the trigger condition for the first electronic device to request the server to query the application program that belongs to the same series as the first application program is that there is no application of the same application in the first electronic device. For example, there is no application program with the same package name as the first application program in the first electronic device.
[0011] Combined with the first aspect, in some implementation manners of the first aspect, the first information further includes the continuation type of the first application program, and the method further includes: determining the first target application program according to the continuation type of the first application program, where the continuation type of the first target application program is the same as the continuation type of the first application program.
[0012] It should be noted that in the different-application continuation scenario, the target application program needs to meet two preset conditions: the target application program and the source application program belong to the same application series, and the target application program includes an ability with the same continuation type as the ability of the source application program. The first electronic device determines, through the server, an application program that belongs to the same application series as the first application program, and the first electronic device itself can determine whether there is a function in the application program with the same continuation type as the function in the first application program.
[0013] Based on the above solution, on the one hand, the source application program and the target application program belong to the same application series, which can ensure that there is a certain association between the application programs that realize application continuation, and avoid problems such as drainage caused by irrelevant application programs pulling each other up. On the other hand, the application series and continuation type are configured on the server side. When a new application program is developed, if you want the new application program to support application continuation with the previously launched application programs, the developer can configure the same application series and continuation type for the new application program on the server side without updating the version of the previously launched application programs.
[0014] In combination with the first aspect, in some implementations of the first aspect, before performing a task related to the first application in the first target application, the method further includes: distinctively displaying a first icon corresponding to the first target application on the first electronic device; and starting the first target application in response to an operation on the first icon.
[0015] It should be noted that the start of the first target application is triggered through user interaction.
[0016] It should be noted that the specific manner of distinctively displaying the first icon corresponding to the first target application may be to distinctively display it in the form of a corner mark near the first target application; it may also be to distinctively display the first icon corresponding to the first target application through enhanced display methods such as highlighting and bolding; it may also be to magnify the display of the first icon corresponding to the first target application, etc. The present application does not limit the specific manner of distinctively displaying the first icon of the target application.
[0017] In combination with the first aspect, in some implementations of the first aspect, the method further includes: sending a second request message to the second electronic device, where the second request message is used to request data related to the task of the first application; and receiving a second feedback message from the second electronic device, where the second feedback message includes data related to the task of the first application.
[0018] In combination with the first aspect, in some implementations of the first aspect, the first information further includes data related to the task of the first application.
[0019] It should be noted that after the first electronic device obtains data related to the task of the first application from the second electronic device, it can perform the task related to the first application. The first electronic device can actively request data related to the task of the first application from the second electronic device, or passively receive data related to the task of the first application.
[0020] In combination with the first aspect, in some implementations of the first aspect, the task related to the first application is a video type task, and the data related to the task of the first application includes video progress and video resources; or the task related to the first application is a text type task, and the data related to the task of the first application includes text content and text editing progress; or the task related to the first application is an image type task, and the data related to the task of the first application includes image content and image editing progress; or the task related to the first application is an audio type task, and the data related to the task of the first application includes audio resources and audio progress.
[0021] In combination with the first aspect, in certain implementations of the first aspect, the first application includes a first configuration item, and the first target application includes a second configuration item. The first configuration item is used to indicate the continuation type of the first application, and the second configuration item is used to indicate the continuation type of the first target application.
[0022] It should be noted that the continuation type of an application can be understood as the continuation type of the ability in the application. Developers can configure the continuation type of the ability of the application through the "continueType" configuration item on the server side.
[0023] Exemplarily, the first configuration item is the "continueType" configuration item configured for the ability of the first application, and the second configuration item is the "continueType" configuration item configured for the ability of the first target application. The specific content filled in the "continueType" configuration item can be a string. When the value of the first configuration item is the same as the value of the second configuration item, it can be considered that the continuation type of the ability of the first application is the same as the continuation type of the ability of the first target application.
[0024] In combination with the first aspect, in certain implementations of the first aspect, the first configuration item is obtained from the installation package of the first application, or the first configuration item is obtained from the server; the second configuration item is obtained from the installation package of the first target application, or the second configuration item is obtained from the server.
[0025] In combination with the first aspect, in certain implementations of the first aspect, the first application and the first target application belong to a first application series, and the first application series is created by the developer on the server.
[0026] In combination with the first aspect, in certain implementations of the first aspect, the information of the first application includes one of the following: the package name of the first application, the identifier of the first application.
[0027] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: receiving second information from the second electronic device, the second information including information of a second application installed on the second electronic device; determining a second target application in the at least one application that is the same as the information of the second application; starting the second target application; and executing a task related to the second application in the second target application.
[0028] It should be noted that the second application can be understood as the source application, which supports application continuation. When the same application as the second application is included in the first electronic device, this application can be determined as the target application, and this application can be directly launched to execute tasks related to the second application.
[0029] In a second aspect, a data transmission method is provided. This method is applied to a second electronic device, which is interconnected with the first electronic device. The method includes: in response to the first application running in the foreground, sending first information, where the first information includes information about the first application and the continuation type of the first application, and the first application is installed on the second electronic device; sending data of a task related to the first application to the first electronic device, and the task related to the first application is executed in a first target application in the first electronic device; where the first application and the first target application belong to the same application series, and the continuation type of the first application and the first target application is the same.
[0030] Based on the above solution, when the source application is running in the foreground, the source device can send the information of the source application and the continuation type of the ability of the source application to the target device, so as to confirm the target application on the target device. The target application and the source application belong to the same application series, and the target application includes an ability with the same continuation type as the ability of the source application, realizing seamless task transfer from the first application to the target application, optimizing the efficiency of data transmission, and thus improving the user experience.
[0031] In combination with the second aspect, in some implementation manners of the second aspect, sending the data of the task related to the first application to the first electronic device includes: receiving a second request message from the first electronic device, where the second request message is used to request the data of the task related to the first application; sending a second feedback message to the first electronic device, where the second feedback message includes the data of the task related to the first application.
[0032] In combination with the second aspect, in some implementation manners of the second aspect, the first information further includes the data of the task related to the first application.
[0033] It should be noted that after the first electronic device obtains the data of the task related to the first application from the second electronic device, it can execute the task related to the first application. The first electronic device can actively request the data of the task related to the first application from the second electronic device, or passively receive the data of the task related to the first application.
[0034] In combination with the second aspect, in some implementation manners of the second aspect, the task related to the first application is a video type task, and the data of the task related to the first application includes video progress and video resources; or the task related to the first application is a text type task, and the data of the task related to the first application includes text content and text editing progress; or the task related to the first application is an image type task, and the data of the task related to the first application includes image content and image editing progress; or the task related to the first application is an audio type task, and the data of the task related to the first application includes audio resources and audio progress.
[0035] In combination with the second aspect, in some implementation manners of the second aspect, the first application includes a first configuration item, and the first target application includes a second configuration item. The first configuration item is used to indicate the continuation type of the first application, and the second configuration item is used to indicate the continuation type of the first target application.
[0036] It should be noted that developers can configure the continuation type of the ability of the application through the "continueType" configuration item on the server side.
[0037] Exemplarily, the first configuration item is the "continueType" configuration item configured for the ability of the first application, and the second configuration item is the "continueType" configuration item configured for the ability of the first target application. The specific content filled in the "continueType" configuration item can be a string. When the value of the first configuration item is the same as the value of the second configuration item, it can be considered that the continuation type of the ability of the first application is the same as the continuation type of the ability of the first target application.
[0038] In combination with the second aspect, in some implementation manners of the second aspect, the first configuration item is obtained from the installation package of the first application, or the first configuration item is obtained from the server; the second configuration item is obtained from the installation package of the first target application, or the second configuration item is obtained from the server.
[0039] In combination with the second aspect, in some implementation manners of the second aspect, the first application and the first target application belong to a first application series, and the first application series is created by the developer on the server.
[0040] In combination with the second aspect, in some implementation manners of the second aspect, the information of the first application includes one of the following: the package name of the first application, the identifier of the first application.
[0041] In combination with the second aspect, in some implementations of the second aspect, the method further includes: in response to the second application running in the foreground, sending second information, where the second information includes information about the second application, and the second application is installed on the second electronic device; sending data of a task related to the second application to the first electronic device, and the task related to the second application is executed by a second target application in the first electronic device; where the information about the second application is the same as the information about the second target application.
[0042] It should be noted that the second application can be understood as the source application, which supports application continuation. When the first electronic device includes an application that is the same as the second application, that application can be determined as the target application, and that application can be directly launched, and that application can execute a task related to the second application.
[0043] In a third aspect, a system is provided, and the system includes a first electronic device, a second electronic device, and a server. The first electronic device is interconnected with the second electronic device. The first electronic device includes at least one application, and the second electronic device includes a first application; the second electronic device is configured to, in response to the first application running in the foreground, send first information, where the first information includes information about the first application; the first electronic device is configured to receive the first information from the second electronic device; and is further configured to send a first request message to the server according to the information about the first application, where the first request message is used to request to query an application related to the first application; and is further configured to determine a first target application in the first electronic device according to a first feedback message from the server, where the first target application belongs to the at least one application; and is further configured to start the first target application; and is further configured to execute a task related to the first application in the first target application.
[0044] In combination with the third aspect, in some implementations of the third aspect, the first electronic device is specifically configured to send the first request message to the server when the information about the first application is different from the information about the at least one application.
[0045] In combination with the third aspect, in some implementations of the third aspect, the first information further includes a continuation type of the first application, and the first electronic device is further configured to determine the first target application according to the continuation type of the first application, where the continuation of the first target application is the same as the continuation type of the first application.
[0046] In combination with the third aspect, in some implementations of the third aspect, the first electronic device is further configured to distinguish and display a first icon corresponding to the first target application on the first electronic device; and is further configured to start the first target application in response to an operation on the first icon.
[0047] In combination with the third aspect, in some implementations of the third aspect, the first electronic device is configured to send second request information to the second electronic device, where the second request information is used to request data of a task related to the first application; and is further configured to receive second feedback information from the second electronic device, where the second feedback information includes data of a task related to the first application.
[0048] In combination with the third aspect, in some implementations of the third aspect, the first information further includes data of a task related to the first application.
[0049] In combination with the third aspect, in some implementations of the third aspect, the task related to the first application is a video type task, and the data of the task related to the first application includes video progress and video resources; or the task related to the first application is a text type task, and the data of the task related to the first application includes text content and text editing progress; or the task related to the first application is an image type task, and the data of the task related to the first application includes image content and image editing progress; or the task related to the first application is an audio type task, and the data of the task related to the first application includes audio resources and audio progress.
[0050] In combination with the third aspect, in some implementations of the third aspect, the first application includes a first configuration item, and the first target application includes a second configuration item. The first configuration item is used to indicate the continuation type of the first application, and the second configuration item is used to indicate the continuation type of the first target application.
[0051] In combination with the third aspect, in some implementations of the third aspect, the first configuration item is obtained from the installation package of the first application, or the first configuration item is obtained from the server; the second configuration item is obtained from the installation package of the first target application, or the second configuration item is obtained from the server.
[0052] In combination with the third aspect, in some implementations of the third aspect, the first application and the first target application belong to a first application series, and the first application series is created by a developer on the server.
[0053] In combination with the third aspect, in some implementation manners of the third aspect, the information of the first application includes one of the following: the package name of the first application, the identifier of the first application.
[0054] In combination with the third aspect, in some implementation manners of the third aspect, the second electronic device is further configured to send second information in response to the second application running in the foreground, where the second information includes the information of the second application installed on the second electronic device; the first electronic device is further configured to receive the second information from the second electronic device; is further configured to determine a second target application in the at least one application that is the same as the information of the second application; is further configured to start the second application; is further configured to receive data of a task related to the second application from the second electronic device; and is further configured to execute the task related to the second application in the second target application.
[0055] In a fourth aspect, an electronic device is provided, including: one or more processors; one or more memories; the one or more memories store one or more computer programs, and the one or more computer programs include instructions that, when executed by the one or more processors, cause the electronic device to execute the methods in the first aspect, the second aspect, and any possible implementation manners thereof as described above, or execute the methods in the third aspect, the fourth aspect, and any possible implementation manners thereof as described above.
[0056] In a fifth aspect, a data transmission device is provided, including: a processor coupled to a memory, where the memory is used to store a computer program, and the processor is used to run the computer program so that the data transmission device executes the methods in the first aspect and any possible implementation manners thereof as described above, or executes the methods in the second aspect and any possible implementation manners thereof as described above, or executes the methods in the third aspect and any possible implementation manners thereof as described above, or executes the methods in the fourth aspect and any possible implementation manners thereof as described above.
[0057] In combination with the fifth aspect, in some implementation manners of the fourth aspect, it further includes one or more of the memory and a transceiver, and the transceiver is used to receive signals and / or send signals.
[0058] In a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a computer, it causes the computer to implement the methods in the first aspect and any possible implementation manners thereof as described above, or implement the methods in the second aspect and any possible implementation manners thereof as described above, or implement the methods in the third aspect and any possible implementation manners thereof as described above, or implement the methods in the fourth aspect and any possible implementation manners thereof as described above.
[0059] In a seventh aspect, there is provided a computer program product comprising instructions which, when the computer program product runs on a computer, cause the computer to execute the method in the first aspect and any of its possible implementations as described above, or execute the method in the second aspect and any of its possible implementations as described above, or execute the method in the third aspect and any of its possible implementations as described above, or execute the method in the fourth aspect and any of its possible implementations as described above.
[0060] In an eighth aspect, there is provided a chip which includes a processor and a data interface. The processor reads instructions stored in a memory through the data interface to execute the method in the first aspect and any of its possible implementations as described above, or execute the method in the second aspect and any of its possible implementations as described above, or execute the method in the third aspect and any of its possible implementations as described above, or execute the method in the fourth aspect and any of its possible implementations as described above.
[0061] In combination with the eighth aspect, in a possible implementation, the processor is coupled to the memory through an interface.
[0062] In combination with the eighth aspect, in a possible implementation, the chip system further includes a memory which stores a computer program or computer instructions. Description of the Drawings
[0063] Figure 1 is a schematic structural diagram of an electronic device.
[0064] Figure 2 is a software structural block diagram of the electronic device provided by an embodiment of the present application.
[0065] Figure 3 is a schematic diagram of a system architecture provided by an embodiment of the present application.
[0066] Figure 4 is a schematic flow chart of a method for data transmission provided by an embodiment of the present application.
[0067] Figure 5 is a schematic flow chart of a method for data transmission provided by an embodiment of the present application.
[0068] Figure 6 is a group of GUIs provided by an embodiment of the present application.
[0069] Figure 7 is a group of GUIs provided by an embodiment of the present application.
[0070] Figure 8 is a schematic flow chart of a method for data transmission provided by an embodiment of the present application.
[0071] Figure 9 This is a schematic diagram of the structure of a data transmission device provided by an embodiment of the present application.
[0072] Figure 10 This is a block diagram of an electronic device provided by an embodiment of the present application. Specific embodiments
[0073] Next, the technical solutions in the present application will be described with reference to the accompanying drawings.
[0074] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification and claims of the present application, the singular forms "a", "an", "the", "above", "said", "this" are also intended to include, for example, the expression "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one, two or more than two. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0075] The reference to "one embodiment" or "some embodiments" etc. described in this specification means that a specific feature, structure or characteristic described in connection with that embodiment is included in one or more embodiments of the present application. Thus, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments" etc. that appear in different places in this specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0076] The following describes embodiments of an electronic device, a user interface for such an electronic device, and for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that further includes other functions such as a personal digital assistant and / or music player functions, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication functions (such as a smart watch), etc. Exemplary embodiments of the portable electronic device include, but are not limited to, those equipped with A portable electronic device with another operating system. The above portable electronic device may also be other portable electronic devices, such as a laptop computer. It should also be understood that in some other embodiments, the above electronic device may not be a portable electronic device, but a desktop computer. In some other embodiments, the electronic device may be an instrument for measurement, such as an oscilloscope.
[0077] Exemplarily, Figure 1 FIG. shows a schematic structural diagram of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0078] It can be understood that the structure schematically shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In some other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0079] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), etc.
[0080] A memory may also be provided in the processor 110 for storing instructions and data.
[0081] The wireless communication function of the electronic device 100 may be implemented by the antenna 1, antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0082] The mobile communication module 150 may provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 100.
[0083] The wireless communication module 160 may provide solutions for wireless communications applied to 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), infrared technology (IR), etc.
[0084] The electronic device 100 implements the display function through the GPU, the display screen 194, and the application processor, etc. 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 for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0085] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel may adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc.
[0086] The electronic device 100 can implement the shooting function through the ISP, camera 193, video codec, GPU, display screen 194, application processor, etc.
[0087] The camera 193 is used to capture still images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element.
[0088] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0089] The video codec is used to compress or decompress digital videos.
[0090] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
[0091] The internal memory 121 can be used to store computer-executable program code, and the executable program code includes instructions.
[0092] The electronic device 100 can implement the audio function through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor, etc. For example, music playback, recording, etc.
[0093] The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert analog audio input into a digital audio signal.
[0094] The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal.
[0095] The receiver 170B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal.
[0096] The microphone 170C, also known as the "microphone", "transmitter", is used to convert a sound signal into an electrical signal.
[0097] The pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the alarm application icon, the instruction to create a new alarm is executed.
[0098] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access the application lock, take fingerprint photos, answer calls with fingerprints, etc.
[0099] The touch sensor 180K, also known as the "touch panel". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also known as the "touch screen". The touch sensor 180K is used to detect touch operations acting thereon or nearby. 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 the display screen 194.
[0100] Figure 2 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom are the application layer, the application framework layer, the system library, and the kernel layer. The application layer may include a series of application packages.
[0101] As Figure 2 shown, the application layer may include a camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include a gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0102] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer may include some predefined functions.
[0103] As Figure 2 shown, the application framework layer may include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, etc.
[0104] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data, and make this data accessible to applications. The data may include videos, images, audio, dialed and answered calls, browsing history and bookmarks, phone books, etc.
[0105] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views.
[0106] The telephone manager is used to provide the communication functions of the electronic device 100. For example, the management of call status (including answering, hanging up, etc.).
[0107] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, and so on.
[0108] The notification manager enables applications to display notification information in the status bar. It can be used to convey message types of notifications, which can disappear automatically after a short stay without user interaction. For example, the notification manager is used to inform that the download is completed, message prompts, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as the notification of a background-running application, and can also be a notification that appears on the screen in the form of a dialog window. For example, prompt text information in the status bar, emit a prompt sound, the electronic device vibrates, the indicator light flashes, etc.
[0109] Android runtime includes core libraries and a virtual machine. Android runtime is responsible for the calls and management of the Android system.
[0110] The core libraries contain two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core libraries of Android.
[0111] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as the management of object life cycles, stack management, thread management, security and exception management, and garbage collection.
[0112] The system libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (such as: OpenGL ES), 2D graphics engines (such as: SGL), etc.
[0113] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0114] The media libraries support the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media libraries can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0115] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0116] The 2D graphics engine is a drawing engine for 2D drawing.
[0117] In addition, the system library may also include a status monitoring service module, etc., such as a physical state recognition module for analyzing and recognizing user gestures; a sensor service module for monitoring sensor data uploaded by various sensors in the hardware layer to determine the physical state of the electronic device 100.
[0118] The kernel layer is the layer between the hardware and the software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0119] The hardware layer may include various sensors, such as Figure 1 the various sensors introduced in
[0120] Combined with the above Figure 1 and Figure 2 the electronic devices introduced, in the embodiments of the present application, the electronic device may be, for example, a device that can carry application programs such as a mobile phone terminal, a tablet computer, a personal computer, a smart screen, etc.
[0121] First, introduce the related technical terms involved in the present application:
[0122] Application continuation
[0123] Application continuation means that in a multi-device scenario, the user can seamlessly transfer the application tasks being performed on one device to another device for continued execution, and this function is usually based on interconnected multi-devices. For example, in the HarmonyOS system, the application continuation function allows users to migrate application programs between different devices, enabling the user to continue performing the previous operations on the migrated device.
[0124] For example, the user edits text in an editing application on the mobile phone terminal, and this editing application switches to the personal computer through application continuation, enabling the user to continue editing the text on the personal computer. Another example is that the user plays Video 1 in a video application on the mobile phone terminal, and this video application switches to the smart screen through application continuation, enabling the user to continue watching Video 1 on the smart screen.
[0125] Application continuation may include same-application continuation and different-application continuation. Application continuation actually refers to the ability continuation in the application program.
[0126] Same-application continuation
[0127] Same-application connection means that the user uses the same application on the source device (source device) and the target device (sink device). For example, the user edits a document in Application 1 on the mobile phone terminal. Through application connection, the user can continue to edit the document in the same Application 1 on the tablet computer. In the scenario of same-application connection, the user uses the same application on different devices. The Application 1 on the above mobile phone terminal can be understood as the source application, and the Application 1 on the tablet computer can be understood as the target application. The source application and the target application support application connection.
[0128] Exemplarily, taking a dual-end electronic device as an example, the source device is a mobile phone terminal, and the target device is a tablet computer. The package names (or the identifiers of the applications) of a certain application on the mobile phone terminal and the tablet computer are the same. The application connection performed between the mobile phone terminal and the tablet computer for this application belongs to same-application connection.
[0129] It can be understood that multiple applications with the same package name are mutual same-applications.
[0130] For example, the Huawei Video application on the mobile phone terminal and the Huawei Video application on the tablet computer can be same-applications.
[0131] To achieve same-application connection, it is necessary to match same-applications. The matching rules for same-applications will be specifically introduced later.
[0132] Different-application connection
[0133] Different-application connection means that the user does not use the same application on the source device and the target device. Among them, the source device can be understood as the device that triggers the application connection function, and the target device can be understood as the device that receives the application connection function. The user can continue to process the unprocessed data on the source device through application connection on the target device.
[0134] Exemplarily, taking a dual-end electronic device as an example, the source device is a mobile phone terminal, and the target device is a personal computer or a smart screen. From the user's perspective, the applications on the mobile phone terminal and the personal computer or the smart screen are similar (for example, the icons of the applications are the same or similar, or the names of the applications are the same or similar), but in fact the package names (or the identifiers of the applications) are different. The application connection of such applications between the mobile phone terminal and the personal computer or the smart screen belongs to different-application connection.
[0135] It can be understood that multiple applications with different package names are mutual different-applications.
[0136] For example, the Huawei Video application on the mobile phone terminal and the Huawei Video application on the smart screen can be different-applications.
[0137] Exemplarily, both mobile terminals and personal computers include document editing applications. The document editing applications on mobile terminals have different package names from those on smart screens, but can be compatible with each other in terms of document editing functions. Even from the user's perspective, the icons and names of these two applications are the same. When these two applications are connected, the user can continue to edit the unfinished document through the document editing application on the personal computer after using the document editing application on the mobile terminal.
[0138] In the above similar scenarios, from the user's perspective, heterogeneous applications are just applications suitable for different operating systems or different versions of applications. Through heterogeneous application connection, the efficiency of users in processing data (such as editing documents) can be improved, and the convenience of users in switching electronic devices to continue the current task in different scenarios can be enhanced, thus improving the user's multi-faceted usage experience.
[0139] To achieve heterogeneous application connection, it is necessary to match heterogeneous applications. The matching rules of heterogeneous applications will be specifically introduced later.
[0140] Application series
[0141] An application series means that users can associate different variants of the same application program (such as different formats like HarmonyOS version, Android version, meta-service, quick application, etc.) in the same application series.
[0142] In this application, developers are supported to configure application series for application programs.
[0143] Connection type (continueType)
[0144] The connection type refers to a configuration item used to support the application function connection function and is used to define the service type during application connection. For example, document editing connection, clipboard connection, application service connection, media playback control connection, etc.
[0145] The connection type mentioned in this application can be understood as the connection type of ability in the application program.
[0146] Package name of the application program
[0147] The package name of an application program is a string used to uniquely identify the application program. In the HarmonyOS system, the package name is usually defined in the config.json file in the application program. Application programs with the same package name can be understood as the same application, and applications with different package names can be understood as heterogeneous applications.
[0148] Ability (capability, function)
[0149] In HarmonyOS, "ability" can be used to represent the capabilities of an application. An application can have multiple capabilities, that is, it can include multiple abilities. The application continuation mentioned in this application refers to the continuation of the abilities in the application.
[0150] With the development of science and technology, data such as applications, pictures, and videos can be transferred in the scenario of multi-device interconnection. Taking applications as an example, in the scenario of multi-device supported application continuation, users can seamlessly transfer the ongoing application tasks on one device to another device for continued execution. For example, when a user is playing a video through a video application on a mobile phone terminal, through application continuation, the video can be continued to play through the video application on a smart screen. When a user uses a certain application on an electronic device, if there is a more suitable electronic device nearby, the application can be smoothly switched to the nearby electronic device to continue the previous operation, bringing a better user experience.
[0151] The current application continuation can include same-application continuation and different-application continuation. Before implementing application continuation, it is necessary to match the applications. The current matching rules for applications include the matching rules for same applications and the matching rules for different applications. In the embodiments of this application, the matching process of applications can be understood as a process of matching the target application according to the source application.
[0152] Taking a dual-end electronic device as an example, the matching rule for the same application requires that the continued application on the source device and the target device is the same, that is, the source application on the source device is the same as the target application on the target device.
[0153] Exemplarily, the application to be continued on the source device is Application 1, and the same Application 1 is also carried on the target device. From the user's perspective, the name or icon of Application 1 on the source device and the target device is the same; from the developer's perspective, the package name of Application 1 on the source device is the same as the package name of Application 1 on the target device.
[0154] The matching rules for different applications mainly include the following two:
[0155] First, the source application on the source device and the target application on the target device complete the matching of dual-end applications by configuring the "NSUserActivityTypes" field, and the developer accounts of the source application and the target application are the same.
[0156] Exemplarily, both Application 1 on the source device and Application 2 on the target device are configured with an "NSUserActivityTypes" field, and the developer accounts of Application 1 and Application 2 are the same. Application 1 and Application 2 can be matched to achieve application continuation.
[0157] Second, the application program requesting continuation obtains a unique identifier. The unique identifier of the application program on the target device also needs to be configured in the application program on the source device. Similarly, the unique identifier of the application program on the source device also needs to be configured in the application program on the target device.
[0158] For the first matching rule of different applications mentioned above, the application programs to be matched at both ends are actually only restricted by the developer account. If two unrelated application programs of the same developer are configured with the same "NSUserActivityTypes" field, these two unrelated application programs will also complete the continuation, which will pose a risk of traffic diversion.
[0159] For the second matching rule of different applications mentioned above, if the application program on the source device is developed first and the application program on the target device has not been developed yet, the application program on the source device will not be able to configure the unique identifier of the application program on the target device. After the application program on the target device is developed, the application program on the source device needs to update the version to newly configure the unique identifier of the application program on the target device in order to complete the matching of the application programs at both ends.
[0160] Therefore, to solve the above problems, the present application provides a data transmission method, system, and electronic device. Configure an application series for the application programs on the source device and the target device, and configure a continuation type for the ability in the application program. Application programs belonging to the same application series and having the same ability with the same continuation type can be successfully matched. In the scenario of triggering application continuation, the source device hosts the source application program, and the target device will preferentially continue with the target application program having the same package name as the source application program; if the target device does not have an application program with the same package name as the source application program, it can search for an application program belonging to the same application series as the source application program, and when it is determined that the continuation type of the ability of this application program is consistent with the continuation type of the ability of the source application program, determine this application program as the target application program, thereby completing the matching and achieving application continuation, enabling the tasks of the application program to seamlessly switch between multiple electronic devices, optimizing the efficiency of data transmission, and thus improving the user experience.
[0161] It should be noted that the data transmission method, system, and electronic device provided by the present application are applicable to application continuation, including same-application continuation and different-application continuation, and are preferably applicable to different-application continuation.
[0162] As shown in Figure 3 the figure, there is shown a system architecture diagram provided by an embodiment of the present application. The system architecture mainly includes a source device, a target device, and an application market server. Among them, the source device may carry an application A and a connection framework, and the target device may carry an application A or B, a connection framework, a bundle manager service (BMS) module, and an application market server side. The application market server can be used to create an application series and add an application program to the application function series. The application program A represents any application program that supports application connection in the source device; the connection framework is used to manage the functions of the system's distributed capabilities, including but not limited to application connection, distributed soft bus, etc.; the application program A or B represents any application program that supports application connection in the target device; the BMS module is used to manage the relevant information of the application package of the application program. For example, query the configuration file of ability in the application package of the local application program; the application market server side can query the application programs belonging to the same application series from the application market server.
[0163] Interactions can be realized among the above-mentioned various modules. Exemplarily, when the connection framework in the source device can sense that the application program A is running in the foreground, it sends the package name and connection type of the application program A to the connection framework of the target device. The connection framework of the target device can apply to the application market server side to request the application market server to query whether there is an application program with the same application series as the application program A on the target device side. The application market server feeds back the query result to the connection framework of the target device through the application market server side, indicating that the target device includes the application program B with the same application series as the application program. The connection framework of the target device requests the BMS module to query whether there is an ability with the same connection type as the ability of the application program A in the application program B. The BMS module returns the query result to the connection framework, indicating that the ability in the application program B has the same connection type as the ability in the application program A. The connection framework sends an instruction to the application program B to start the ability of the application program B to achieve application connection.
[0164] It should be noted that Figure 3 this is only an exemplary division of the system architecture at the logical level and does not limit the actual hardware structure.
[0165] According to the above introduction, application connection includes same-application connection and different-application connection. Next, with reference to the accompanying drawings, these two types of application connections will be specifically introduced.
[0166] As shown in Figure 4 the figure, there is shown a schematic flowchart of a data transmission method, and this method is applicable to the same-application connection scenario. Next, taking a dual-end electronic device of a source device and a target device as an example, this method will be specifically introduced.
[0167] S401, the source device determines that application A is running in the foreground.
[0168] It should be noted that application A is an application that supports application continuation. In the configuration file of the ability of application A, there is a "continuable" configuration item, which can be used to indicate whether the ability of application A supports application continuation.
[0169] Exemplarily, the continuation framework of the source device can sense that application A is running in the foreground, and more specifically, the continuation framework of the source device can determine that application A supports application continuation through the "continuable" configuration item in the ability of application A.
[0170] It can be understood that when application A is started in the foreground, it means that application A is running in the foreground.
[0171] S402, the source device sends the package name of application A. Correspondingly, the target device receives the package name of application A.
[0172] Exemplarily, when the continuation framework of the source device senses that application A, which supports application continuation, is running in the foreground, the continuation framework of the source device can send the package name of application A to the continuation framework of the target device.
[0173] S403, the target device determines that the target device includes application A.
[0174] Exemplarily, the continuation framework of the target device looks for whether there is an application with the same package name as application A on the target device. If the application A with the same package name is found on the target device and is determined to be the target application, then step S404 can be executed to launch the ability of application A on the target device and continue to execute the task of application A on the source device.
[0175] S404, the target device launches the ability of application A to complete the continuation.
[0176] Exemplarily, the continuation framework of the target device sends a launch instruction to application A, causing the ability of application A to be launched to complete the continuation.
[0177] For example, Application A is a document editing application. The source device is a mobile phone terminal, and the target device is a tablet computer. The document editing application is installed on both the mobile phone terminal and the tablet computer. After the document editing application is launched in the foreground on the mobile phone terminal, a continuation icon is displayed near the icon of the document editing application on the tablet computer connected to the mobile phone terminal. In response to the user clicking on this continuation icon, the document editing application can be launched on the tablet computer, and the user's operation on the document editing application on the mobile phone terminal can be continued.
[0178] Exemplarily, if the user is editing a document in the document editing application, then the document editing can be understood as an ability of the document editing application. The user first enters text in the document editing application on the above-mentioned mobile phone terminal. After the application continuation, the user can continue to enter text in the document editing application on the tablet computer.
[0179] It should be noted that before pulling up the ability of Application A on the target device, the target device needs to obtain task data from the source device, and this task data is the relevant data for the ability of Application A on the source device to perform business. For example, the task executed on Application A of the source device is to edit a document. The source device transmits the relevant data for editing the document to the target device, and Application B on the target device can display the file according to this relevant data for the user to continue editing.
[0180] As Figure 5 shown, a schematic flowchart of a data transmission method is shown. This method is applicable to the scenario of cross-application continuation. Taking a dual-end electronic device of a source device and a target device as an example below, this method will be specifically introduced.
[0181] S501, the source device determines that Application A is running in the foreground.
[0182] Exemplarily, the continuation framework of the source device senses that Application A is running in the foreground, and moreover, the continuation framework of the source device determines that Application A supports application continuation through the "continuable" configuration item in the ability of Application A.
[0183] S502, the source device sends the package name and continuation type of Application A. Correspondingly, the target device receives the package name and continuation type of Application A.
[0184] Exemplarily, when the continuation framework of the source device senses that Application A, which supports application continuation, is running in the foreground, the continuation framework of the source device can send the package name and continuation type of Application A to the target device. Here, the continuation type refers to the continuation type of the ability in Application A.
[0185] It should be noted that before the application is put on the shelf, the developer can add a "continueType" configuration item to the module.json5 configuration file of the ability of the application, and declare the continuation type of the ability of the application through the "continueType" configuration item.
[0186] Exemplarily, the configuration file of the ability of the application is as follows:
[0187] "abilities":
[0188] {
[0189] "name":"MainAbility",
[0190] "srcEntrance":". / ets / abilities / MainAbility.ets",
[0191] "description":"$string:MainAbility_desc",
[0192] "icon":"$media:icon",
[0193] "label":"$string:MainAbility_label",
[0194] "visible":true,
[0195] "continuable":true,
[0196] "continueType":"com.huawei.hmos.notepad.filelist",
[0197] }
[0198] In the above configuration file, the configuration item "name":"MainAbility" is used to define an ability named "MainAbility". The configuration item "srcEntrance":". / ets / abilities / MainAbility.ets" is used to indicate the source file path of the main entrance ability of the application. The configuration item "description":"$string:MainAbility_desc" is used to indicate the description information of the ability. The system can find the string resource named "MainAbility_desc" and use the value of this resource as the description information of the ability. The configuration item "icon":"$media:icon" is used to indicate the icon resource of the application or the ability. The configuration item "label":"$string:MainAbility_label" is used to indicate the display name of the application or the ability. The configuration item "visible":true is used to indicate that the application or the ability is visible to the user. The configuration item "continuable":true is used to indicate that the application or the ability supports application continuation. In the above steps S401 and S501, the source device can determine that the application supports application continuation according to the "continuable":true configuration item of application A. The configuration item "continueType":"com.huawei.hmos.notepad.filelist" is used to indicate the continuation type. Among them, "com.huawei.hmos.notepad.filelist" is a string used to represent the service type (the file list interface in the note application). After application continuation, the user can continue to view the notes on the target device.
[0199] It can be understood that before the application is put on the shelf, the developer edits the configuration file of the ability of the above application. This configuration file is included in the installation package of the application and can exist in the.apk format or the.hap format. The embodiments of the present application do not limit this. When downloading the application, the electronic device also obtains the ability configuration file. That is to say, the ability configuration file of the application can be stored on the electronic device side, and the BMS module in the electronic device can query the ability configuration file at the local end.
[0200] It should be noted that in the above configuration file, the continuation type of the ability is configured by configuring the "continueType" configuration item. Moreover, in the above configuration file, only an example is given that the string "com.huawei.hmos.notepad.filelist" is filled in the "continueType" configuration item. The specific content filled in the "continueType" configuration item can be a string, an ability name, or a service type (for example, document editing service, clipboard service, media playback control service), etc. The embodiments of the present application do not limit the specific content filled in the "continueType" configuration item.
[0201] Optionally, the source device may not directly send the package name and continuation type of application A to the target device. The target device and the source device may be pre-configured with the association relationship between the identifier and the package name of the application, and the association relationship between the identifier and the continuation type. The source device sends the identifier representing the package name of the application and the identifier representing the continuation type to the target device. The target device can determine the package name and continuation type of the application corresponding to the identifier according to the above two identifiers and two association relationships.
[0202] S503, the target device determines that the target device does not include application A.
[0203] Exemplarily, the continuation framework of the target device searches on the target device side to check if there is an application with the same package name as application A. If the application A with the same package name is not found on the target device, the following step S504 can be continued to further determine whether there is an application with the same application series as application A on the target device, and whether there is an application with the same continuation type ability as the ability in application A.
[0204] S504, the target device sends a query request. Correspondingly, the application market server receives the query request.
[0205] Exemplarily, the continuation framework of the target device sends a query request to the application market server through the application market service end.
[0206] It should be noted that the query request is used to request to query whether the target device has an application belonging to the same application series as application A. The user can associate different variants of the same application in the same application series, and the package names of the applications belonging to the same application series may be different.
[0207] Exemplarily, the applications on the mobile terminal and the smart screen are similar (for example, the icons of the applications are the same or similar, or the names of the applications are the same or similar). For example, from the user's perspective, the icon of the application seen through the mobile terminal interface is the same as the icon of the application seen through the smart screen interface. However, in fact, these two applications are not the same application because their package names or identifiers are different. Another example is that from the user's perspective, the icon of the application seen through the mobile terminal interface is similar to the icon of the application seen through the smart screen interface, and the names of the applications are also similar. The user thinks they are different versions of the application, but these also do not belong to the same application.
[0208] The connection of the two applications illustrated in the above examples belongs to different-application connection. Although the package names of the applications that are different applications are different, they are different variants of the same application. Multiple different applications can be associated by configuring the application series to achieve different-application connection.
[0209] In the embodiments of the present application, the developer can configure the application series for the application. The following combines Figure 6 to show a set of graphical user interfaces (GUI) to specifically introduce the method of configuring the application series.
[0210] As Figure 6 shown in (a) thereof, an application series management interface is displayed, and this interface can be displayed on the developer's personal computer. In the application series management interface, the developer can create an application series. The application series management interface includes a create application series control 601. In response to the user's operation on the create application series control 601, a GUI as shown in Figure 6 (b) thereof is displayed.
[0211] As Figure 6 shown in (b) thereof, in response to the user's operation on the create application series control 601, the application series management interface displays a create application series tab page. On the create application series tab page, the user can set the application series name. The create application series tab page includes an input box 602, and also includes a confirm control 603 and a cancel control. In response to the user entering the application series name "HarmonyOS" in the input box 602 and the user's operation on the confirm control 603, a GUI as shown in Figure 6 (c) thereof is displayed.
[0212] As Figure 6As shown in (c), in response to the user entering the application series name "HarmonyOS" in the input box 602 and the user's operation on the confirmation control 603, an application series management interface is displayed. A list 604 is displayed on the application series management interface. The list 604 includes multiple options, and the multiple options include a name option, a package name option, a last update time option, an application type option, and an add option 605. Among them, in the name option, the name "HarmonyOS Series" is displayed, indicating that the user has created an application series named "HarmonyOS Series". In response to the user's operation on the add option 605, a GUI as shown in Figure 6 (d) of the figure is displayed.
[0213] As Figure 6 shown in (d) of the figure, in response to the user's operation on the add option 605, an add application tab page is displayed. The user can add a suitable application program to the "HarmonyOS Series" application series on the add application tab page. The add application tab page includes multiple options, and the multiple options include an add application option, an application package name option, etc., and also includes a submit for review control 608 and a cancel control. An input box 606 is displayed near the add application option, and an input box 607 is displayed near the application package name option. The user can select or enter the name of the application program to be added to the "HarmonyOS Series" application series in the input box 606; the user can select or enter the package name of the application program to be added to the "HarmonyOS Series" application series in the input box 607. After the user completes the selection or entry of the name and package name of the application program, the user can click the submit for review control 608. After waiting for the review to pass, the creation of the "HarmonyOS Series" application series is completed.
[0214] S505, the application market server sends a query result, and correspondingly, the target device receives the query result.
[0215] It should be noted that the query result is used to indicate the application program B that belongs to the same application series as the application program A.
[0216] Exemplarily, the application market server finds the application program B that belongs to the same application series as the application program A according to the query request, sends the query result to the application market server end of the target device, and the application market server end returns the query result to the connection framework of the target device.
[0217] It should be noted that multiple application programs can be included in the same application series, and different application programs can be installed on different electronic devices.
[0218] Exemplarily, in Application Series 1, it includes Application 1 that can be installed on a mobile terminal, Application 2 that can be installed on a smart screen, and Application 3 that can be installed on a personal computer. If the source device is a mobile terminal and the target device is a smart screen, and Application 1 is the source application, the query result returned by the application market server can only be used to indicate that Application 2 on the smart screen and Application 1 belong to the same application series; if the source device is a mobile terminal and the target device is a personal computer, and Application 1 is the source application, the query result returned by the application market server can only be used to indicate that Application 3 on the personal computer and Application 1 belong to the same application series.
[0219] That is to say, the query result returned by the application market server can only be used to indicate the application installed on the target device that belongs to the same application series as the source application.
[0220] S506, the target device queries for the ability with the same continuation type as Application A in Application B.
[0221] Exemplarily, the continuation framework in the target device sends a query instruction to the BMS module. The BMS module queries in the target device for the ability with the same continuation type as the ability in Application A in Application B, and the target device determines that Application B is the target application.
[0222] For example, the configuration file of the ability of Application A includes a "continueType" configuration item, and the configuration file of the ability of Application B also includes a "continueType" configuration item. When the content filled in the two configuration items is the same, it indicates that the ability of Application B and the ability of Application A have the same continuation type.
[0223] The "continueType" configuration item is used to indicate the continuation type. In the embodiments of the present application, the specific content filled in the "continueType" configuration item is not limited. As long as the filled content is the same, it can be considered that the continuation types are the same.
[0224] For example, when the "continueType" configuration item is a string, if the specific values are the same, it is considered that the continuation types are the same.
[0225] S507, the target device launches the ability of Application B to complete the continuation.
[0226] Exemplarily, the continuation framework of the target device sends a launch instruction to Application B, so that the ability of Application B is launched to complete the continuation.
[0227] For example, application A is a video playback application, and application B is also a video playback application. The source device is a mobile terminal, and the target device is a smart screen. Application A and application B belong to the same application series and have abilities of the same continuation type. The video that the user has not finished watching on the mobile terminal through application A can be continued to watch on the smart screen through application B.
[0228] It should be noted that the target device needs to obtain task data from the source device, and this task data is the relevant data for the ability of application A on the source device to execute business. For example, the task executed on application A is to play a video, and the source device transmits the relevant data of playing the video on application A to the target device. Application B can continue to play the video based on this relevant data.
[0229] In one implementation, the target device can obtain the relevant data of the task by sending a request message to the source device separately. Before continuing to execute the task on the target device, it is only necessary to obtain the relevant data of the task from the source device.
[0230] In another implementation, the source device can, in step S502 above, while sending the package name and continuation type of the application to the target device, provide the target device with the task-related data.
[0231] It should be noted that in the embodiments of the present application, the specific manner and specific timing for the target device to obtain task data are not limited.
[0232] For ease of understanding, as Figure 7 shown, taking the source device as a mobile terminal, the target device as a smart screen, and the mobile terminal and the smart screen being interconnected and supporting the application continuation function as an example, a group of GUIs for application continuation are shown.
[0233] As Figure 7 shown in (a) therein, the display interface of the video application on the mobile terminal is shown. This video application can be understood as the source application on the source device. The currently playing video 701 is displayed on this display interface, and a prompt message 702 is also displayed. Among them, the prompt message 702 is used to prompt the user that the playing position of the current video is 3:00. At the same time, the smart screen interconnected with the mobile terminal can display the GUI as shown in Figure 7 shown in (b) therein.
[0234] As Figure 7As shown in (b), the main interface of the smart screen is shown. On the main interface of the smart screen, icons of multiple application programs are displayed, including icons of application programs such as clock, weather, music, video, map, etc. Among them, a connection icon 704 is displayed beside the video icon 703, indicating that the video application program corresponding to the video icon 703 on the smart screen is the target application program matching the source application program on the mobile terminal, and the source application program and the target application program support application connection. In response to the user's operation on the connection icon 704, the smart screen displays as Figure 7 shown in (c) of
[0235] such as Figure 7 shown in (c). In response to the user's operation on the connection icon 704, the smart screen displays the display interface of the video application program. On this display interface, a playing video 705 is displayed, and a prompt message 706 is also displayed. Among them, the prompt message 706 is used to prompt the user that the playing position of the current video is 3:00, indicating that after the source application program and the target application program achieve application connection, the video on the source application program can continue to be played on the target application program.
[0236] It should be noted that Figure 7 the source application program on the shown mobile terminal and the target application program on the smart screen belong to the same application series and have the same connection type of ability. Figure 7 The shown GUI takes cross-application connection as an example for illustration. If the source device is a mobile terminal and the target device is a tablet computer for same-application connection, the process shown in Figure 7 can also be applicable.
[0237] It can be seen that for application programs belonging to the same application series, the same connection type can be added to the ability to be connected. When the source application program on the source device is started, the connection icon of the target application program will be displayed on the target device. After the user clicks this connection icon, the task of the source application program will continue to be executed on the target application program, optimizing the user's usage experience.
[0238] It should be noted that the source application program and the target application program improved in this application can be system application programs or third-party application programs, and the embodiments of this application do not make limitations in this regard.
[0239] such as Figure 8 shown, a schematic flowchart of a data transmission method provided by this application is shown. This method can be applied to a system, and this system includes a first electronic device, a second electronic device, and a server. The first electronic device can be the target device described in the specific embodiments above, and the second electronic device can be the source device described in the specific embodiments above. Below, with reference to the accompanying drawings, this method will be specifically introduced:
[0240] S801. When the second electronic device responds to the first application running in the foreground, it sends the first information. Correspondingly, the first electronic device receives the first information, and the first information includes information about the first application.
[0241] It should be noted that the first electronic device is interconnected with the second electronic device, and both the first electronic device and the second electronic device support application continuation. The first electronic device includes at least one application, and the second electronic device includes the first application, where the first application supports application continuation. The first application can be understood as the source application.
[0242] That is to say, when the second electronic device determines that the first application is running in the foreground, it can send the information of the first application to the interconnected first electronic device.
[0243] Exemplarily, the second electronic device can determine that the first application supports application continuation through the "continuable" configuration item in the ability of the first application.
[0244] In one implementation, the information of the first application includes one of the following: the package name of the first application, the identifier of the first application. Both the package name and the identifier of the first application can be used to represent the first application.
[0245] S803. The first electronic device sends the first request information to the server according to the information of the first application.
[0246] It should be noted that the first request information is used to request to query the application related to the first application.
[0247] That is to say, the first request information is used to request to query the application belonging to the same series as the first application.
[0248] It is not difficult to understand that the trigger condition for the first electronic device to request the server to query the application belonging to the same series as the first application is that there is no same application as the first application in the first electronic device. Exemplarily, there is no application with the same package name as the first application in the first electronic device, similar to the situation shown above Figure 5 as shown.
[0249] Specifically, when the information of the first application is different from the information of at least one application, the first request information is sent to the server.
[0250] S803. The server sends the first feedback information. Correspondingly, the first electronic device receives the first feedback information.
[0251] S804. The first electronic device determines the first target application in the first electronic device according to the first feedback information from the server.
[0252] It should be noted that the first target application belongs to at least one application in the first electronic device.
[0253] In one implementation, the first information further includes the continuation type of the first application.
[0254] It is not difficult to understand that the continuation type of the first application can be the continuation type of any ability in the first application.
[0255] It should be noted that in the scenario of cross-application continuation, the target application needs to meet two preset conditions: the target application and the source application belong to the same application series, and the target application includes an ability with the same continuation type as the ability of the source application.
[0256] That is to say, the first electronic device determines, through the server, an application that belongs to the same application series as the first application, and the first electronic device itself can determine whether there is a function with the same continuation type as the function in the first application in this application.
[0257] Exemplarily, the first application and the first target application belong to the first application series, and the first application series is created by the developer on the server.
[0258] It should be noted that the specific process for the developer to create an application series can be as described above for Figure 6 For the sake of avoiding redundancy, it will not be elaborated here.
[0259] In one implementation, the first application includes a first configuration item, and the first target application includes a second configuration item. The first configuration item is used to indicate the continuation type of the first application, and the second configuration item is used to indicate the continuation type of the first target application. When the value of the first configuration item is the same as the value of the second configuration item, it can indicate that the continuation type of the first application is the same as the continuation type of the first target application. Among them, the continuation type of the application can be understood as the continuation type of the ability in the application.
[0260] As described above, the first configuration item can be obtained from the installation package of the first application, or can be obtained from the server; the second configuration item can be obtained from the installation package of the first target application, or can be obtained from the server.
[0261] It should be noted that the developer can configure the continuation type of the ability of the application through the "continueType" configuration item on the server side.
[0262] Exemplarily, the first configuration item is the "continueType" configuration item configured for the ability of the first application, and the second configuration item is the "continueType" configuration item configured for the ability of the first target application. The specific content filled in the "continueType" configuration item can be a string. When the value of the first configuration item is the same as the value of the second configuration item, it can be considered that the continuation type of the ability of the first application is the same as the continuation type of the ability of the target application.
[0263] It should be noted that the solution for configuring the continuation type for the ability of the application is introduced in step S502 above. To avoid redundancy, it will not be elaborated here.
[0264] It is not difficult to understand that, on the one hand, the source application and the target application belong to the same application series, which can ensure that there is a certain association between the applications that can achieve application continuation, and avoid problems such as drainage caused by unrelated applications pulling each other up. On the other hand, the application series and continuation type are configured on the server side. When a new application is developed, if you want the new application to support application continuation with the previously launched applications, the developer can configure the new application with the same application series and continuation type as the previously launched applications on the server side, without updating the version of the previously launched applications.
[0265] S805, start the first target application.
[0266] S806, execute tasks related to the first application on the first target application.
[0267] In one implementation, through user interaction, the startup of the target application is triggered.
[0268] Exemplarily, on the first electronic device, the first icon corresponding to the first target application is displayed differently; in response to an operation on the first icon, the first target application is started.
[0269] It should be noted that the specific way to display the first icon corresponding to the first target application differently can be the continuation icon shown in (b) of Figure 7 , and this continuation icon is displayed differently near the first target application in the form of a superscript; it can also be to display the first icon corresponding to the first target application differently through enhanced display methods such as highlighting and bolding; it can also be to enlarge the display of the first icon corresponding to the first target application, etc. The present application does not limit the specific way to display the first icon of the target application differently.
[0270] That is to say, after determining the target application, a continuation icon can be displayed. When the user clicks on the continuation icon, the task on the source application can continue to be executed on the target application.
[0271] It should be noted that reference can be made to the above Figure 7 for a specific description of the process of implementing application continuation. To avoid redundancy, it will not be elaborated here.
[0272] Specifically, after the first electronic device obtains the relevant data of the task running on the first application from the second electronic device, it can execute the task related to the first application.
[0273] In one implementation, the first electronic device sends a second request message to the second electronic device, and the second request message is used to request the data of the task related to the first application; receives the second feedback message from the second electronic device, and the second feedback message includes the data of the task related to the first application.
[0274] In another implementation, the first information also includes the data of the task related to the first application.
[0275] It can be seen that the first electronic device can actively request the data of the task related to the first application from the second electronic device, or passively receive the data of the task related to the first application.
[0276] Exemplarily, the task related to the first application is a video type task, and the data of the task related to the first application includes video progress, video resources, etc.; or, the task related to the first application is a text type task, and the data of the task related to the first application includes text content, text editing progress, etc.; or, the task related to the first application is an image type task, and the data of the task related to the first application includes image content, image editing progress; or, the task related to the first application is an audio type task, and the data of the task related to the first application includes audio resources, audio progress, etc.
[0277] For example, the video type task can be tasks such as playing a video, editing audio, etc.; the text type task can be tasks such as inputting, deleting, copying, pasting text, etc.; the image type task can be tasks such as editing image size, modifying image contrast, etc.; the audio type task can be tasks such as playing audio, editing audio, etc.
[0278] The above mainly introduces the matching rules of cross-application continuation and the data transmission method. If there is an application in the first electronic device that is the same as the source application in the second electronic device, the matching can be directly completed and the application can be launched. Similar to the above Figure 4 shown content.
[0279] Specifically, the first electronic device receives second information from the second electronic device. The second information includes information about a second application installed on the second electronic device. The first electronic device determines a second target application that is the same as the second application among at least one application. The first electronic device starts the second target application. A task related to the second application is executed on the second target application.
[0280] Among them, when the second electronic device determines that the second application is running in the foreground, it can send the information of the second application to the interconnected first electronic device. The second application can be understood as the source application, supporting application continuation.
[0281] It should be noted that other steps are similar to those of cross-application continuation and will not be elaborated here.
[0282] A data transmission method, system, and electronic device provided by this application. An application series is configured for the application of the source device and the application of the target device, and a continuation type is configured for the ability in the application. Applications belonging to the same application series and having the same continuation type ability can be successfully matched. In the scenario of triggering application continuation, the source device hosts the source application, and the target device will preferentially continue with the target application having the same package name as the source application. If the target device does not have an application with the same package name as the source application, it can search for an application belonging to the same application series as the source application, and when it is determined that the continuation type of the ability of this application is the same as the continuation type of the ability of the source application, this application is determined as the target application, thereby completing the matching and realizing application continuation, enabling the tasks of the application to seamlessly switch between multiple electronic devices, optimizing the efficiency of data transmission, and thus improving the user experience.
[0283] The method of data transmission according to the embodiments of this application is described above. Next, the apparatus and device according to the embodiments of this application will be described respectively in combination with Figure 9 and Figure 10 It should be understood that the description of the method embodiment corresponds to the description of the apparatus embodiment. Therefore, the parts not described in detail can refer to the previous method embodiment.
[0284] Figure 9FIG. 0 is a structural schematic diagram of a data transmission device 900 provided by an embodiment of the present application. The data transmission device 900 may have the functions of the first electronic device (target device) or the second electronic device (source device) in the above method embodiment, and may be used to execute the steps performed by the functions of the first electronic device or the second electronic device in the above method embodiment. This function may be implemented by hardware, or may be implemented by software or hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0285] In a possible implementation manner, the data transmission device 900 includes a transceiver module 910 and a processing module 920. The transceiver module 910 and the processing module 920 are coupled to each other.
[0286] Among them, the transceiver module 910 is used to implement information interaction with other electronic devices or servers, including performing Figure 4 S402 in the method, Figure 5 S502, S504, S505 in the method, Figure 8 Some or all of the steps of S801, S802, S803 in the method.
[0287] The processing module 920 is used to perform information processing operations in the electronic device, including performing Figure 4 S401, S403, S404 in the method, Figure 5 S501, S503, S506, S507 in the method, Figure 8 Some or all of the steps of S804, S805, S806 in the method.
[0288] Figure 10 An electronic device 1000 provided by an embodiment of the present application. The electronic device may be the above-mentioned first electronic device or second electronic device. As shown in the figure, the electronic device 1000 includes: at least one processor 1010 and a transceiver 1020. The processor 1010 is coupled to the memory and is used to execute instructions stored in the memory to control the transceiver 1020 to send signals and / or receive signals.
[0289] Optionally, the electronic device 1000 further includes a memory 1030 for storing instructions.
[0290] In some embodiments, the above-mentioned processor 1010 and the memory 1030 may be integrated into a processing device. The processor 1010 is used to execute program codes stored in the memory 1030 to implement the above functions. Specifically, when implemented, the memory 1030 may also be integrated in the processor 1010 or independent of the processor 1010.
[0291] In some embodiments, the transceiver 1020 may include a receiver (or, a receiver) and a transmitter (or, a transmitter).
[0292] The transceiver 1020 may further include an antenna, and the number of antennas may be one or more. The transceiver 1020 may be a communication interface or an interface circuit.
[0293] This embodiment also provides a computer-readable storage medium storing computer instructions, which, when run on a computer, cause the computer to execute the above-related method steps to implement the data transmission method in the above embodiment.
[0294] This embodiment also provides a computer program product, which, when run on a computer, causes the computer to execute the above-related steps to implement the data transmission method in the above embodiment.
[0295] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, a component, or a module. In the case where the device is a chip, the chip may include a processor and a memory connected to each other. Among them, the memory is used to store computer execution instructions. When the chip runs, the processor may execute the computer execution instructions stored in the memory so that the chip executes the data transmission method in each of the above method embodiments.
[0296] In a possible implementation, the chip for implementing the data transmission method provided in the present application includes a transceiver module and a processing module. Among them, the transceiver module may be an input / output circuit or a communication interface; the processing module may be a processor, a microprocessor, or an integrated circuit integrated on the chip.
[0297] Among them, the electronic device, computer-readable storage medium, computer program product, or chip provided in this embodiment is all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.
[0298] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0299] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the devices, apparatuses, and modules described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0300] In several embodiments provided in the present application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there can be other division methods in actual implementation. For example, multiple modules can be combined or split into more modules, or some features can be ignored or not executed. Another point is that the couplings, direct couplings, or communication connections shown or discussed with each other can be through some interfaces. The indirect couplings or communication connections of the devices or modules can be in electrical, mechanical, or other forms.
[0301] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0302] In addition, in each embodiment of the present application, the functional modules can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
[0303] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0304] As described above, it is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims described above.
Claims
1. A method for data transmission, characterized in that: The method is applied to a first electronic device, the first electronic device includes at least one application, the first electronic device is interconnected with a second electronic device, and the method includes: receiving first information from the second electronic device, wherein the first information includes information of a first application, and the first application is installed on the second electronic device; Sending first request information to a server according to information of the first application, wherein the first request information is used to request a query for an application related to the first application; determining a first target application in the first electronic device according to first feedback information from the server, wherein the first target application belongs to the at least one application; Acquire first task information executed by the second electronic device, where the first task information is information about the task executed by the first application in the second electronic device; and continue to execute the first task in the first target application according to the first task information.
2. The method according to claim 1, characterized in that The sending a first query request to a server according to information of the first application program includes: When the information of the first application is different from the information of the at least one application, the first request information is sent to the server, wherein the first request information includes the information of the first application.
3. The method according to claim 1 or 2, characterized in that: The first information also includes a connection type of the first application program, The method further comprises: The first target application is determined according to a continuation type of the first application, wherein the continuation type of the first target application is the same as the continuation type of the first application.
4. The method according to any one of claims 1 to 3, characterized in that According to the first task information, before continuing to execute the first task in the first target application, the method further includes: Distinctively displaying a first icon corresponding to the first target application on the first electronic device; In response to an operation on the first icon, the first target application is started.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Sending second request information to the second electronic device, where the second request information is used to request data of the task related to the first application; Second feedback information is received from the second electronic device, where the second feedback information includes data of the task related to the first application.
6. The method according to any one of claims 1 to 4, characterized in that The first information also includes data of the task associated with the first application.
7. The method according to any one of claims 1 to 6, characterized in that The task related to the first application is a video type task, and the data of the task related to the first application includes video progress and video resources; or The task related to the first application is a text-type task, and the data of the task related to the first application includes text content and text editing progress; or The task related to the first application is an image type task, and the data of the task related to the first application includes image content and image editing progress; or The task related to the first application is an audio type task, and the data of the task related to the first application includes audio resources and audio progress.
8. The method according to any one of claims 1 to 7, characterized in that The first application includes a first configuration item, and the first target application includes a second configuration item, the first configuration item is used to indicate a continuation type of the first application, and the second configuration item is used to indicate a continuation type of the first target application.
9. The method according to claim 8, characterized in that The first configuration item is obtained from an installation package of the first application, or The first configuration item is obtained from the server; The second configuration item is obtained from the installation package of the first target application, or The second configuration item is obtained from the server.
10. The method according to any one of claims 1 to 9, characterized in that The first application and the first target application belong to a first application series, and the first application series is created by a developer on the server.
11. The method according to any one of claims 1 to 10, characterized in that The information of the first application includes one of the following: The package name of the first application and the identifier of the first application.
12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: receiving second information from the second electronic device, the second information including information of a second application, the second application being installed on the second electronic device; Determine a second target application in the at least one application that has the same information as the second application; Starting the second target application; The task related to the second application is executed in the second target application.
13. A method for data transmission, characterized in that: The method is applied to a second electronic device, where the second electronic device is interconnected with a first electronic device, and the method includes: In response to a first application being run in the foreground, sending first information, the first information including information of the first application and a connection type of the first application, the first application being installed on the second electronic device; Sending data of a task related to the first application to the first electronic device, wherein the task related to the first application is executed in a first target application in the first electronic device; The first application and the first target application belong to the same application series, and the first application and the first target application have the same connection type.
14. The method according to claim 13, characterized in that The sending of data of the task related to the first application to the first electronic device includes: receiving second request information from the first electronic device, wherein the second request information is used to request data of the task related to the first application; Second feedback information is sent to the first electronic device, where the second feedback information includes data of the task related to the first application.
15. The method according to claim 13, characterized in that The first information also includes data of the task associated with the first application.
16. The method according to any one of claims 13 to 15, characterized in that The task related to the first application is a video type task, and the data of the task related to the first application includes video progress and video resources; or The task related to the first application is a text-type task, and the data of the task related to the first application includes text content and text editing progress; or The task related to the first application is an image type task, and the data of the task related to the first application includes image content and image editing progress; or The task related to the first application is an audio type task, and the data of the task related to the first application includes audio resources and audio progress.
17. The method according to any one of claims 13 to 16, characterized in that The first application includes a first configuration item, and the first target application includes a second configuration item, the first configuration item is used to indicate a continuation type of the first application, and the second configuration item is used to indicate a continuation type of the first target application.
18. The method according to claim 17, characterized in that; The first configuration item is obtained from an installation package of the first application, or The first configuration item is obtained from a server; The second configuration item is obtained from the installation package of the first target application, or The second configuration item is obtained from the server.
19. The method according to any one of claims 13 to 18, characterized in that The first application and the first target application belong to a first application series, and the first application series is created by a developer on a server.
20. The method according to any one of claims 13 to 19, characterized in that The information of the first application includes the package name of the first application and the identifier of the first application.
21. The method according to any one of claims 13 to 20, characterized in that The method further comprises: In response to the second application being run in the foreground, sending second information, the second information including information of the second application, the second application being installed on the second electronic device; Sending data of a task related to the second application to the first electronic device, wherein the task related to the second application is executed by a second target application in the first electronic device; The information of the second application is the same as the information of the second target application.
22. An electronic device, characterized in that: include: one or more processors; one or more memories; The one or more memories store one or more computer programs, which include instructions that, when executed by the one or more processors, enable the electronic device to perform the method as described in any one of claims 1 to 12, or the method as described in any one of claims 13 to 21.
23. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a computer, the computer is caused to implement the method according to any one of claims 1 to 12 and 13 to 21.
24. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 12 and 13 to 21.
25. A chip, characterized in that: The chip includes a processor and a data interface, and the processor reads instructions stored in a memory through the data interface to execute the method as claimed in any one of claims 1 to 12 and 13 to 21.
Citation Information
Patent Citations
Application connection method, electronic equipment and application connection system
CN116700553A
Task continuing method, electronic equipment, program product and medium
CN117472604A
Application connection method and terminal equipment
CN117784989A
Application synchronization method
US20230139035A1
Cited By
Data transmission method and system, and electronic device
WO2026056659A1