Information transmission method and apparatus
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2025-01-03
- Publication Date
- 2026-06-23
AI Technical Summary
During the transmission of cross-application information, in the prior art, pop-up operation prompts will interfere with the user, resulting in erroneous operation and reduce interaction efficiency.
By obtaining screenshots of the first interface after the user has long pressed and stored, the screenshot is displayed in response to the operation time reaching the threshold value, and the screenshot is displayed during the transmission process of the target element being dragged up to avoid pop-up interference until the transmission is completed.
It improves the operation efficiency and user experience of information transmission, reduces erroneous operations caused by pop-up interference, and improves the overall efficiency and user satisfaction of cross-application transmission.
Smart Images

Figure CN122270741A_ABST
Abstract
Description
Information transmission method and device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on January 5, 2024, with application number 202410026699.2 and invention name “Information Transmission Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to an information transmission method and device. Background Art
[0003] With the rapid development of electronic information technology, users need to transfer information across applications in many scenarios when using smart devices such as mobile phones and tablets, that is, transfer information from one application to another application for editing, sharing or uploading.
[0004] Many apps allow users to perform operations (such as copying, saving, and sharing) on elements displayed within their interface (e.g., images, text, and videos). For example, long-pressing an image in the interface allows users to save the image. In this scenario, when a user long-presses an element to transfer across apps, a pop-up window prompting an action for the selected element appears within the current app, disrupting the user's operation. Summary of the Invention
[0005] In view of this, the present application provides an information transmission method to solve at least part of the above problems, and the disclosed technical solution is as follows:
[0006] In a first aspect, the present application provides an information transmission method, which is applied to a first electronic device, and the method includes: displaying a first interface, the first interface includes the interface of a first application, and the content elements displayed on the interface include at least one of pictures, text, video, audio and documents; in response to a first operation on the content element in the first interface, displaying a second interface, the second interface includes a first sub-interface and a first pop-up window, and the content displayed on the first sub-interface is the same as the content of the first interface; in response to the duration of the first operation being greater than or equal to a first threshold, displaying a third interface, the third interface includes a second sub-interface and a target element, the content displayed on the second sub-interface is the same as the content of the first interface, and the content of the target element is the same as the content of the content element; in response to a second operation on the target element, displaying a fourth interface, the fourth interface includes a third sub-interface, a target element and at least one application icon, and the content displayed on the third sub-interface is the same as the content of the first interface; in response to a third operation on the target element displayed on the fourth interface, transmitting the target element to the application corresponding to the target icon, and displaying a fifth interface, the fifth interface includes the second interface, and the target icon is any one of at least one application icon. In this way, when the target element is dragged and transferred to the second application, the interface of the displayed first application does not include pop-up windows that interfere with the user, that is, the pop-up windows of the first application are prevented from interfering with the user's cross-application transfer operations and causing user erroneous operations, thereby improving the operational efficiency of information transmission and ultimately improving the user experience.
[0007] In a possible implementation of the first aspect, in response to the duration of the first operation being greater than or equal to a first threshold, displaying the third interface includes: in response to the duration of the first operation being greater than or equal to the first threshold, overlaying a screenshot of the first interface on the upper layer of the second interface, and displaying the target element on top of the screenshot. It can be seen that by overlaying the screenshot of the first interface on the interface actually displayed by the first application, the displayed interface does not include a pop-up window, and the content displayed in the screenshot of the first interface is the content displayed before the first application displays the pop-up window, which is imperceptible to the user. Moreover, the process of overlaying the screenshot of the first interface on the actual display interface of the first application is simple and easy to execute.
[0008] In one possible implementation of the first aspect, the screenshot of the first interface is obtained in response to a first operation on a content element in the first interface. Thus, upon detecting the first operation of the user on the first interface, the first interface is screenshoted, ensuring that the screenshot interface does not include a pop-up window.
[0009] In a possible implementation of the first aspect, after obtaining the screenshot of the first interface, the method further includes: storing the screenshot of the first interface, so that the screenshot can be read at any time when it is subsequently used.
[0010] In a possible implementation of the first aspect, storing the screenshot of the first interface includes storing the screenshot of the first interface in memory. Storing the screenshot in memory can save time in reading the screenshot, shorten the time between displaying the second interface including the pop-up window and displaying the screenshot of the first interface, and further improve the user experience.
[0011] In a possible implementation of the first aspect, the method further includes: deleting the screenshot of the first interface in response to a third operation on the target element. In this way, the storage space occupied by the screenshot of the first interface can be promptly recovered, thereby improving storage space utilization.
[0012] In a possible implementation of the first aspect, the first pop-up window includes at least one control; after the second interface is displayed in response to the first operation on the content element in the first interface, the method further includes: in response to a click operation on the control in the first pop-up window, corresponding processing is performed on the content element; or, after displaying the fifth interface, the method further includes: in response to a click operation on the control in the first pop-up window displayed on the fifth interface, corresponding processing is performed on the content element. It can be seen from this that when displaying an interface containing a pop-up window, the electronic device can respond to the user's operation on the control displayed in the pop-up window and perform corresponding processing on the target element selected by the user, that is, the use of this solution does not affect the original function of the first application, and improves the integration of information transmission.
[0013] In a possible implementation manner of the first aspect, the fifth interface also includes a transmission result of the first electronic device to the target element.
[0014] In a possible implementation manner of the first aspect, the fifth interface includes a transmission feedback bar, and the transmission feedback bar is used to prompt the transmission result.
[0015] In a possible implementation of the first aspect, in response to the third operation on the target element, the target element is transferred to the application corresponding to the target icon, and the fifth interface is displayed, including: in response to the third operation on the target element, the target element is transferred to the application corresponding to the target icon, and a sixth interface is displayed, the sixth interface includes the first interface and a floating window, the floating window displays the interface of the application corresponding to the target icon, and the floating window includes a close button and a minimize button; in response to the operation of the close button or the minimize button, the fifth interface is displayed, and the content displayed on the fifth interface is the same as the content of the second interface.
[0016] In a possible implementation manner of the first aspect, the third operation is an operation of moving the target element to the target icon.
[0017] In a possible implementation of the first aspect, the target icon is an icon of an application installed in a first electronic device; or, the target icon is an icon of an application installed in a second electronic device, and the second electronic device is communicatively connected to the first electronic device.
[0018] In a second aspect, the present application also provides an electronic device, comprising: one or more processors, a memory, and a touch screen; the memory is used to store program code; the processor is used to run the program code, so that the electronic device implements the information transmission method as described in any one of the first aspects.
[0019] In a third aspect, the present application also provides a chip system comprising: at least one processor and an interface, the interface being used to receive code instructions and transmit them to the at least one processor; the at least one processor runs the code instructions to implement the information transmission method described in any one of the first aspects.
[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on an electronic device, the electronic device executes the information transmission method as described in any one of the first aspects.
[0021] In a fifth aspect, the present application further provides a computer program product having an execution program stored thereon. When the computer program product is run on an electronic device, the electronic device implements the information transmission method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] FIG1 is a schematic diagram of the process of electronic device interface changes when transmitting images across applications;
[0023] FIG2 is a schematic diagram of an interface change process of an information transmission process provided by an embodiment of the present application;
[0024] FIG3 is a schematic diagram of an interface change process of another information transmission process provided by an embodiment of the present application;
[0025] FIG4 is a flow chart of an information transmission method provided in an embodiment of the present application;
[0026] FIG5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0027] FIG6 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The terms "first", "second" and "third" in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.
[0029] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0030] In order to facilitate understanding of the technical solution provided by this application, the relevant terms involved in this application are first introduced.
[0031] Cross-app transfer: refers to the transfer of information between two apps on the same device, or between two apps on different devices. This refers to the process of obtaining target information through one app and then sharing, saving, or editing it through another app. For example, you can forward text or images from a webpage in a browser to a WeChat friend, or send a picture from a WeChat friend to a QQ friend, or send text from WeChat on electronic device A to the memo app on electronic device B for editing.
[0032] Cross-application transmission interface: In this application, the cross-application transmission interface is a human-computer interaction interface provided by the electronic device based on the user's demand for cross-application information transmission. In some embodiments of this application, this function can also be called "smart flow". As the name suggests, in any interface displayed by the electronic device, when the user needs to transfer information in the interface across applications, the user can long press the element in the interface and drag it to the edge of the screen. The electronic device will transform the original interface displayed on the screen into three dimensions, creating a visual effect of the original interface being pushed inward on the screen, and display the icon recommended by the electronic device for the element on the side of the screen (for details, please refer to the relevant description of the subsequent embodiments, which will not be repeated here). The recommended icon can be an application icon, a service icon in the application, etc.; then, the user places the dragged element on the icon and releases it to transfer the element to the application corresponding to the icon and start the corresponding application function. Specifically, in this application, an application APP installed in the electronic device can have multiple application services. In the cross-application transmission interface provided by this application, the service icons in the application displayed can include some or all application service icons provided by the same application APP. This application does not limit this.
[0033] Floating window: It is a system tool of smart devices, which can float the operation window of the application above the interface or on the desktop, allowing users to easily switch the most recently used application. As a reduced application interface, the floating window can be displayed on top of other application interfaces (such as the application interface displayed in full screen), and the floating window can still display the interface style and function list inherent to its corresponding application. Users can directly operate the controls in the floating window interface to implement the corresponding functions without closing or exiting other applications. For example, when playing games or watching videos in full screen, you suddenly receive a message from WeChat, QQ, etc., and the corresponding chat interface can be displayed directly above the game interface in the form of a floating window. Users can view and reply to messages in the chat interface displayed in the floating window without switching or exiting the game application.
[0034] Capsule: A minimized floating window, named after its capsule-like shape. Unlike a floating window, it generally does not display the corresponding application's inherent interface style and function list, and is only displayed as a small icon on the side of the electronic device screen. Users can expand the capsule by clicking on it, and after expansion, the capsule will be displayed at the top of the screen in the form of an application interface (such as a floating window).
[0035] The side app bar is a quick-access area displayed on the side of an electronic device screen that can hold multiple app icons. Users can customize the types of apps and the order of the app icons in the side app bar. In any interface, users can swipe inward from the edge of the screen and pause to call up the side app bar. Click an app icon to open the corresponding app, and once opened, the app will generally appear at the top of the interface as a floating window.
[0036] Global Collection: This is an application service provided by embodiments of the present application that allows users to collect images, text, audio, web pages, and other elements that they have viewed on their electronic devices. After adding an element to the global collection service, users can also edit the element, for example, by adding tags to highlight key points in the collected video, allowing users to efficiently review the key information contained in the element when replaying it.
[0037] For example, users can add an element to the global collection service through the cross-application transfer interface provided in this application, or they can add the element to the global collection service by sliding down with three fingers. After successfully adding an element to the global collection service, the electronic device can display the capsule corresponding to the global collection service in the interface, making it easier for users to add other elements in the interface to the global collection service. Users can also share / transfer content in the global collection to other applications or other electronic devices.
[0038] FIG1 is a schematic diagram showing a process of changing an electronic device interface when transmitting an image across applications.
[0039] This embodiment takes the example of transferring images in the browser to the global collection service as an example. Of course, the images to be transferred can also come from other applications, such as The present application does not limit the source of the transmitted image.
[0040] As shown in ( 1 ) of FIG. 1 , the interface 10 is an interface of a browser application, which may include an image 11 and text 12 .
[0041] In addition, as shown in (1) of FIG1 , the content displayed on the electronic device screen also includes a status bar 13 located at the top. In the embodiment of the present application, the interface 10 does not include the content displayed in the status bar 13. The status bar 13 is the system display content of the electronic device. Exemplarily, the status bar 13 may include information such as cellular network signal strength, Wi-Fi icon, current remaining battery life, etc., and may also include time, operator information, etc., which will not be repeated here.
[0042] The browser application supports the user to perform corresponding operations on elements (such as text or images) in the interface 10, for example, long pressing an element to select the element, such as long pressing an image to select the image, and long pressing text in the interface to select the text. Exemplarily, the electronic device selects the image 11 in response to the user's operation (such as a long press operation) and displays the interface 20 shown in (2) of Figure 1.
[0043] As shown in (2) of FIG1 , the interface 20 includes an interface 22 at the bottom layer and a pop-up window 21 at the upper layer of the interface 22. The pop-up window 21 may include operable options provided by the browser application for the image 11 selected by the user, such as "Save Image," "Share Image," and "Set Wallpaper," and also includes a "Cancel" button. In a scenario where the user utilizes the cross-application transfer function of the electronic device to transfer the image 11 to another application or service, the user continues to long-press the image 11 and drags it to the edge of the screen, and the interface 30 shown in (3) of FIG1 is displayed.
[0044] Exemplarily, the interface 22 covers a grayscale layer on the upper layer of the interface 10 shown in (1) of Figure 1 to highlight the content displayed by the pop-up window 21. The grayscale layer in the interface 22 is only an example, and other applications may not include this grayscale layer, and this application does not limit this.
[0045] As shown in (3) of Figure 1 , interface 30 differs from interface 20 in that it also includes an image 31 at the top layer. Image 31 is the image obtained by the user continuously pressing and holding image 11, and the content of image 31 is the same as that of image 11. As long as the user does not release the finger, image 31 can move within interface 30 following the fingertip.
[0046] Image 31 may be a thumbnail of image 11 , ie, image 31 has no other difference from image 11 except for the size of the images.
[0047] In response to the user's second operation on the image 32, such as a drag operation, the electronic device displays the interface 40 shown in (4) of Figure 1.
[0048] In an exemplary embodiment, when the image 32 is dragged to a distance less than a certain threshold from the right or left edge of the screen, an interface 40 is displayed. The interface 40 may include a sub-interface 41 , an icon area 42 and an image 43 .
[0049] In an exemplary embodiment, the content displayed on the sub-interface 41 is the same as the content displayed on the interface 20 (except for the status bar).
[0050] Icon area 42 can display one or more application icons. For example, a corresponding text description can be displayed below each icon in icon area 42. For example, if icon 421 is the icon for the "Global Favorites" service, text 422 could read "Global Favorites." The text below the application icons is merely to help users understand the specific application or function corresponding to the icon. This application does not limit the specific icon style or text content.
[0051] The content of image 43 is the same as that of image 31 and image 11. Image 43 may be a thumbnail of image 31, that is, image 43 may be considered as an image obtained by directly reducing image 31.
[0052] The electronic device responds to the user moving the dragged element (i.e., image 43) in interface 40 to the target icon and releasing it. For example, taking the target icon as a global favorite icon, in response to the user moving image 43 to the global favorite icon and releasing it, the interface 50 shown in (5) of Figure 1 is displayed.
[0053] As shown in (5) of FIG1 , the difference between the interface 50 and the interface 20 shown in (2) of FIG1 is that the interface 50 further includes a capsule 51. The capsule 51 is used to indicate that the image 43 has been transferred to the application service "Global Collection", in other words, the image 43 has been stored in the global collection service.
[0054] Exemplarily, the capsule 51 and the pop-up window 52 may be in the same layer and may be the top layer of the interface.
[0055] In addition, when displaying the interface shown in (2) or (5) of Figure 2, if the electronic device detects the user's operation (such as a click operation) on any control in the pop-up window (i.e., save picture, share picture, set wallpaper or cancel), the selected content element is processed accordingly. For example, if the user clicks on Save Picture in the pop-up window, the electronic device responds to the operation and saves picture 11 to the storage space of the electronic device.
[0056] As can be seen from the interface change process shown in (1) to (5) of Figure 1 above, during the entire process in which the user drags an element (i.e., image 31) in the browser application interface and transfers it to the target service application, the pop-up window 21 is always displayed in the browser application interface, and the pop-up window 21 can easily interfere with the user's dragging operation, resulting in low interaction efficiency between the user and the electronic device and poor user experience.
[0057] In response to the above-mentioned problems, the present application provides an information transmission method, which can obtain and store a screenshot of the first interface after receiving a first operation of the user on a target element in the first interface of the first application. The storage here can refer to storage in a cache or memory. In response to the holding time of the first operation reaching a certain threshold, a screenshot of the first interface and the target element located on the upper layer of the screenshot are displayed. Thereafter, the dragged target element can be subjected to a cross-application transmission operation to transfer the target element from the first application to the second application. In the process of the target element being dragged and transmitted to the second application, the screenshot of the first interface is always covered in the window of the first application. In this way, after determining that the user's intention is to transmit the target element across applications, the interface of the displayed first application does not include a pop-up window that interferes with the user, that is, it avoids the pop-up window of the first application interfering with the user's cross-application transmission operation and causing the user to operate incorrectly, thereby improving the operational efficiency of information transmission and ultimately improving the user experience.
[0058] The following will introduce the interface changes of the electronic device during the information transmission process provided by this application in conjunction with Figures 2 and 3.
[0059] Please refer to Figure 2, which shows an interface diagram of an information transmission process provided by an embodiment of the present application. This embodiment is explained using the scenario of transmitting images across applications as an example.
[0060] The interface 10 shown in (1) of FIG2 is the interface of the first application. The content elements displayed on the interface 10 may include images 11, text 12, video, audio, documents, etc. The first application may be a browser, Weibo, WeChat, Toutiao, or other application that supports the display of the above content. This application does not limit the specific name and type of the first application. In the embodiment of this application, the interface 10 does not include the content displayed in the status bar 13. The status bar 13 is the system display content of the electronic device.
[0061] The first application in this embodiment supports the user to perform corresponding operations on the content displayed on the interface 10, such as saving a picture, sharing a picture, copying text, etc. The electronic device receives the user's first operation on the content element displayed on the interface 10 (such as a long press, with a press time greater than or equal to 200ms), and the electronic device responds to the first operation, takes a screenshot of the interface 10 (i.e., obtains a screenshot of the first interface), and displays the interface 20 shown in (2) of Figure 2.
[0062] As shown in (2) of Figure 2 , the interface 20 includes a pop-up window 21 at the top layer and a sub-interface 22 at the bottom layer of the pop-up window. The pop-up window 21 is used to display the operation options that can be performed by the user by long-pressing the image 11, such as saving the image, sharing the image, setting the wallpaper, etc. As can be seen, the first operation performed on the element in the interface 10 will trigger the element operation function of the first application.
[0063] The interfaces shown in (1) and (2) in FIG2 are the same as those in (1) and (2) in FIG1 . For related contents, please refer to the description of (1) and (2) in FIG1 , which will not be repeated here.
[0064] Moreover, the electronic device supports system-level element dragging operations, such as dragging the element selected by the user, and the user can perform other operations on the dragged element, such as cross-application transmission, transferring the dragged element from the first application to other applications or services.
[0065] This example uses the example of transferring image 11 across applications to illustrate that if the user continues to long-press image 11 in interface 10, a system-level element drag-up operation will be triggered. That is, the electronic device displays interface 60 shown in (3) of Figure 2 in response to the holding time of the first operation exceeding a certain threshold (such as 1 second). In addition, if the holding time of the first operation does not reach a certain threshold, such as releasing the hand when the long-press time is 500ms, the interface shown in (2) of Figure 2 will still be displayed, and the screenshot of interface 10 will be deleted.
[0066] As shown in (3) of FIG2 , the interface 60 includes a sub-interface 61 at the bottom layer and an image 62 at the top layer. The sub-interface 61 is a screenshot of the interface 10 .
[0067] The difference between the interface 60 and the interface 10 shown in ( 1 ) of FIG. 2 is that the interface 60 further includes a dragged element, namely, an image 62 , based on the interface 10 .
[0068] In an exemplary embodiment, image 62 may be a thumbnail of image 11, that is, image 62 displays the same content as image 11, but has a different size. If the user does not release the finger, image 62 may move in interface 60 following the movement of the finger.
[0069] For example, a screenshot of interface 10 can be overlaid on the upper layer of the interface displayed by the first application, and image 11 can be obtained from interface 10 and further reduced or downsampled to obtain image 62, and image 62 can be displayed on top, finally presenting the display effect shown in interface 60.
[0070] Optionally, in order to prompt the user that image 62 is in the selected and dragged state, the original image displayed on sub-interface 61, that is, image 63, can be blurred or blurred. For example, image 11 can be obtained from interface 10, and image 11 can be blurred or blurred to reduce the clarity of the image. Then, the blurred or blurred image is overlaid on top of image 11 in sub-interface 61, and the display effect shown in (3) of Figure 2 is finally presented, that is, only image 63 in sub-interface 61 has a low clarity, so that the user's focus is naturally concentrated on the dragged image 62.
[0071] In other embodiments of the present application, the sub-interface 61 displays an image, that is, a screenshot of the interface 10. For ease of operation, the entire screenshot can also be directly blurred or blurred.
[0072] In an exemplary embodiment, the electronic device displays the cross-application transmission interface in response to a user operation on the image 62, such as a drag operation, when the image 62 is dragged to a distance less than a certain threshold from the right edge or the left edge of the screen. Taking the case where the image 62 is dragged to the right edge as an example, the cross-application transmission interface is the interface 70 shown in (4) of FIG2 . In addition, if the electronic device detects that the distance between the image 62 and the left edge or the right edge of the screen is greater than a certain threshold when the user releases the image 62, the interface 20 shown in (2) of FIG2 and a screenshot of the deletion interface 10 are displayed.
[0073] As shown in ( 4 ) of FIG. 2 , the interface 70 may include a sub-interface 71 , an icon area 72 , and an image 73 .
[0074] In an exemplary embodiment, the sub-interface 71 and the icon area 72 are located in the same layer (which may be referred to as the first layer), and the image 73 is located above the first layer.
[0075] The content displayed by the sub-interface 71 is basically the same as the content displayed by the interface 10. In the embodiment of the present application, the content displayed by the sub-interface 71 is a screenshot of the interface 10. The sub-interface 71 can be considered as the interface obtained by performing a three-dimensional transformation on the screenshot of the interface 10. In the interface 70, the sub-interface 71 can present the visual effect of the interface 10 being pushed inward on the screen, that is, the visual effect of "opening the door". It is understandable that this visual effect of "opening the door" can more intuitively metaphorically represent the behavior of the transmission element. Optionally, in the interface 70, the background behind the sub-interface 71 can be the desktop wallpaper of the electronic device, and the picture obtained by superimposing the blur effect.
[0076] The icon area 72 is the aforementioned side application bar, which can display one or more application icons. In an exemplary embodiment, the application icons displayed in the icon area 72 can be related application icons or service icons in the application recommended by the electronic device based on the elements selected by the user.
[0077] For example, a corresponding text description may be displayed below each icon in icon area 72, such as text 722 below icon 721 and text 724 below icon 723. These text descriptions may indicate the name of the application or service corresponding to the icon. For example, if icon 721 is the icon for the "Global Favorites" service, text 722 may be "Global Favorites." The "Global Favorites" here refers to the aforementioned global favorites service and will not be further described here.
[0078] The text below the icon is only for the user to understand the specific application or function corresponding to the icon. This application does not limit the specific icon style and specific text content.
[0079] Image 73 contains the same content as image 62 and image 11. For example, image 73 may be a thumbnail of image 62, that is, image 73 may be considered as a directly reduced version of image 62. Thus, when a user selects an application icon (i.e., a target icon) in icon area 72 to receive the image, image 73 does not obstruct the icons and text in icon area 72, making it easier for the user to select the desired icon.
[0080] In response to the user moving the image 73 to within a preset distance from the target icon, the electronic device displays the application interface or feedback information corresponding to the target icon. For example, in this example, the target icon is the icon of the global favorites service, and the interface 80 shown in (5) of Figure 2 is displayed. In addition, if the electronic device detects that the distance between the image 73 and any icon in the icon area 72 is greater than the preset distance when the user releases the image 73, the interface 20 shown in (2) of Figure 2 and a screenshot of the deletion interface 10 are displayed.
[0081] Optionally, in order to guide the user to accurately place the dragged element into the required application, when the distance between image 83 and an icon in the icon area 82 is less than a certain threshold, the icon can display certain visual effects, such as the icon and the corresponding text can be attracted by image 83, and the icon and the text corresponding to the icon can be enlarged. For example, in the interface shown in (5) of Figure 2, when image 83 moves to a preset threshold from the global favorites icon 821, the global favorites icon 821 is closer to image 83 than other icons and texts, and icon 821 is enlarged, thereby prompting the user that if they let go of this icon, image 83 (or image 11) will be transferred to the application corresponding to icon 821, thereby improving the efficiency of human-computer interaction.
[0082] In other embodiments of the present application, the sub-interface 61 shown in (3) of Figure 2, the sub-interface 71 shown in (4) of Figure 2, and the sub-interface 81 shown in (5) of Figure 2 may also include a grayscale layer located at the top layer, which is the same as the grayscale layer of the sub-interface 22 shown in (2) of Figure 2, so that the object currently being operated can be highlighted, so that the user's focus can be concentrated on the object being operated.
[0083] In response to moving the image 73 onto the target icon and releasing the hand, the electronic device deletes the screenshot of the interface 10 and displays the interface 90 shown in (6) of Figure 2.
[0084] As shown in (6) of Figure 2 , the interface 90 includes a capsule 91, a pop-up window 92, and a sub-interface 93. The contents displayed in the pop-up window 92 and the sub-interface 93 are the same as those in the interface 20. The interface 90 also includes the capsule 91 located above the interface 20.
[0085] Capsule 91 is used to indicate that the image 83 has been successfully transferred to the application corresponding to the target icon, which is the global favorites service in this example.
[0086] In addition, as mentioned above, after the electronic device receives a click operation on the capsule 91, the capsule expands to display the interface of the application, such as being displayed on top of the screen in the form of a floating window.
[0087] Pop-up window 92 is a prompt window that pops up from the application corresponding to interface 90. Pop-up window 92 is pop-up window 21 shown in (2) of Figure 2. Both pop-up window 92 and capsule 91 can be suspended on the upper layer of sub-interface 93. In particular, pop-up window 92 can be a sliding panel that moves upward from the bottom of the screen to present a sliding visual effect.
[0088] The content displayed by the sub-interface 93 is the same as the interface 10 shown in (1) of Figure 2. The difference is that the sub-interface 93 includes a grayscale layer at the top layer, which can highlight the pop-up window 92, that is, the user can focus on the pop-up window 92.
[0089] As can be seen from the interface change process shown in (1) to (6) of Figure 2, after adopting the information transmission method provided in the embodiment of the present application, when the user long presses an element in the first interface (i.e., the interface of the first application), the first interface is screenshoted, and the second interface shown in (2) of Figure 2, i.e., the interface containing the pop-up window 21, is displayed. Thereafter, the user continues to long press the element, and the element is dragged up to form a target element independent of the interface of the first application, and the dragged target element is displayed at the top of the screen. The interface (i.e., sub-interface 61) located below the dragged target element displayed on the screen is a screenshot of the first interface, i.e., the interface that does not contain the pop-up window 21. Moreover, as can be seen from (4) and (5) of Figure 2, in the process of the target element being dragged up and transferred to another application, the interface of the first application always displays the screenshot of the first interface until the action of transferring the target element across applications is completed, and then the second interface, i.e., the interface containing the pop-up window of the first application, is displayed, as shown in (6) of Figure 2. In other words, during the process of dragging the target element selected by the user until the target element is successfully transmitted to another application in this electronic device or an application of another electronic device, a screenshot of the first interface without the pop-up window 21 is displayed. This avoids the pop-up window from interfering with the user and causing the user to operate incorrectly, thereby improving the operational efficiency of information transmission and ultimately improving the user experience.
[0090] In another scenario, when the user moves the dragged target element to the target icon and releases it, the application corresponding to the target icon can be started, for example, the interface of the application corresponding to the target icon is displayed in a floating window.
[0091] Please refer to Figure 3, which shows another schematic diagram of interface changes during information transmission provided by an embodiment of the present application. This embodiment takes the example of transmitting a text-type content element from a first application to a second application across applications.
[0092] The interface 100 shown in (1) of FIG3 is the interface of the first application. In this embodiment, the first application can be an application such as video, novel, or news. This embodiment uses a video playback application as an example. The interface 100 may include a video playback area 101 and a comment area 102.
[0093] The video playing area 101 is used to play video content. The comment area 102 is used to display the posted comment content, such as text 103, which can be text, pictures, etc. The comment area 102 can also be used to post new comments.
[0094] In addition, as shown in (1) of Figure 3, the content displayed on the electronic device screen also includes a status bar 104 located at the top. In an embodiment of the present application, the interface 10 does not include the content displayed in the status bar 13. The status bar 13 is the system display content of the electronic device.
[0095] The first application supports the user to perform operations such as liking, copying, collecting, and sharing on the posted comment content. In response to the user's first operation (such as a long press operation) on the posted comment content, the electronic device displays a pop-up window prompting the content of the operation that can be performed on the comment. For example, in this example, in response to the long press operation on the published text 103, the electronic device takes a screenshot of the interface 100 (i.e., obtains a screenshot of the first interface) and displays the interface 110 shown in (2) of Figure 3.
[0096] As shown in (2) of FIG3 , the interface 110 may include a sub-interface 111 located at the bottom layer and a pop-up window 112 located at the top layer.
[0097] The content included in the sub-interface 111 is the same as that of the interface 100. Optionally, the sub-interface 100 may further include a grayscale layer to highlight the pop-up window 112 so that the user's focus is concentrated on the pop-up window 112.
[0098] The pop-up window 112 may include the first application supporting the user to perform operations on the selected comment content, such as "like", "dislike", "collect", "share" and other operations.
[0099] The user continues to long press the text 103, and the selected comment content is dragged up to form a text block independent of the first application interface. In an exemplary embodiment, the electronic device displays the interface 120 shown in (3) of Figure 3 in response to the holding time of the first operation on the target element (i.e., text 103) being greater than or equal to a first threshold value (e.g., 1s). In addition, if the holding time of the first operation does not reach a certain threshold value, such as releasing the hand when the long press time is 500ms, the interface shown in (2) of Figure 3 is still displayed, and a screenshot of the deletion interface 100 is deleted.
[0100] As shown in (3) of Figure 3 , interface 120 includes text 121 and sub-interface 122. Sub-interface 122 is a screenshot of interface 100. Text 121 is suspended above sub-interface 122. Furthermore, if the user does not release the finger, text 121 can move within interface 120 as the finger moves.
[0101] The content contained in the text 121 is the same as that of the text 103 in the interface 100 , and the text 121 may be obtained by copying the text 103 .
[0102] Similar to the dragging operation of the picture, the electronic device can also drag up all the contents contained in the text 103 as a whole to form text 121 in response to the user's long press operation on the text 103 reaching a first threshold (such as 1s).
[0103] Optionally, the text 121 may be obtained by reducing the font size of the text 103 , and after the text 103 is dragged up to form the text 121 , the sub-interface 122 may still display the original text 103 .
[0104] Furthermore, a grayscale layer can be overlaid on the entire sub-interface 122, so that the user can be prompted that the text 121 is in a selected and dragged state, so that the user's focus is naturally concentrated on the dragged text 121. In addition, the text 103 can be blurred or blurred to prompt the user that the text 121 is in a selected and dragged state.
[0105] In response to the user's second operation (such as a drag operation) on the text 121, the electronic device displays the interface 130 shown in (4) of Figure 3.
[0106] In an exemplary embodiment, the electronic device displays the cross-application transmission interface in response to the operation of dragging text 121 to a distance less than a certain threshold from the right edge or the left edge of the screen. In this example, the operation of dragging text 121 to the right edge is used as an example. The interface 130 shown in (4) of Figure 3 is the cross-application transmission interface. In addition, if the electronic device detects that the distance between text 121 and the left edge or the right edge of the screen is greater than a certain threshold when the hand is released, the interface shown in (2) of Figure 3 is displayed, as well as a screenshot of the deletion interface 100.
[0107] As shown in (4) of FIG3 , interface 130 may include a sub-interface 131, an icon area 132, and text 133. The content displayed on sub-interface 131 is the same as that on interface 100. In some embodiments of the present application, the content displayed on sub-interface 131 is a screenshot of interface 100. Sub-interface 131 can be considered as an interface obtained by performing a three-dimensional transformation on the screenshot of interface 100. Similar to (4) of FIG2 , in interface 130, sub-interface 131 can present a visual effect of interface 100 being pushed inward on the screen, i.e., a visual effect of "opening a door."
[0108] Optionally, the sub-interface 131 may further include a grayscale layer at the top layer, which can highlight the currently operated object and the icon area 132 on the right side, thereby focusing the user's attention on the operated object and the icon area.
[0109] The icon area 132 is the side application bar, which can display one or more application icons. In an exemplary embodiment, the application icons displayed in the icon area 132 can be icons of related applications or service icons of applications recommended by the electronic device based on the element selected by the user. For example, if the element selected by the user is text, the icon area 132 may include icons of applications such as "Memo", "Notes", "WeChat", "Weibo", etc. that the user may use to receive the text content. In this example, the element selected by the user is text, and the icon area 132 may include icons of applications such as "Memo".
[0110] Similar to the embodiment shown in FIG. 2 , corresponding text descriptions may be displayed below each icon in the icon area 132 , which will not be described in detail here.
[0111] In an exemplary embodiment, the content of text 133 is the same as that of text 103. In an exemplary embodiment, the area occupied by text 133 can be smaller than the area occupied by text 103. In this way, text 133 can avoid blocking a large area of icons and text in icon area 132, making it easier for users to select the desired icon.
[0112] Optionally, similar to (5) in FIG2 , in order to guide the user to accurately place the dragged element into the required application, when the user moves the text 133 to within a preset distance from the target icon, the icon and the corresponding text present a visual effect of being adsorbed by the text 133, and the icon and the corresponding text can be enlarged.
[0113] For example, in the interface shown in (4) of Figure 3, when the user drags the text 133 to a preset distance range from the "Memo" icon 1321, the icon 1321 and the text 1322 both move toward the direction of the text 133 and both are enlarged, prompting the user that the currently selected icon is the "Memo" icon.
[0114] In response to the text 133 being moved to the target icon (such as the "memo" icon) and the user releasing the touch, the electronic device displays the interface 140 shown in (5) of FIG3 and the screenshot of the deletion interface 100. In addition, if the electronic device detects that the distance between the text 133 and any icon in the icon area 132 is greater than a preset distance when the user releases the touch, the interface shown in (2) of FIG3 and the screenshot of the deletion interface 100 are displayed.
[0115] As shown in (5) of Figure 3, the interface 140 may include a main interface 141 and a floating window 142. In this example, the main interface 141 may be a screenshot of the interface 100, and the floating window 142 is the interface corresponding to the "Memo" application. The user can adjust the specific position of the floating window 142 in the interface 140 by pressing and dragging it. In one possible implementation, the interface 140 may also include a pop-up window. For example, the main interface 141 may also be the interface 110 shown in (2) of Figure 3 (such as the main interface 141 may not include a grayscale layer), that is, a pop-up window may also be displayed below the main interface 141, and the floating window 142 is located at the top layer. The floating window 142 may cover part of the pop-up window, and the user can move the display position of the floating window 142 to expose the pop-up window.
[0116] The floating window 142 includes a button bar 1421 at the top and a floating window main interface 1422 below the button bar 1421 .
[0117] The floating window main interface 1422 displays the application interface of the "Memo" application, as shown in (5) of Figure 3. The floating window main interface 1422 includes a title 1424, text 1423, a back button 1425, and a "More" button 1426.
[0118] Text 1423 is the text content transmitted from the video application to the memo application through the cross-application transmission service, that is, the content contained in text 1423 is exactly the same as that of text 133 and text 103.
[0119] The button bar 1421 includes operation buttons for the floating window, such as a close button 1427 , an expand button 1428 , and a minimize button 1429 .
[0120] In response to the user clicking the close button 1427 , the electronic device closes the floating window 142 .
[0121] In response to the user clicking on the expand button 1428, the electronic device displays the interface of the "Memo" application in full screen, i.e., switches the floating window to full screen display. In addition, after the interface of the "Memo" application is displayed in full screen, if the electronic device detects an operation to exit the "Memo" application, it switches to the video application in this example, i.e., after exiting the full screen display of the Memo application on top of the video application, it displays the interface 150 shown in (6) of Figure 3.
[0122] In response to the user clicking the minimize button 1429 or sliding upward from the bottom of the screen, the electronic device collapses the floating window 142 and displays it on the side of the screen in the form of a capsule, which is similar to the capsule 91 shown in (6) of Figure 2, except that the icon of the application "Memo" is displayed in the capsule in this example.
[0123] In this example, the electronic device displays the interface 150 shown in (6) of Figure 3 in response to the user clicking the close button 1427 in the floating window 142. The interface 150 shown in (6) of Figure 3 is the same as the interface 110 shown in (2) of Figure 3, including the sub-interface 151 and the pop-up window 152, which will not be repeated here.
[0124] It can be seen from the interface change process shown in (1) to (6) of Figure 3 that after adopting the information transmission method provided by the embodiment of the present application, after detecting the user's long press operation on the element in the first interface (i.e., the interface of the first application) (such as the text 103 in this example), the first interface is screenshoted, and the second interface shown in (2) of Figure 3 is displayed, that is, the interface containing the pop-up window 112. After the holding time of the long press operation reaches a certain threshold, the long-pressed element is dragged up and located at the top layer of the interface, and the interface located at the lower layer is a screenshot of the first interface. Moreover, after the element is dragged up until it is transmitted to another application (or another electronic device), the interface of the first application displayed on the screen is a screenshot of the first interface. Until the target element is successfully transmitted to another application or another electronic device, the first application interface displayed on the screen after exiting the cross-application transmission interface is an interface containing a pop-up window, that is, the interface shown in (6) of Figure 3. In other words, during the process of dragging the target element selected by the user until the target element is successfully transmitted to another application of this electronic device or an application of another electronic device, the interface of the first application displays a screenshot of the first interface that does not include the pop-up window 112. This avoids the pop-up window from interfering with the user and causing the user to operate incorrectly, thereby improving the operational efficiency of information transmission and ultimately improving the user experience.
[0125] The processes shown in Figures 2 and 3 above are both about transferring a target element from a first application on an electronic device to another application on the same electronic device. The target element here can be any of video, audio, images, text, and documents. The scenarios for transferring video, audio, and documents across applications are similar to the processes in Figures 2 and 3 above, and will not be further described here.
[0126] Furthermore, the information transmission method provided in this application is also applicable to cross-device transmission scenarios. The icon area in the cross-application transmission interface includes application icons for cross-device transmission. Selecting the cross-device transmission application icon in the icon area can transfer the target element to the application of another electronic device. Therefore, the interface change process of the screen during cross-device transmission is the same as the interface change process in the cross-application transmission scenario, and will not be repeated here.
[0127] In addition, the information transmission method provided in the present application is also applicable to split-screen display scenarios, such as when the screen of an electronic device is divided into at least two display areas, each display area displays the interface of a different application. In the split-screen display scenario, the interface change process of the first application (i.e., the application containing the elements to be transmitted) during cross-application transmission or cross-device transmission is the same as the change process shown in Figure 2 or Figure 3, and will not be repeated here.
[0128] The process of the information transmission method provided in the embodiment of the present application will be described in detail below with reference to FIG4 .
[0129] Please refer to FIG4 , which shows a flow chart of an information transmission method provided in an embodiment of the present application. The method is applied to an electronic device and may include the following steps:
[0130] S101, displaying a first interface, where the first interface is an interface of a first application, and content elements displayed on the interface include at least one of pictures, texts, and videos.
[0131] The first application may be any application program installed in the electronic device. The first interface may be any interface of the first application. For example, the first interface of the first application may be the interface shown in (1) of FIG2 or (1) of FIG3.
[0132] S102: In response to a first operation on an element in the first interface, obtain a screenshot of the first interface, store the screenshot, and display the second interface.
[0133] The second interface may include the first interface and a first pop-up window located on an upper layer of the first interface.
[0134] In an exemplary embodiment, the first operation may be a long press operation. After the electronic device detects a user's long press operation on any content element displayed on the first interface (for example, the press duration reaches 200ms), it takes a screenshot of the first interface and stores it. Optionally, the screenshot may be stored in the memory space corresponding to the first application. Storing the screenshot in the memory space can save reading and writing time.
[0135] In an exemplary embodiment, a first logic code can be inserted into the method code for page creation. When creating a page of an application, the first logic code can obtain events reported by the screen to the application, such as touch events, move events, lift events (i.e., press-and-lift events), etc.
[0136] Furthermore, the first logic code can pass the obtained screen-reported events to the logic code for implementing the information transmission method of the present application, and the logic code performs corresponding operations based on each received event. For example, when a touch event is received on the interface corresponding to the first application, a timer is started. If the timer reaches 200ms without receiving a lift event, the touch operation is determined to be a long press operation, and a screenshot of the first interface of the first application is taken and stored in the memory space of the application corresponding to the page.
[0137] At the same time, the first application displays the second interface in response to the user's first operation on the element in the first interface.
[0138] In response to a user long-pressing an element in the first interface, the first application displays a first pop-up window. The first pop-up window prompts the user to perform operations on the selected element. For example, in the scenario shown in FIG2 , the selected content element is an image, and the pop-up window displayed on the second interface includes options such as saving the image, sharing the image, and setting the wallpaper.
[0139] For example, in response to the user's long press operation on the image 11 in the interface 10 shown in (1) of Figure 2, the electronic device takes a screenshot of the interface 10 and displays the interface 20 shown in (2) of Figure 2. The interface 20 in this example is the second interface.
[0140] For another example, in response to a long press operation on the text 103 in the interface 100 shown in (1) of FIG3 , the electronic device takes a screenshot of the interface 100 and displays the interface 110 shown in (2) of FIG3 .
[0141] S103: Displaying a third interface in response to a duration of the first operation being greater than or equal to a first threshold.
[0142] The first threshold in this embodiment can be freely set according to actual needs, for example, 1s.
[0143] In an exemplary embodiment, the logic code for implementing the information transmission method of the present application controls the screen to display a third interface after determining that the holding duration of a long press operation reaches a first threshold (e.g., 1 second) based on received touch events and lift events on the first interface. The third interface may include a screenshot of the first interface and a target element at the top layer, where the target element refers to the element selected by the user through the first operation in the first interface.
[0144] In an exemplary embodiment, after detecting that the pressing duration of the long press operation is greater than or equal to a first threshold, the screenshot of the first interface is overlaid on the second interface. Furthermore, the target element selected by the user on the first interface is dragged up to form an independent element (i.e., the image 62 shown in (3) of Figure 2 or the text 121 shown in (3) of Figure 3)), which is displayed on top of the screen.
[0145] For example, if the user continues to long press the image 11 on the interface shown in (2) of Figure 2, the interface 60 shown in (3) of Figure 2 will be displayed. For another example, if the user continues to long press the text 103 on the interface shown in (2) of Figure 3, the interface 120 shown in (3) of Figure 3 will be displayed.
[0146] S104: Display a fourth interface in response to the second operation on the target element.
[0147] In an exemplary embodiment, the second operation may be a drag operation, i.e., pressing and moving. The logic code for implementing the information transmission method of the present application determines the movement trajectory and movement distance of the touch operation based on the received touch event and movement event corresponding to the first application page, and triggers the screen to display the fourth interface if the distance between the position where the movement stops and the side of the screen is within a preset distance range.
[0148] The fourth interface includes a sub-interface, at least one application icon, and a target element at the top layer. The sub-interface can be obtained by performing a three-dimensional transformation on the first interface, that is, the first interface after the three-dimensional transformation presents a visual effect of a door opening inward.
[0149] The at least one application icon may be located on the left side or the right side of the screen. The at least one application icon here may be an icon of any application installed in the electronic device or a service icon in the application.
[0150] For example, when the user drags the image 62 to a preset distance from the right side of the screen in the interface shown in (3) of FIG. 2 , the interface 70 shown in (4) of FIG. 2 is displayed, and the interface 70 is the fourth interface.
[0151] For another example, when the user drags the text 121 to a preset distance from the right side of the screen in the interface shown in (3) of FIG. 3 , the interface 130 shown in (4) of FIG. 3 is displayed. Interface 130 is the fourth interface.
[0152] In one scenario, the target element can be transferred to the application corresponding to the target icon by moving the target element to the target icon and releasing the target element. After the transfer is completed, an interface including feedback information and the first pop-up window is displayed. This scenario will be described in detail below in conjunction with S105.
[0153] S105 , in response to the third operation on the target element, transferring the target element to the application corresponding to the target icon, displaying the fifth interface, and deleting the screenshot of the first interface.
[0154] The target icon is any one of the at least one application icon mentioned above. Exemplarily, the feedback information can be displayed in the form of a capsule, for example, the capsule 91 shown in (6) of FIG2 is the feedback information of the completed transmission.
[0155] In an exemplary embodiment, the third operation may be dragging the target element to a distance less than a certain threshold from an application icon and then releasing the target element. That is, the user drags the target element to the vicinity of an application icon in the side application bar of the fourth interface and releases the target element, transferring the target element to the application corresponding to the target service icon.
[0156] In one embodiment of the present application, the logic code for implementing the information transmission method of the present application determines the user's hand release location based on received move events and release events corresponding to the dragged element, further determines the target icon based on the hand release location, ultimately transmits the target element to the application corresponding to the target icon, and displays the fifth interface. At the same time, the screenshot of the first interface stored in the memory space of the first application is deleted.
[0157] For example, as shown in (5) of FIG2 , after dragging image 83 to the icon of the global collection and releasing it, image 83 is transferred from the first application to the global collection, and the screen displays the interface shown in (6) of FIG2 , which is the fifth interface.
[0158] In another scenario, the target element is moved to the target icon and released, and the interface of the application corresponding to the target icon is displayed in the floating window, that is, the application corresponding to the target icon is started in the floating window. This scenario is described in detail below in conjunction with S106 to S107.
[0159] S106: Display a sixth interface in response to the third operation on the target element.
[0160] The sixth interface includes a screenshot of the first interface and a floating window displayed on top, and the floating window displays the interface of the application corresponding to the target icon.
[0161] In another scenario, the logic code for implementing the information transmission method of the present application determines the user's hand-off position based on the received movement event and release event corresponding to the dragged element, further determines the target icon based on the hand-off position, and further starts the application corresponding to the target icon in the floating window.
[0162] For example, as shown in (4) of FIG. 3 , the user moves the text 133 onto the memo icon and releases the touch, and the interface shown in (5) of FIG. 3 is displayed.
[0163] S107 , in response to a closing operation on the floating window, displaying the second interface of the first application, and deleting the screenshot of the first interface.
[0164] In an exemplary embodiment, the logic code for implementing the information transmission method of the present application receives a touch event on a close button of a floating window, displays the second interface of a first application, and simultaneously deletes a screenshot of the first interface stored in the memory space of the first application.
[0165] The information transmission method provided in this embodiment obtains a screenshot of the first interface and stores it in the memory after receiving the first operation of the user on the elements in the first interface of the first application. In response to the holding time of the first operation reaching a certain threshold, the screenshot of the first interface and the target element located on the upper layer of the screenshot are displayed. In the process of the target element being dragged up and moved to the target icon, the screenshot of the first interface is always covered in the window of the first application. In this way, after determining that the user's intention is to transmit across applications, the displayed first application interface does not include pop-up windows that interfere with the user, avoiding pop-up windows interfering with user operations and causing user misoperation, thereby improving the operational efficiency of information transmission and ultimately improving the user experience.
[0166] The electronic device provided by this application will be introduced below.
[0167] The electronic device may be a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or a dedicated camera (such as a SLR camera or a compact camera). This application does not impose any restrictions on the specific type of the electronic device.
[0168] FIG5 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
[0169] As shown in Figure 5, the electronic device may include a processor 110, an external memory interface 120, an internal memory 151, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0170] It is understood that the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0171] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0172] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0173] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0174] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0175] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C busses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device.
[0176] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0177] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0178] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0179] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the electronic device's camera function. The processor 110 and the display 194 communicate via the DSI interface to implement the electronic device's display function.
[0180] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0181] USB port 130 is an interface that complies with USB standards and may be a Mini USB port, a Micro USB port, a USB Type-C port, or the like. USB port 130 can be used to connect a charger to charge an electronic device, transfer data between the electronic device and peripherals, connect headphones to play audio, and connect other electronic devices, such as augmented reality devices.
[0182] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0183] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the electronic device's wireless charging coil. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.
[0184] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 151, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0185] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0186] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0187] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied in electronic devices. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0188] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0189] The wireless communication module 160 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0190] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0191] The electronic device implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0192] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, the electronic device can include one or N display screens 194, where N is a positive integer greater than one.
[0193] The electronic device can realize the shooting function through the ISP, camera 193, video codec, GPU, display 194 and application processor.
[0194] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0195] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0196] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency, the DSP performs a Fourier transform on the frequency energy.
[0197] Video codecs are used to compress or decompress digital video. Electronic devices may support one or more video codecs. This allows them to play or record videos in a variety of encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0198] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables intelligent cognitive applications in electronic devices, such as image recognition, face recognition, speech recognition, and text comprehension.
[0199] 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. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0200] The internal memory 151 can be used to store computer executable program codes, which include instructions. The internal memory 151 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 151 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 151 and / or instructions stored in a memory provided in the processor.
[0201] The electronic device can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0202] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0203] The speaker 170A, also called a "speaker," is used to convert audio electrical signals into sound signals. The electronic device can listen to music or make hands-free calls through the speaker 170A.
[0204] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device receives a call or voice message, the voice can be heard by placing the receiver 170B close to the human ear.
[0205] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device can be provided with at least one microphone 170C. In other embodiments, the electronic device can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.
[0206] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0207] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, the electronic device detects the touch intensity based on pressure sensor 180A. The electronic device can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.
[0208] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device through reverse motion to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0209] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0210] The magnetic sensor 180D includes a Hall sensor. The electronic device can use the magnetic sensor 180D to detect the opening and closing of a flip case. In some embodiments, when the electronic device is a flip phone, the electronic device can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.
[0211] The accelerometer 180E can detect the magnitude of an electronic device's acceleration in all directions (generally three axes). When the electronic device is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0212] Distance sensor 180F is used to measure distance. The electronic device can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device can use distance sensor 180F to measure distance to achieve fast focus.
[0213] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device emits infrared light outward through the light emitting diode. The electronic device uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device can determine that there is no object near the electronic device. The electronic device can use the proximity light sensor 180G to detect when the user holds the electronic device close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0214] The ambient light sensor 180L senses ambient light brightness. The electronic device can adaptively adjust the brightness of the display screen 194 based on the perceived ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking photos. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device is in a pocket to prevent accidental touches.
[0215] Fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.
[0216] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device uses the temperature detected by the temperature sensor 180J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device heats the battery 142 to prevent the electronic device from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
[0217] The touch sensor 180K is also referred to as a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also referred to as a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device, at a location different from that of the display screen 194.
[0218] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.
[0219] Keys 190 include a power button, a volume button, and the like. Keys 190 may be mechanical keys or touch-sensitive keys. The electronic device may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device.
[0220] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0221] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0222] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device by inserting it into or removing it from the SIM card interface 195. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. Electronic devices interact with the network through SIM cards to implement functions such as calls and data communications. In some embodiments, the electronic device uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device and cannot be separated from the electronic device.
[0223] In an embodiment of the present application, a program instruction is stored in a memory in an electronic device. After receiving an event of a user's first operation on a content element in a first interface of a first application, the processor 110 executes the program instruction stored in the memory to implement the following process: taking a screenshot of the first interface and storing it, and triggering the display screen to display a second interface (i.e., an interface containing a pop-up window of the first application, such as the interface shown in (2) of Figure 2 or (2) of Figure 3). Further, when the processor 110 detects that the holding time of the user's first operation reaches a certain threshold, the element of the operation is extracted from the first interface and a target element independent of the first interface is formed, and the display screen is triggered to display a screenshot of the first interface on the interface of the first application and display the target element on top. Moreover, after the element is dragged up until it is transferred to another application (or another electronic device), the interface of the first application displayed on the screen is a screenshot of the first interface. Until the target element is successfully transferred to another application or another electronic device, the first application interface displayed on the screen after exiting the cross-application transmission interface is an interface containing a pop-up window, i.e., the interface shown in (6) of Figure 2 or (6) of Figure 3.
[0224] In addition, in an embodiment of the present application, the GPU in the electronic device can perform a three-dimensional transformation on the screenshot of the first interface after the user drags up the information element in the interface, creating a visual effect of the interface being pushed inward on the screen, and displaying recommended application and / or service icons on the side of the screen of the electronic device.
[0225] In addition, in an embodiment of the present application, after the user drags up an information element in the interface, the processor 110 can identify the information element, including identifying the type of the information element and the specific content in the information element, and determine the corresponding application icon and / or application service icon based on the identification result, and generate corresponding program instructions. The program instructions can be used to change the display information of the display screen 194, such as updating the interface in the display screen to a cross-application transmission interface. The icon displayed in the cross-application transmission interface is the application icon and / or application service icon determined by the aforementioned processor 110 based on the identification result.
[0226] In some embodiments, after the user completes information transmission using the "cross-application transmission interface", the processor 110 can also obtain the application service to which the user transmits the information, and generate corresponding program instructions based on the obtained results, and combine with the GPU to display the corresponding interface on the screen (for example, the interface can display a snack bar, capsules, small windows, etc.) to feedback the results of the information element transmission to the user.
[0227] In addition, an operating system runs on top of the above components. operating system, Open source operating system, Operating system, etc. Applications can be installed and run on this operating system.
[0228] The operating system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device.
[0229] FIG6 is a block diagram of the software structure of the electronic device according to an embodiment of the present application.
[0230] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0231] The application layer can include a series of application packages. As shown in Figure 6, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WeChat, memo, music, video, and global favorites.
[0232] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0233] In one possible implementation, the program code for implementing the information transmission method provided by this application can be integrated into the application framework layer. In addition, a first logic code can be inserted into the page creation method. When creating a page for a certain application, the first logic code can obtain events reported by the screen to the application, such as touch events, move events, and lift events (i.e., press-and-lift events). When the first logic code receives the above events and determines that the current operation is a long press operation, it triggers the execution of the program code for implementing the information transmission method, thereby realizing the information transmission process shown in Figure 4.
[0234] As shown in FIG6 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0235] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0236] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0237] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0238] The phone manager is used to provide communication functions for electronic devices, such as call status management (including answering, hanging up, etc.).
[0239] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0240] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0241] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0242] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0243] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0244] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0245] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0246] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0247] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0248] A 2D graphics engine is a drawing engine for 2D drawings.
[0249] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, camera drivers, audio drivers, etc.
[0250] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as iOS or Windows.
[0251] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment. The aforementioned storage medium includes: various media that can store program code, such as flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk.
[0252] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. An information transmission method, characterized in that, Applied to a first electronic device, the method includes: Displaying a first interface, where the first interface includes an interface of a first application, and the content elements displayed in the interface of the first application include at least one of a picture, text, video, audio, and document; In response to a first operation on the content element in the first interface, displaying a second interface, where the second interface includes a first sub-interface and a first pop-up window, and the content displayed in the first sub-interface is the same as the content in the first interface; In response to the duration of the first operation being greater than or equal to a first threshold, displaying a third interface, where the third interface includes a second sub-interface and a target element, the content displayed in the second sub-interface is the same as the content displayed in the first interface, and the content of the target element is the same as the content of the content element in the first interface; In response to a second operation on the target element, displaying a fourth interface, where the fourth interface includes a third sub-interface, the target element, and at least one application icon, and the content displayed in the third sub-interface is the same as the content displayed in the first interface; In response to a third operation on the target element displayed in the fourth interface, transmitting the target element to the application corresponding to the target icon, and displaying a fifth interface, where the fifth interface includes the second interface, and the target icon is any one of the at least one application icon displayed in the fourth interface.
2. The method according to claim 1, characterized in that, The step of "In response to the duration of the first operation being greater than or equal to a first threshold, displaying a third interface" includes: In response to the duration of the first operation being greater than or equal to a first threshold, covering a screenshot of the first interface on the upper layer of the second interface, and displaying the target element above the screenshot.
3. The method according to claim 2, wherein The screenshot of the first interface is obtained in response to a first operation on the content element in the first interface.
4. The method according to claim 3, wherein After obtaining the screenshot of the first interface, the method further includes: storing the screenshot of the first interface.
5. The method according to claim 4, characterized in that, The step of "storing the screenshot of the first interface" includes: storing the screenshot of the first interface in the memory space.
6. The method according to claim 4 or 5, characterized in that, The method further includes: in response to a third operation on the target element displayed in the fourth interface, deleting the screenshot of the first interface.
7. The method according to any one of claims 1 to 6, characterized in that, The first pop-up window includes at least one control; After the step of "In response to a first operation on the content element in the first interface, displaying a second interface", the method further includes: In response to a click operation on the control in the first pop-up window, performing corresponding processing on the content element; Alternatively, after displaying the fifth interface, the method further includes: In response to a click operation on the control in the first pop-up window displayed in the fifth interface, performing corresponding processing on the content element.
8. The method according to any one of claims 1-7, characterized in that, The fifth interface further includes the transmission result of the first electronic device on the target element.
9. The method according to claim 8, wherein The fifth interface includes a transmission feedback bar for prompting the transmission result.
10. The method according to any one of claims 1-7, characterized in that, The step of "In response to a third operation on the target element displayed in the fourth interface, transmitting the target element to the application corresponding to the target icon, and displaying a fifth interface" includes: In response to a third operation on the target element, the target element is transmitted to the service corresponding to the target icon, and a sixth interface is displayed. The sixth interface includes the first interface and a floating window. The interface of the application corresponding to the target icon is displayed in the floating window. The floating window includes a close button and a minimize button; In response to an operation on the close button or the minimize button, a fifth interface is displayed. The content displayed on the fifth interface is the same as the content on the second interface.
11. The method according to any one of claims 1-10, characterized in that, The third operation is an operation of moving the target element to the target icon.
12. The method according to any one of claims 1-11, characterized in that, The target icon is an icon of an application installed in the first electronic device; Alternatively, the target icon is an icon of an application installed in the second electronic device, and the second electronic device is communicatively connected to the first electronic device.
13. An electronic device, characterized in that, The electronic device includes: one or more processors, a memory, and a touch screen; the memory is used for storing program code; the processor is used for running the program code so that the electronic device implements the information transmission method according to any one of claims 1 to 12.
14. A chip system, characterized in that, Comprising: At least one processor and an interface, the interface is used for receiving code instructions and transmitting them to the at least one processor; The at least one processor runs the code instructions to implement the information transmission method according to any one of claims 1-12.
15. A computer-readable storage medium, characterized in that, Instructions are stored thereon, and when the instructions are run on an electronic device, the electronic device is caused to execute the information transmission method according to any one of claims 1 to 12.