Two-dimensional code display method, terminal device, and storage medium
Patent Information
- Application Number
- PCT/CN2024/142872
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-05
- Filing Date
- 2024-12-26
- Publication Date
- 2025-10-02
AI Technical Summary
In the prior art, displaying a QR code requires exiting the display interface corresponding to the current task, which has complicated operation steps, low efficiency, and affects the user experience.
When the first application interface is displayed on the first screen of the terminal device, a floating window and the QR code of the second application are displayed on the first screen by tapping the second screen, and the QR code is displayed on the second screen at the same time. The user does not need to exit the application interface of the first screen, which reduces the operation steps and improves efficiency.
By displaying the QR code on the first screen and the second screen at the same time, the operation steps are reduced, the display efficiency of the QR code is accelerated, the user experience is improved, and the utilization rate of the second screen is increased.
Smart Images

Figure CN2024142872_02102025_PF_FP_ABST
Abstract
Description
QR code display method, terminal device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 5, 2024, with application number 202410254941.1 and invention name “QR code display method, terminal device and storage medium”. The entire contents of the claimed priority are incorporated into this application by reference. Technical Field
[0002] The present application belongs to the field of terminal technology, and in particular relates to a two-dimensional code display method, a terminal device, and a storage medium. Background Art
[0003] When using a terminal device, if a QR code such as a payment code or a ride code is required, the terminal device often needs to interrupt the current task, exit the display interface corresponding to the current task, open the corresponding target application, display the target application's application interface, and display the QR code within that application interface. For example, if the terminal device is playing a video and a QR code such as a payment code or a ride code is required to be presented at this time, the terminal device needs to exit the display interface corresponding to the video and then, in response to the user's operation, display the application interface of the target application corresponding to the QR code. After entering the application interface of the target application, the QR code is further displayed in response to the user's operation.
[0004] This method of displaying QR codes requires cumbersome operating steps and is less efficient in displaying QR codes. Moreover, this method of displaying QR codes requires exiting the display interface corresponding to the current task. After the user completes the code scanning operation, he needs to re-enter the display interface corresponding to the current task to continue the current task, which results in the user taking a long time to re-execute the current task, affecting the user experience. Summary of the Invention
[0005] The embodiments of the present application disclose a QR code display method, a terminal device, and a storage medium, which can solve the technical problems of needing to exit the display interface corresponding to the current task when displaying the QR code, and having many operation steps in the process of displaying the QR code, resulting in low efficiency in displaying the QR code.
[0006] The first aspect of the present application discloses a QR code display method, which is applied to a terminal device, wherein the terminal device includes a first screen and a second screen; when the terminal device is in a folded state, the first screen is not visible to the user; when the terminal device is in an unfolded state, the first screen and the second screen are in opposite directions; the method includes: if the terminal device is in an unfolded state, displaying a first application interface of a first application on the first screen; in response to a first tap operation on the second screen, displaying a first floating window on the first screen, the first floating window including a QR code of a second application, and displaying the QR code of the second application on the second screen; wherein the first floating window is located on the first application interface and the display size of the first floating window is smaller than the display size of the first application interface. The above method, when the terminal device is in an unfolded state, based on the user's tap operation on the second screen, directly displays the QR code of the second application corresponding to the target service to be recommended on the first application interface currently displayed on the first screen, without the user having to exit the first application interface currently displayed on the first screen, thereby reducing the operation steps for displaying the QR code and speeding up the efficiency of displaying the QR code. At the same time, based on the user's tapping operation on the second screen, the QR code of the second application is displayed on the second screen, so that the user can use the QR code of the target application to scan without flipping the terminal device and keeping the display of the first screen facing the user, thereby improving the utilization rate of the second screen and thus improving the user experience.
[0007] In some optional embodiments, the first floating window includes at least one QR code option, each QR code option corresponding to a QR code, and the method further includes: in response to selecting any one of the at least one QR code options, displaying the QR code corresponding to the QR code option in the first floating window, and displaying the QR code corresponding to the QR code option on the second screen. The above method can modify or switch the QR code displayed in the floating window based on user needs when the QR code currently displayed in the floating window does not meet user needs.
[0008] In some optional embodiments, after the first floating window is displayed on the first screen, the method further includes: if it is detected that the QR code of the second application has been scanned, stopping powering the second screen. The above method can stop powering the second screen after the QR code of the second application has been scanned, thereby preventing the continued display of the QR code and avoiding power loss.
[0009] In some optional implementations, after the first floating window is displayed on the first screen, a first listener is registered; based on the business status of the second application obtained by the first listener, it is determined whether the QR code of the second application has been scanned. The above method can promptly determine whether the QR code of the second application has been scanned after the first floating window is displayed on the first screen. In some optional implementations, after the first floating window is displayed on the first screen, the method further includes: if it is detected that the QR code of the second application has been scanned, an indication that the QR code of the second application has been scanned is displayed in the first floating window. The above method can promptly notify the user that the scan has been completed after the QR code of the second application has been scanned, so that the user can understand the scanning situation and improve the user experience.
[0010] In some optional embodiments, the method further includes: starting a timer after the first floating window is displayed on the first screen; if the timer reaches a first preset time, stopping powering the second screen and closing the first floating window. The above method can avoid the situation where the QR code of the second application is displayed on the second screen for a long time.
[0011] In some optional embodiments, the method further includes: if the terminal device is in a folded state and the second application interface of the third application is displayed on the second screen, in response to a second tapping operation on the second screen, a second floating window is displayed on the second screen, and the second floating window includes a QR code of the fourth application; wherein, the second floating window is located on the second application interface and the display size of the second floating window is smaller than the display size of the second application interface. In the above method, when the terminal device is in a folded state, based on the user's tapping operation on the second screen, the QR code of the fourth application corresponding to the target service to be recommended is directly displayed on the second application interface currently displayed on the second screen. The user does not need to exit the second application interface currently displayed on the second screen, which reduces the operation steps for displaying the QR code and speeds up the efficiency of displaying the QR code.
[0012] In some optional embodiments, the method further includes: starting a timer after the second floating window is displayed on the second screen; if the timer reaches a second preset time, closing the second floating window. The above method can avoid the situation where the second floating window is displayed on the second screen for a long time. In some optional embodiments, the first floating window is displayed on the first screen, and the first floating window includes a QR code of the second application, including: determining the target service corresponding to the terminal device based on the geographical fence of the terminal device; if the target application corresponding to the target service is the second application, obtaining the QR code interface of the second application; generating the first floating window based on the QR code interface and the quick service interface of the second application, and displaying the first floating window on the first screen. The above method, based on the geographical fence of the terminal device, can make the determined target service more in line with user needs.
[0013] In some optional embodiments, displaying the QR code of the second application on the second screen includes: mirroring the QR code interface of the second application to obtain a target mirrored interface; and displaying the target mirrored interface on the second screen. The above method can enable the second screen to display the QR code of the second application.
[0014] The second aspect of the present application discloses a terminal device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the terminal device executes the QR code display method described in the first aspect.
[0015] The third aspect of the present application discloses a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on a terminal device, the terminal device executes the QR code display method as described in the first aspect.
[0016] It should be understood that the terminal device described in the second aspect and the computer-readable storage medium described in the third aspect provided above both correspond to the method of the first aspect provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] FIG1 is a schematic diagram of a product form of a terminal device provided in an embodiment of the present application.
[0018] FIG2 is a schematic diagram of a scenario of a method for displaying a QR code when the terminal device is in an expanded state provided in an embodiment of the present application.
[0019] FIG3 is a schematic diagram of switching a QR code in a floating window provided in an embodiment of the present application.
[0020] FIG4 is a schematic diagram of a scenario for displaying payment information provided in an embodiment of the present application.
[0021] FIG5 is a schematic diagram of a back screen code light-up service provided in an embodiment of the present application.
[0022] FIG6 is a schematic diagram of a scenario of a method for displaying a QR code when the terminal device provided in an embodiment of the present application is in a folded state.
[0023] FIG7 is a schematic diagram of the architecture of a terminal device provided in an embodiment of the present application.
[0024] FIG8 is a schematic diagram of a method for displaying a QR code on a second screen provided in an embodiment of the present application.
[0025] FIG9 is a schematic diagram of a method for displaying a QR code on a first screen provided by an embodiment of the present application.
[0026] FIG10 is a flow chart of a method for displaying a QR code according to an embodiment of the present application.
[0027] FIG11 is a flow chart of a QR code display method provided in an embodiment of the present application.
[0028] FIG12 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, words such as "exemplary", "or", and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary", "or", and "for example" is intended to present related concepts in a concrete way.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can mean A or B. "And / or" in this application is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, a, b and c. It should be understood that the order of the steps shown in the flowcharts herein can be changed, and some can be omitted.
[0031] In order to better understand the embodiments of the present application, the following describes the QR code display method provided by the embodiments of the present application with reference to the accompanying drawings. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0032] When a user encounters a scenario where a QR code needs to be displayed while using a terminal device, the user often needs to interrupt the current task, exit the display interface corresponding to the current task, open the target application corresponding to the QR code, and display the target QR code based on the user's operation on the application interface of the target application. The operation process of displaying a QR code in this way is extremely cumbersome, resulting in low efficiency in displaying QR codes. At the same time, this method of displaying a QR code requires exiting the display interface corresponding to the current task. After the user completes the QR code scanning operation, he needs to re-enter the display interface corresponding to the current task to continue the current task. As a result, it takes a long time for the user to re-execute the current task, affecting the user experience.
[0033] In view of the above problems, an embodiment of the present application provides a QR code display method. The method can be applied to a terminal device provided with a foldable device. In one embodiment, the terminal device may include a first screen and a second screen that can be folded inward. When the terminal device is in a folded state, the first screen is not visible to the user. When the terminal device is in an unfolded state, the display directions of the first screen and the second screen are opposite to each other. For example, the first screen faces the user and the second screen faces away from the user. The first screen facing the user means that the side of the first screen used to display content is opposite to the user, and the user can see the content displayed on the first screen; the second screen facing away from the user means that the side of the second screen used to display content is opposite to the user, and the user cannot see the content displayed on the second screen. When using the first screen to display an application interface, the method can directly display a first floating window containing a QR code of a target application on the application interface based on a tapping operation on the second screen. The user does not need to exit the application interface, which reduces the operation steps for displaying the QR code and speeds up the efficiency of displaying the QR code. At the same time, in response to the tapping operation on the second screen, the QR code of the target application is displayed on the second screen, so that the user can use the QR code of the target application to scan without flipping the terminal device, thereby improving the utilization rate of the second screen and further enhancing the user experience.
[0034] The folding screen can be folded along a folding edge or a folding axis to form a first display area and a second display area. The first display area and the second display area are two different display areas in the same display screen. Terminal devices can be divided into two categories according to the folding method of the folding screen. One category is a terminal device with a folding screen folded outward, referred to as an external folding screen device, and the other category is a terminal device with a folding screen folded inward, referred to as an internal folding screen device. Among them, taking the folding screen that can be folded to form the first display area and the second display area as an example, after the external folding screen device is folded, the display direction of the first display area formed by the folding screen is opposite to the display direction of the second display area; after the internal folding screen device is folded, the display direction of the first display area of the folding screen is opposite to the display direction of the second display area.
[0035] In some embodiments of the present application, the terminal device is an inward folding screen device as an example for explanation, and the folding screen in the inward folding screen device can be referred to as the first screen. For example, please refer to Figure 1, which shows a schematic diagram of the product form of a terminal device provided in an embodiment of the present application. Among them, Figure 1 (a) is a schematic diagram of the form when the first screen is fully unfolded. At this time, the terminal device 100 is in an unfolded state. The first screen can be folded inward along the folding edge in the direction shown in Figure 1 (b), and can form a semi-folded form of screen A (i.e., the first display area) and screen B (i.e., the second display area) as shown in Figure 1 (b). After continuing to fold, refer to Figure 1 (c) until the first screen of the terminal device is completely folded and the terminal device is in a folded state. After the first screen of the terminal device is completely folded, screen A and screen B are opposite and invisible to the user.
[0036] The back of the first screen of the inner folding screen device involved in some embodiments of the present application also includes a display screen, which can be called a second screen. The first screen is an inner folding screen (referred to as the "inner screen"), and the second screen can be called an outer screen relative to the first screen. The second screen can be set on the back of the first display area or the second display area formed by the first screen. For example, as shown in (c) in Figure 1, a C screen (i.e., the second screen) can be set on the back of screen A. Screen C as shown in (c) in Figure 1 is only an example of the second screen. The screen size and screen shape of the second screen can be set according to actual needs, such as setting it to a rectangle, square, trapezoid, ellipse, etc. In the above Figure 1, the first screen of the terminal device is folded horizontally, that is, it is folded into two upper and lower screens (i.e., screen A and screen B) along the horizontal folding edge on the first screen. In one embodiment of the present application, the first screen of the terminal device can be folded vertically, that is, it is folded into two left and right screens (i.e., screen A and screen B) along the vertical folding edge on the first screen.
[0037] The inward folding screen device can be folded into three forms: folded state, hovering state, and unfolded state. In an embodiment of the present application, when the inward folding screen device is in the folded state, after the first screen is fully folded, the display orientations of screen A and screen B are opposite to each other, and screen A and screen B are invisible to the user, that is, the first screen is invisible to the user, and screen C is visible to the user, that is, the second screen is visible to the user. In an embodiment of the present application, when the inward folding screen device is in the unfolded state, the display orientations of screen A and screen B are the same, and screen A and screen B are visible to the user, that is, the first screen is visible to the user, and screen C is visible to the user, that is, the second screen is visible to the user, wherein the display orientations of screen C and screen A (screen B) are opposite to each other. For example, the first screen faces the user, and the second screen faces away from the user. For another example, the first screen faces away from the user, and the second screen faces the user.
[0038] It should be understood that the above-mentioned FIG1 is merely an example and does not constitute a limitation on the embodiments of the present application. For example, in a specific implementation, in addition to the first and second screens described above, the terminal device may also include other display screens, which are not limited in the embodiments of the present application. For example, in other embodiments, the terminal device implementing the QR code display method of the present application may also include a foldable screen that can be folded in half. In this embodiment, the foldable screen can be divided into a first screen and a second screen, which fold along the longitudinal center axis of the foldable screen. After the foldable screen is folded outward, the display orientations of the first and second screens are opposite to each other. For example, the display orientation of the second screen can face the user, while the display orientation of the first screen can face away from the user. When the foldable screen is unfolded, the display orientations of the first and second screens are the same. Furthermore, the terminal device may also include a third screen. In one embodiment of the present application, the display orientation of the third screen is the same as that of the first screen when the foldable screen is in the folded state. For example, when the foldable screen is in the folded state, the display orientation of the second screen can face the user, while the display orientation of the first and third screens is the same, facing away from the user.
[0039] In one embodiment of the present application, the method provided in the embodiment of the present application can also be applied to an external folding screen device. When the external folding screen device is in a folded state, the second screen is folded to be flush with the rear camera; the display orientations of the first screen and the second screen are opposite. For example, the first screen faces the user and the second screen faces away from the user. For another example, the first screen faces away from the user and the second screen faces the user. When the external folding screen device is in an unfolded state, the second screen is flush with the front camera, and at this time the first screen and the second screen are displayed as one screen.
[0040] Below, based on the inward folding screen device shown in Figure 1, combined with the following drawings, an example is given to illustrate the application scenario of the method for displaying a QR code when the inward folding screen device provided by this application is in the unfolded state.
[0041] As an example, Figure 2 is a scene diagram of the QR code display method when the terminal device provided by an embodiment of the present application is in an expanded state. As shown in Figure 2 (a), at a first time point, the user holds the terminal device in the expanded state so that the first screen faces the user and the second screen faces away from the user. The second screen is not shown in Figure 2 (a). The first screen is displaying the application interface of the video application and performing the video playback task. During the video playback process, if the user has the need to display the target service to be recommended, the user can perform a preset gesture operation on the second screen. The target service may include displaying the payment code payment in the payment application, displaying the payment code collection in the payment application, or displaying the ride code ride in the payment application and other services. The preset gesture operation may include a tapping operation. The tapping operation may include tapping the second screen twice in a row (i.e., double-clicking the second screen).
[0042] Assuming the target service is to display the payment code for Application 1, as shown in Figure 2(b), in response to a tap, the terminal device displays a floating window 201 on the first screen. Floating window 201 includes the payment code for Application 1. Floating window 201 is displayed above the application interface of the video application, and the display size of floating window 201 is smaller than the display size of the application interface of the video application. Simultaneously, as shown in Figure 2(c), in response to the tap, the terminal device displays the payment code for Application 1 on the second screen. In one embodiment of the present application, in response to the tap, the terminal device determines the target service to be recommended on the terminal device and determines the target application based on the target service. In response to the user's tap, the terminal device displays the QR code corresponding to the target application on the second screen. In one embodiment of the present application, in response to the tap, the terminal device determines the target service to be recommended on the terminal device and generates and displays a floating window containing the QR code of the target service based on the target service. In this embodiment, when the terminal device is in the expanded state, the QR code corresponding to the target service to be recommended can be displayed simultaneously on the first and second screens based on the tap on the second screen.
[0043] In one embodiment of the present application, if the QR code currently displayed in the floating window 201 does not meet the user's needs, the user can also modify or switch the QR code displayed in the floating window 201. In one embodiment of the present application, as shown in (b) in Figure 2, the floating window 201 may also include a QR code option bar 202, and the QR code option bar 202 includes at least one QR code option. Each QR code option corresponds to a QR code. Different QR code options can correspond to different QR codes. For example, the QR code option bar 202 includes a QR code option corresponding to the payment code of application 1, a QR code option corresponding to the boarding code of application 1, a QR code option corresponding to the health code of application 1, a QR code option corresponding to the payment code of application 2, a QR code option corresponding to the boarding code of application 2, and a QR code option corresponding to the health code of application 2, etc. In one embodiment of the present application, in response to the user's selection operation of any one of the QR code options, the QR code corresponding to any one of the QR code options can be displayed in the first floating window, and the QR code corresponding to any one of the QR code options can be displayed on the second screen.
[0044] FIG3 is a schematic diagram of a switching QR code in a floating window provided by an embodiment of the present application. As shown in FIG3 (a), the floating window 201 displays the payment code of Application 1, and the QR code option bar 202 displays the QR code options corresponding to the payment code of Application 1, the QR code options corresponding to the boarding code of Application 1, the QR code options corresponding to the payment code of Application 2, and the QR code options corresponding to the boarding code of Application 2. For example, after the floating window 201 displays the payment code of Application 1, as shown in FIG3 (a) to (b), in response to the user selecting the QR code option corresponding to the payment code of Application 2, the terminal device updates the payment code of Application 1 displayed in the floating window 201 to the payment code of Application 2, and updates the payment code of Application 1 displayed on the second screen to the payment code of Application 2.
[0045] In addition, after the floating window is displayed, when the user completes confirmation of the content displayed in the floating window, it may be necessary to close the floating window. In one embodiment of the present application, as described in (b) of Figure 2, the floating window 201 includes a cancel control 203. The cancel control is used to close the floating window. In response to the user's click operation on the cancel control, the floating window 201 is closed, and the QR code of the target service is stopped from being displayed on the second screen. In one embodiment of the present application, in response to the user's click operation on the cancel control, the power-on of the second screen can be stopped and the second screen can be turned off. In another embodiment of the present application, in response to the user's click operation on the cancel control, the floating window 201 can be closed first, and the power-on of the second screen can be stopped after a preset time after the floating window 201 is closed, and the second screen enters the off-screen state. The preset time can be set according to actual needs, such as 5S, 10S, etc.
[0046] To ensure that users are promptly informed of the QR code scanning status of the target service, in one embodiment of the present application, after a floating window is displayed on the first screen, it is determined whether the QR code of the target service has been scanned. If it is determined that the QR code of the target service has been scanned, an indication indicating that the QR code of the target service has been scanned is displayed in the first floating window. This indication may include payment information. Figure 4 is a schematic diagram of a scenario for displaying payment information provided by an embodiment of the present application. For example, as shown in Figures 4 (a) and (b), after a floating window 201 is displayed on the first screen, if it is determined that the payment code of Application 1 has been scanned, the payment information corresponding to the payment code of Application 1 is displayed in floating window 201. To prevent the QR code of the target service from continuing to be displayed on the second screen after the QR code of the target service has been scanned, in one embodiment of the present application, if it is determined that the QR code of the target service has been scanned, the display of the QR code of the target service on the second screen is stopped, such as by stopping the power supply to the second screen and shutting down the second screen. For example, as shown in Figures 4 (a) and (b), if it is determined that the payment code of Application 1 has been scanned, the power supply to the second screen is stopped and the second screen is shut down, and the payment code of Application 1 is no longer displayed on the second screen.
[0047] In order to avoid the situation where the QR code is displayed on the second screen due to the user's accidental tapping of the terminal device, in one embodiment of the present application, in response to the user's first tapping operation on the second screen, it is determined whether the terminal device has enabled the back screen code light-up service. If it is determined that the terminal device has enabled the back screen code light-up service, a first floating window including the QR code of the target service is displayed on the first screen, and the QR code of the target service is displayed on the second screen. If it is determined that the back screen code light-up service is not enabled on the terminal device, the first floating window will not be displayed on the first screen, and the second screen will not be powered on, that is, the QR code of the target service will not be displayed on the second screen.
[0048] Figure 5 is a schematic diagram of a back screen code light-up service (also known as TapTap service) provided in an embodiment of the present application. As shown in Figure 5 (a) to Figure 5 (b), the user can click on the "Folding Screen Zone" option 1061 in the settings interface to trigger the terminal device to display the folding screen zone interface. As shown in Figure 5 (b) to Figure 5 (c), the user can click on the "Back Screen Code Light-up" option 1062 in the folding screen zone interface to trigger the terminal device to display the settings interface corresponding to the back screen code light-up service. As shown in Figure 5 (c), the back screen code light-up interface may include: a back screen code light-up option, a display position option, an added service option, and an add service option 1063. Among them, the back screen code light-up option can be used to trigger the terminal device to start the back screen code light-up service; the display position option can be used to set the screen that displays the QR code, such as the back screen, which is a screen with a display direction opposite to the current display screen (such as the second screen described in the above embodiment). Added service options include the QR code options that are displayed by default in the floating window after receiving a preset user gesture. Furthermore, users can also manually change the default QR code options displayed in the floating window. Add service option 1063 is used to add QR code options. As shown in Figures 5(c) to 5(d), the user can also click Add service option 1063 to trigger the terminal device to display Add service interface 1064. This Add service interface 1064 provides multiple payment applications installed on the terminal device and the QR codes supported by each payment application. Users can manually add one or more QR code options based on their needs by operating the Add control. After receiving the user's preset gesture, these manually added QR code options will be displayed in the QR code options bar 202 shown in Figure 2(b). For example, as shown in Figure 5(c), if the user sets the Application 1 payment code to be displayed by default and the terminal device is in the expanded state, in response to the user performing a double tap on the second screen, the terminal device displays a floating window that includes the QR code options corresponding to the Application 1 payment code.
[0049] In one embodiment of the present application, the user can turn on or off the back screen light up code service through the service switch corresponding to the back screen light up code service in the drop-down menu. In one embodiment of the present application, by long pressing the service switch corresponding to the back screen light up code service, the terminal device can be triggered to display the setting interface corresponding to the back screen light up code service, such as the interface shown in (c) in Figure 5, so that the user can set the back screen light up code service. In one embodiment of the present application, if a tapping operation is received on the second screen and it is determined that the back screen light up code service is not turned on by the terminal device, a service activation prompt is displayed on the first screen, prompting the user to turn on the back screen light up code service. In one embodiment of the present application, the service activation prompt may include a setting control corresponding to the back screen light up code service. In response to the user clicking the setting control, the setting interface corresponding to the back screen light up code service is displayed, such as the interface shown in (c) in Figure 5, so that the user can turn on the back screen light up code service.
[0050] The scenario provided in Figure 2 is a scenario of a method for displaying a QR code when the terminal device is in an unfolded state. When the terminal device is in a non-expanded state, such as when the terminal device is in a folded or semi-folded state, when the terminal device uses the second screen to display the second application interface of the second application, a second floating window can also be displayed on the second screen based on a user tapping operation on the second screen. The second floating window includes a QR code of a target service to be recommended. As an example, Figure 6 is a schematic diagram of a scenario of a method for displaying a QR code when the terminal device is in a folded state provided by an embodiment of the present application. As shown in Figure 6 (a), the first screen of the terminal device in the folded state is invisible to the user and the first screen is not shown in Figure 6. The second screen is facing the user. As shown in Figure 6 (a), the second screen is displaying the application interface of a video application and performing a video playback task. During the video playback process, if the user needs to display the target service to be recommended, the user can perform a preset gesture operation on the second screen. The target service may include displaying a payment code in a payment application to pay, displaying a payment code in a payment application to receive payment, or displaying a ride code in a payment application to board a ride. The preset gesture operation may include a tapping operation. The tapping operation may include tapping the second screen twice in a row (i.e., double-clicking the second screen). Assuming that the target service is to display the payment code of Application 1, as shown in (b) of Figure 6, the terminal device displays a floating window 301 on the second screen in response to the tapping operation, and the floating window 301 includes the payment code of Application 1. The floating window 301 is displayed on the application interface of the video application, and the display size of the floating window 301 is smaller than the display size of the application interface of the video application. In this embodiment of the present application, when the terminal device is in a folded state, the QR code corresponding to the target service can be displayed on the second screen based on the tapping operation on the second screen. In one embodiment of the present application, the target service corresponding to the terminal device can be determined, and a floating window containing the QR code in the target service can be generated and displayed based on the target service. The user does not need to exit the application interface, which reduces the operation steps for displaying the QR code and speeds up the efficiency of displaying the QR code.
[0051] In order to better understand the method for displaying a QR code provided in the embodiment of the present application, the following description is given in conjunction with the software architecture of the terminal device in the embodiment of the present application.
[0052] Figure 7 is a schematic diagram of the architecture of a terminal device provided in an embodiment of the present application. As shown in Figure 7, the terminal device can adopt a layered architecture to divide the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software layers of the software structure are divided from top to bottom into: application (APP) layer, application framework (FW) layer, system library (FWK LIB) and kernel layer. The above software architecture runs on the hardware layer, which may include a display screen, GPU and DPU, etc.
[0053] The application layer, also known as the application layer, can include a series of application packages. Application packages can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, system user service (system UI) and third-party applications. As shown in Figure 7, the application layer can include camera and payment applications. The payment application can be a system application or a third-party payment application. As shown in Figure 7, the terminal device can support the installation of multiple payment applications, such as application 1 and application 2. System user service is used to provide a quick service interface and the display of a drop-down taskbar. For example, the system user service can be used to display a QR code of a payment application on the display screen (first screen or second screen) in response to a user's tap operation, such as a payment QR code, a ride QR code, a communication QR code, etc. of the payment application. In one embodiment of the present application, the system user service can also be used to draw floating windows and masks, etc. When these application packages are running, the various service modules provided by the application framework layer can be accessed through the application programming interface (API) and the corresponding intelligent services can be executed.
[0054] The application framework layer provides APIs and a programming framework for applications in the application layer. The application framework layer includes predefined functions. As shown in Figure 7, the application framework layer includes the window manager service (WMS), sensor manager service, package manager service (PMS), service recommendations, context awareness, and display manager. The WMS manages all windows in the Android system. It can obtain the display size, determine whether a status bar is present, lock the screen, and take screenshots. The sensor manager service processes information reported by sensor drivers in the hardware layer, such as gestures detected by the sensors. The sensor manager monitors preset gesture events. Service recommendations can recommend services that users may need, such as travel cards and QR codes. Context awareness determines the target scenarios for service recommendations, such as ride-hailing, payment, and travel. Based on the target scenarios identified by context awareness, service recommendations determine target services to recommend, such as displaying a ride code, payment code, or travel card. The PMS manages all installed applications in the Android system. The display manager is used to manage the screen display of the terminal device, such as managing the first screen and the second screen of the inward folding device, and controlling the display content to be displayed on the first screen and / or the second screen. The display manager can be responsible for the synthesis and display of layer data. For example, the display manager can provide layer information to the hardware composer (HWC) HAL, and the HWC HAL can decide whether to use the underlying hardware of the HWC or use GPU synthesis based on the hardware performance. In one embodiment of the present application, the application framework layer may also include an activity manager service (AMS). The AMS is used to manage the life cycle of each application.
[0055] The system library includes multiple functional modules, such as the layer manager (Surface Flinger), media libraries, a 2D graphics engine, and a 3D graphics processing library. Surface Flinger manages the display subsystem, managing the screen display and providing fusion of 2D and 3D layers for multiple applications. Surface Flinger manages the application interfaces (Surfaces) corresponding to applications. For example, it coordinates the Surfaces of different applications to ensure that their rendered content is updated synchronously on the screen. Applications use Surfaces to manage and render the content displayed in their windows. Surface Flinger can use the Open Graphics Library (OpenGL) hardware composer (HWC) to compose Surfaces. The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports a variety of audio and video codecs, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The 2D graphics engine is a drawing engine for 2D drawing, such as SGL. 3D graphics processing libraries, such as OpenGL ES, are used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
[0056] Within the system libraries, the Android Runtime includes the core libraries and a virtual machine. The Android Runtime is responsible for scheduling and management of the Android system. The core libraries consist of two parts: one for the Java language's callable functions and the other for the Android core libraries. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files in the application layer and application framework layer as binary files. The virtual machine is responsible for performing functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0057] The kernel layer is the layer between hardware and software and belongs to the bottom layer of the Android system. The kernel layer can contain various driver interfaces, such as display drivers, audio drivers, sensor drivers, etc.
[0058] FIG8 is a schematic diagram of a method for displaying a QR code on a second screen provided by an embodiment of the present application. The method can be applied to a terminal device. The system architecture of the terminal device can be referred to the relevant description of FIG7 . As shown in FIG8 , the method includes:
[0059] S401: The sensor manager sends a target tap event received by the second screen to the system user service.
[0060] The target tap event may be two consecutive tap operations on the second screen. The two consecutive tap operations may include a time interval between the first tap operation and the second tap operation that is less than or equal to a preset time length, such as 0.3s, 0.5s, etc. In one embodiment of the present application, the sensor driver reports the target tap event received by the second screen to the sensor manager.
[0061] In one embodiment of the present application, at least one sensor may be provided at a position corresponding to the second screen on the body of the inner folding device. The sensor may be used to collect vibration signals generated on the back screen (such as the second screen). The sensor may include one or more of an acceleration (ACC) sensor, an impact sensor, and a vibration sensor. In one embodiment of the present application, when the sensor is an ACC sensor, the size, position, and time interval of the mechanical force applied by the user to the second screen may be calculated based on the ACC signal collected by the ACC sensor, thereby determining whether the input is a target tapping event.
[0062] In one embodiment of the present application, the system user service may register with the sensor manager to monitor gesture events. The monitoring gesture events are used to monitor target tap events, so that the sensor manager sends the received target tap events to the sensor manager. In one embodiment of the present application, the system user service may register with the sensor manager to monitor gesture events when any display screen in the inner folding device is on, such as when the first screen is on and the second screen is on. This method can avoid monitoring target tap events when no screen is on, resulting in power loss or waste of computing power. In another embodiment of the present application, the system user service may register with the sensor manager to monitor gesture events when any display screen in the inner folding device is on and unlocked.
[0063] In one embodiment of the present application, the sensor manager monitors the target tap event and sends the target tap event to the system user service of the application layer to trigger the system user service to start the application that provides the QR code, such as a payment application. In the embodiment of the present application, the application that provides the QR code is a payment application as an example for illustration, which does not limit the present application. In actual implementation, the application that provides the QR code can also be any application that provides the QR code, such as a social application, a financial application, etc.
[0064] S402: After receiving the target tap event, the system user service sends a service confirmation request to the service recommendation.
[0065] The service confirmation request is used to determine the target service that the terminal device will recommend to the user. Target services may include services that display QR codes, such as displaying the payment code for application 1, displaying the boarding code for application 1, displaying the payment code for application 2, displaying the payment code for application 1, and displaying the health code for application 2.
[0066] S403: The service recommendation sends the target service to the system user service.
[0067] The target service includes a corresponding QR code. In one embodiment of the present application, in response to the received service confirmation request, the service recommendation can determine the target scene corresponding to the terminal device, and determine the target service based on the determined target scene. In one embodiment of the present application, the mapping relationship between the scene and the service can be pre-set, and the service corresponding to the target scene can be determined based on the mapping relationship, and the service can be determined as the target service. For example, the service corresponding to the shopping mall scene is the payment code of the display application 1; the service corresponding to the restaurant dining scene is the payment code of the display application 2; the service corresponding to the subway riding scene is the boarding code of the display application 2. In one embodiment of the present application, the service recommendation can be based on the frequency of users using various types of services in each scene, perform intelligent learning, determine the service corresponding to each scene, and obtain the mapping relationship between the scene and the service. For example, the service with the highest frequency of use in a scene can be determined as the service corresponding to the scene.
[0068] In one embodiment of the present application, the service recommendation can send a scene determination request to the scene perception module, so that the scene perception module determines the target scene currently corresponding to the terminal device. The scene perception module can determine the target scene based on geographic fence information and / or user behavioral intention. For example, the scene perception module can generate multiple scenes according to different geographical locations and different times, such as a subway station scene in the morning, a shopping mall scene at noon, etc. User behavioral intention may include the services used by the user. For another example, the scene perception module can generate multiple scenes according to different geographical locations and different service types, such as a subway station riding scene, a shopping mall shopping scene, a restaurant dining scene, etc. For another example, the scene perception module can generate multiple scenes according to different geographical locations, different times and different service types, such as a subway station riding scene in the morning, a shopping mall shopping scene in the evening, a restaurant dining scene at noon, etc.
[0069] S404: The system user service sends a start request of a target application corresponding to the target service to the package manager.
[0070] In one embodiment of the present application, the target application is the application that provides the corresponding QR code in the target service. For example, if the target service displays the payment code for Application 1, the payment code for Application 1 is provided by Application 1, so the target application of the target service is Application 1. For another example, if the target service displays the boarding code for Application 2, the boarding code for Application 2 is provided by Application 2, so the target application of the target service is Application 2. The launch request is used to launch an application.
[0071] S405: The package manager starts the target application.
[0072] In one embodiment of the present application, the package manager may start the target application by calling a software development kit (SDK) corresponding to the target application.
[0073] S406: The package manager sends application startup information to the window manager.
[0074] The application startup information is used to prompt the startup of the target application, for example, to prompt the startup of the target application.
[0075] S407 . In response to the received application startup information, the window manager obtains a QR code interface corresponding to the target service from Surface Flinger.
[0076] The QR code interface is used to display the QR code corresponding to the target service.
[0077] In one embodiment of the present application, after the target application is started, it sends a window creation request to the window manager, causing the window manager to establish a window for the target application. In one embodiment of the present application, the target application can call Surface Flinger through the Surface Flinger API and control Surface Flinger to generate a QR code interface corresponding to the target service. For example, after the window manager establishes the window of the target application, it can call Surface Flinger to generate a QR code interface corresponding to the target service.
[0078] In one embodiment of the present application, after receiving the notification information of successful interface drawing sent by the target application, the window manager can send a request to Surface Flinger to obtain the QR code interface corresponding to the target service, thereby avoiding the situation of obtaining the QR code interface when the QR code interface is not drawn, and improving the efficiency of obtaining the QR code interface.
[0079] S408: After receiving the QR code interface corresponding to the target service, the window manager sends the QR code interface of the target service to the system user service.
[0080] S409: The system user service requests the window manager to create a window.
[0081] In one embodiment of the present application, after receiving the target tap event, the system user service may send a window creation request to the window manager, causing the window manager to create a window for the system user service. Step S409 may be executed at any time between steps S401 and S409. In this embodiment of the present application, there is no time limit for executing step S409, and step S409 may be executed simultaneously with step S402.
[0082] S410: The system user service calls Surface Flinger to generate a quick service interface corresponding to the target service.
[0083] In one embodiment of the present application, the system user service may call Surface Flinger through the Surface Flinger API and control Surface Flinger to generate a quick service interface.
[0084] The quick service interface is an interface for displaying the target service. In one embodiment of the present application, the quick service interface includes a pre-set QR code area. The QR code area is used to display the QR code of the target service. The style of the quick service interface can be set based on actual needs.
[0085] S411. The system user service calls Surface Flinger to add the QR code interface corresponding to the target service to the quick service interface to generate a target floating window.
[0086] The target floating window is used to display the target service. In one embodiment of the present application, the target floating window is used to be displayed on the application interface currently displayed on the inner folding device. The display size of the target floating window is smaller than the display size of the application interface currently displayed on the inner folding device.
[0087] In one embodiment of the present application, a QR code interface can be added to the QR code area in the quick service interface to obtain a target floating window. In one embodiment of the present application, the QR code interface can be added to the QR code area in the quick service interface by scaling, cropping, and other operations on the QR code interface.
[0088] S412: The system user service sends a window display request to the window manager, so that the target floating window is displayed on the screen.
[0089] In one embodiment of the present application, after the system user service generates a target floating window, it sends a window display request to the window manager, causing the window manager to control the display of the target floating window on the current display screen of the inner-folding device. For example, the current display screen is the screen of the inner-folding device that is currently in the bright and unlocked state. For example, the current display screen of the inner-folding device is the first screen, and the target floating window is displayed on the first screen. For another example, the current display screen of the inner-folding device is the second screen, and the target floating window is displayed on the second screen.
[0090] S413: The window manager sends a first display notification to Surface Flinger, so that the target floating window is displayed on the terminal device.
[0091] In one embodiment of the present application, the first display notification is used to control the currently displayed screen to display the target floating window, that is, to control the currently displayed screen to display the QR code corresponding to the target service. For example, if the currently displayed screen is the first screen, the first display notification is used to control the first screen to display the target floating window, that is, to control the first screen to display the QR code corresponding to the target service. For another example, if the currently displayed screen is the second screen, the first display notification is used to control the second screen to display the target floating window, that is, to control the second screen to display the QR code corresponding to the target service.
[0092] In one embodiment of the present application, in response to receiving the first display notification, Surface Flinger controls the currently displayed screen, through the display driver, to display the target floating window, that is, to control the currently displayed screen to display the QR code corresponding to the target service. For example, Surface Flinger can send a window display notification to the display driver. In response to the received window display notification, the display driver controls the currently displayed screen to display the target floating window.
[0093] The method for displaying a QR code provided in the above embodiment can be used when the current display screen of the inner folding device is the first screen, such as when the inner folding device is in an unfolded state. The target service can be determined through a target tapping event on the second screen, and the QR code corresponding to the target service can be directly displayed on the application interface currently displayed on the first screen. The user does not need to exit the application interface currently displayed on the first screen, which reduces the operation steps for displaying the QR code and speeds up the efficiency of displaying the QR code; when the current display screen of the inner folding device is the second screen, such as when the inner folding device is in a folded state, the target service can be determined through a target tapping event on the second screen, and the QR code corresponding to the target service can be directly displayed on the application interface currently displayed on the second screen. The user does not need to exit the application interface currently displayed on the second screen, which reduces the operation steps for displaying the QR code and speeds up the efficiency of displaying the QR code.
[0094] FIG9 is a schematic diagram of a method for displaying a QR code on the first screen provided by an embodiment of the present application. The method can be applied to a terminal device. The system architecture of the terminal device can be referred to the relevant description of FIG7 . As shown in FIG9 , the method includes:
[0095] Step S501: The system user service sends a back screen light code request to the window manager.
[0096] In one embodiment of the present application, step S501 may be executed after step S402 shown in FIG. 8 is executed.
[0097] In one embodiment of the present application, if the terminal device turns on the back screen bright code service, the system user service sends a back screen bright code request to the window manager. If the terminal device does not turn on the back screen bright code service, the process ends.
[0098] In some embodiments of the present application, the back screen bright code service can be used to determine whether the terminal device supports the QR code in the back screen display target service of the current display screen. When the back screen bright code service is turned on, it is determined that the terminal device supports the QR code in the back screen display target service of the current display screen. The back screen of the current display screen is a display screen whose display direction is opposite to the display direction of the current display screen. For example, when the terminal device is in the unfolded state and the current display screen is the first screen, the back screen of the current display screen is the second screen. For another example, when the terminal device is in the unfolded state and the current display screen is the second screen, the back screen of the current display screen is the first screen.
[0099] In one embodiment of the present application, if the back screen bright code service is not enabled on the terminal device, the system user service sends a floating window control request to the window manager. The floating window control request is used to request the display of a back screen bright code control in the displayed target floating window. In response to a user clicking the back screen bright code control in the target floating window, the target QR code of the target application is displayed on the second screen. For example, in response to a user clicking the back screen bright code control in the target floating window, the system user service executes step S501 and sends a back screen bright code request to the window manager.
[0100] In one embodiment of the present application, the back screen bright code request is used to display the QR code of the target service on the back screen of the current display screen.
[0101] S502: In response to the received back screen light-up code request, the window manager sends a first message to the display manager, so as to notify the display manager to power on the back screen of the current display screen.
[0102] In one embodiment of the present application, in response to a received back screen light code request, the window manager generates a view tree corresponding to the back screen. The view tree corresponding to the back screen is used to control the display of the back screen. In one embodiment of the present application, the window manager can generate the view tree corresponding to the back screen based on Surface Flinger. Exemplarily, the generated view tree corresponding to the back screen is stored in a preset storage space corresponding to Surface Flinger.
[0103] S503. The display manager sends a second message to Surface Flinger, instructing Surface Flinger to power on the back screen of the current display screen.
[0104] S504 : Surface Flinger sends a third message to the display driver to control the display driver to power on the back screen of the current display screen.
[0105] In one embodiment of the present application, after receiving the third message, it is determined whether the current display screen is the first screen and the terminal device is in the expanded state; if the current display screen is the first screen and the terminal device is in the expanded state, the display driver powers on the second screen.
[0106] S505. In response to the received back screen bright code request, the window manager sends an interface mirroring request of the QR code interface corresponding to the target service to Surface Flinger, so that Surface Flinger generates a mirrored QR code interface of the target application.
[0107] In one embodiment of the present application, the execution order of step S502 and step S505 is not limited. Step S502 and step S505 can be executed simultaneously, step S502 can be executed first and then step S505, or step S505 can be executed first and then step S502.
[0108] In one embodiment of the present application, the back screen light-up request may include the task identifier TaskId of the target application corresponding to the target service. TaskId is used to obtain the QR code interface corresponding to the target service from the database corresponding to Surface Flinger. In one embodiment of the present application, when the package manager starts the target application, it regenerates the TaskId corresponding to the target application. In one embodiment of the present application, after the package manager starts the target application, the window manager stores the TaskId of the target application. The system user service can obtain the TaskId corresponding to the target application from the window manager and generate a back screen light-up request based on the TaskId corresponding to the target application.
[0109] S506. Surface Flinger sends an interface generation message to the window manager, notifying the window manager that the mirror QR code interface has been generated.
[0110] In one embodiment of the present application, Surface Flinger can obtain the QR code interface corresponding to the target service based on the TaskId of the target application, and mirror the obtained QR code interface to obtain the mirrored QR code interface of the target application.
[0111] In one embodiment of the present application, after Surface Flinger generates a mirrored QR code interface of the target application, it sends an interface generation message to the window manager.
[0112] S507. After receiving the interface generation message, the window manager sends a second display notification to Surface Flinger, so that Surface Flinger controls the back screen of the current display screen to display the mirrored QR code interface.
[0113] In one embodiment of the present application, in response to the received second display notification, Surface Flinger can mount the mirrored QR code interface on the view tree corresponding to the back screen, so as to control the back screen to display the mirrored QR code interface, that is, to control the back screen to display the QR code of the target service. For example, when the current display screen is the first screen and the terminal device is in the expanded state, in response to the received second display notification, Surface Flinger mounts the mirrored QR code interface on the view tree corresponding to the second screen, and controls the second screen to display the mirrored QR code interface, that is, to control the second screen to display the QR code of the target service.
[0114] The above-mentioned method of displaying a QR code can display the QR code in the target service on the back screen of the current display screen when a target tap event is received and the terminal device turns on the back screen code lighting service, so that the user can use the QR code of the target application to scan the code without flipping the terminal device, thereby improving the utilization rate of the back screen and enhancing the user experience.
[0115] FIG10 is a flow chart of a method for displaying a QR code according to an embodiment of the present application. The method is applied to a terminal device, which includes a first screen and a second screen that can be folded inward; when the terminal device is in a folded state, the first screen is invisible to the user; when the terminal device is in an unfolded state, the first screen and the second screen have the same orientation. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. As shown in FIG10 , the method includes:
[0116] S61. Display a first application interface of a first application on a first screen.
[0117] In one embodiment of the present application, the first application may be a system application or a third-party application such as a desktop, video application, music application, game application, or chat application. The present application does not impose any limitation on the type of the first application.
[0118] In one embodiment of the present application, if the terminal device is in the unfolded state or the semi-folded state, the first application interface is displayed on the first screen. In one embodiment of the present application, when the terminal device is in the unfolded state or the semi-folded state, the second screen is in a screen-off state, such as in a power-off state.
[0119] S62: In response to a first tap operation on the second screen, display a first floating window on the first screen.
[0120] In one embodiment of the present application, the first floating window is located on the first application interface and a display size of the first floating window is smaller than a display size of the first application interface.
[0121] In one embodiment of the present application, the first floating window includes a QR code for a second application. The second application is the target application corresponding to the target service to be recommended, such as a payment application, a ride-hailing application, a social application, a financial management application, or other application that provides a QR code. In one embodiment of the present application, if the target application is Application 1, the first floating window includes the QR code corresponding to Application 1.
[0122] In one embodiment of the present application, in response to a first tap operation on the second screen, a target service is determined, and a first floating window is generated based on a target application corresponding to the target service. In one embodiment of the present application, a target scenario can be determined based on geo-fencing and / or user behavioral intent, and the service corresponding to the target scenario can be determined as the target service.
[0123] For some specific implementation methods and implementation diagrams of determining the target service and displaying the first floating window on the first screen, please refer to the relevant descriptions above, such as the relevant descriptions of Figures 2 and 8.
[0124] In one embodiment of the present application, a first floating window includes a QR code for a second application and at least one QR code option, each QR code option corresponding to a QR code. The QR code display method further includes: in response to a selection operation on any one of the at least one QR code options, displaying the QR code corresponding to the QR code option in the first floating window, and displaying the QR code corresponding to the QR code option on the second screen. For example, after a user selects QR code option A, the terminal device controls the first floating window and the second screen to switch from displaying the QR code of the second application to displaying the QR code corresponding to QR code option A. In one embodiment of the present application, in response to a selection operation on any one of the at least one QR code options, the application corresponding to the QR code option is determined as a target application. The determined target application is launched, and a QR code interface corresponding to the target service is obtained. Based on the QR code interface corresponding to the target service, the first floating window is updated so that the first floating window displays the QR code corresponding to the target application. Some specific implementation methods for switching the QR code in the first floating window can be seen in steps S405-S409 in Figure 8. For example, the application corresponding to the selected QR code option is application 1, and the QR code interface of application 1 is obtained; based on the QR code interface of application 1, the first floating window is updated so that the first floating window displays the QR code corresponding to application 1.
[0125] S63: In response to the first tapping operation on the second screen, display the QR code of the second application on the second screen.
[0126] In an embodiment of the present application, the execution order of step S62 and step S63 is not limited. Step S62 and step S63 can be executed simultaneously, step S62 can be executed first and then step S63, or step S63 can be executed first and then step S62. In an embodiment of the present application, the time interval between executing step S62 and step S63 is less than or equal to the preset time interval, so that the time difference between displaying the QR code of the second application on the first screen and the second screen is small, avoiding the situation where the QR code of the second application is displayed on the first screen and the second screen does not display the QR code of the second application for a long time, thereby improving the user experience.
[0127] For some specific implementation methods and implementation diagrams of displaying the QR code of the second application on the second screen, please refer to the relevant descriptions above, such as the relevant descriptions of Figures 2 and 9.
[0128] In the above-mentioned multiple embodiments, the QR code display method, when the terminal device is in the expanded state, directly displays the QR code of the second application corresponding to the target service to be recommended on the first application interface currently displayed on the first screen based on the user's tapping operation on the second screen. The user does not need to exit the first application interface currently displayed on the first screen, which reduces the operation steps for displaying the QR code and speeds up the efficiency of displaying the QR code. At the same time, based on the user's tapping operation on the second screen, the QR code of the second application is displayed on the second screen. This allows the user to use the QR code of the target application for scanning without flipping the terminal device and keeping the first screen facing the user, thereby improving the utilization rate of the second screen and thus enhancing the user experience.
[0129] In one embodiment of the present application, after executing step S62 and responding to the first tap operation on the second screen, after the first floating window is displayed on the first screen, the method further includes: determining whether the second application's QR code has been scanned. If the second application's QR code has been scanned, powering down the second screen so that the second screen no longer displays the second application's QR code. In one embodiment of the present application, after the first floating window is displayed on the first screen, a first listener is registered. Based on the service status of the second application obtained by the first listener, the first listener determines whether the second application's QR code has been scanned. The first listener can obtain the service status of the second application and, based on the service status of the second application, determine whether the second application's QR code has been scanned. The service status of the second application can include pending payment, paid, etc. For example, when the service status of the second application is paid, the second application's QR code is determined to have been scanned; when the service status of the second application is unpaid, the second application's QR code is determined to have not been scanned. In one embodiment of the present application, the first listener can be registered with the AMS. Based on the registered first listener, the AMS can access the preset interface of the second application to obtain the service status of the second application. In this embodiment, after the QR code of the second application is scanned, the power supply to the second screen can be stopped to avoid the situation of continuing to display the QR code, thereby avoiding power loss. In one embodiment of the present application, the interactive communication between the system user service and the above-mentioned target application can be realized through a bundled service (bundleservice), and a QR code monitoring task can be registered based on the bundled service to determine whether the QR code has been scanned. The QR code monitoring task is used to control the target application to notify the system user service of the completion of the scanning after the QR code of the target application is scanned. In another embodiment of the present application, after the first floating window is displayed on the first screen, it is determined whether the second application displays the QR code interface; if it is determined that the second application does not display the QR code interface, it is determined that the QR code of the second application has been scanned. After the QR code of the second application is scanned, the second application will stop displaying the scanning interface, and an interface jump will occur. At this time, the top activity of the second application's activity stack will change. In one embodiment of the present application, it can be determined whether the second application displays the QR code interface by detecting the top activity of the second application's activity stack. For example, when the top activity of the second application's activity stack is an activity with a code scanning interface, it is determined that the second application displays the QR code interface; when the top activity of the second application's activity stack is an activity with an interface other than the code scanning interface, it is determined that the second application does not display the QR code interface.
[0130] In one embodiment of the present application, upon detecting that the second application's QR code has been scanned, a first floating window displays an indication indicating that the second application's QR code has been scanned. This indication may be a payment interface or other information, such as a payment notification. This embodiment promptly notifies the user of the completion of the scan after the second application's QR code has been scanned, allowing the user to understand the scanning status and improving the user experience.
[0131] In one embodiment of the present application, after executing step S62 and responding to the first tap operation on the second screen, after the first floating window is displayed on the first screen, the method further includes: starting the timing; if the timing duration reaches the first preset duration, stopping the power supply to the second screen so that the second screen does not continue to display the QR code of the second application. The first preset duration can be set according to actual conditions, such as 5S, 10S, etc. The above method can avoid the situation where the QR code of the second application is displayed on the second screen for a long time. In one embodiment of the present application, if the timing duration reaches the first preset duration, the first floating window is stopped from being displayed. The above method can avoid the situation where the first floating window is displayed for a long time.
[0132] In one embodiment of the present application, after executing step S62 and responding to the first tap operation on the second screen, after the first floating window is displayed on the first screen, the method further includes:
[0133] In one embodiment of the present application, the first floating window includes a cancel control. After executing step S62 and responding to the first tap operation on the second screen, after the first floating window is displayed on the first screen, the method further includes: closing the first floating window in response to the user's click operation on the cancel control. The above method can close the first floating window in response to the user's operation. In one embodiment of the present application, in response to the user's click operation on the cancel control, powering on the second screen is stopped, so that the second screen does not continue to display the QR code of the second application. The above method can be closed in response to the user's operation and stop displaying on the second screen.
[0134] FIG11 is a flow chart of a method for displaying a QR code according to an embodiment of the present application. The method is applied to a terminal device, which includes a first screen and a second screen that can be folded inward; when the terminal device is in a folded state, the first screen is invisible to the user; when the terminal device is in an unfolded state, the first screen and the second screen have the same orientation. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. As shown in FIG11 , the method includes:
[0135] S71. Display a second application interface of a third application on the second screen.
[0136] In one embodiment of the present application, the third application can be a system application or a third-party application such as a desktop, video application, music application, game application, chat application, etc. This application does not impose any restrictions on the type of the third application.
[0137] In one embodiment of the present application, if the terminal device is in a folded state, the first application interface is displayed on the second screen. At this time, the first screen is invisible to the user.
[0138] In this embodiment, step S71 can be executed before or after any step shown in Figure 10, such as before step S61 or after step S63 shown in Figure 10. This application does not impose any limitation on the execution time of step S71.
[0139] S72: In response to a second tapping operation on the second screen, display a second floating window on the second screen.
[0140] In one embodiment of the present application, the second floating window is located on the second application interface and the display size of the second floating window is smaller than the display size of the second application interface.
[0141] In one embodiment of the present application, the second floating window includes a QR code for a fourth application. The fourth application is the target application corresponding to the target service to be recommended, such as a payment application, a ride-hailing application, a social application, a financial management application, or other application that provides a QR code. In one embodiment of the present application, if the target application is Application 1, the second floating window includes the QR code corresponding to Application 1.
[0142] In one embodiment of the present application, in response to the first tap operation on the second screen, a target service is determined, and a second floating window is generated based on the target application corresponding to the target service. In one embodiment of the present application, a target scenario can be determined based on geo-fencing and / or user behavioral intent, and the service corresponding to the target scenario can be determined as the target service.
[0143] For some specific implementation methods and implementation diagrams of determining the target service and displaying the second floating window on the second screen, please refer to the relevant descriptions above, such as the relevant descriptions of Figures 5 and 8.
[0144] In one embodiment of the present application, the second floating window includes a QR code for the second application and at least one QR code option, each QR code option corresponding to a QR code. The QR code display method further includes: in response to a selection operation on any QR code option in the at least one QR code option, displaying the QR code corresponding to the any QR code option in the second floating window, and displaying the QR code corresponding to the any QR code option on the second screen. For example, after the user selects QR code option A, the terminal device controls the second floating window to switch from displaying the QR code of the second application to displaying the QR code corresponding to QR code option A. In one embodiment of the present application, in response to a selection operation on any QR code option in the at least one QR code option, the application corresponding to the any QR code option is determined as the target application. The determined target application is launched, and the QR code interface corresponding to the target service is obtained. The second floating window is updated based on the QR code interface corresponding to the target service, so that the second floating window displays the QR code corresponding to the target application. Some specific implementation methods of switching the QR code in the second floating window can be seen in steps S405-S409 in Figure 8. For example, the application corresponding to the selected QR code option is application 1, and the QR code interface of application 1 is obtained; based on the QR code interface of application 1, the second floating window is updated so that the second floating window displays the QR code corresponding to application 1.
[0145] The above-mentioned QR code display method, when the terminal device is in a folded state, directly displays the QR code of the fourth application corresponding to the target service to be recommended on the second application interface currently displayed on the second screen based on the user's tapping operation on the second screen. The user does not need to exit the second application interface currently displayed on the second screen, which reduces the operation steps of displaying the QR code and speeds up the efficiency of displaying the QR code.
[0146] In one embodiment of the present application, after executing step S72 and responding to the second tap operation on the second screen, after the second floating window is displayed on the second screen, the method further includes: if it is detected that the QR code of the fourth application has been scanned, displaying an indication in the second floating window that the QR code of the fourth application has been scanned. The indication may include a payment interface. In one embodiment of the present application, after the second floating window is displayed on the second screen, a second listener is registered. Based on the second listener, a determination is made as to whether the QR code of the fourth application has been scanned. The second listener is used to monitor the service status updates of the fourth application to determine whether the QR code has been scanned. For some specific implementations of determining whether the QR code of the fourth application has been scanned, please refer to the relevant descriptions above, such as the description of determining whether the QR code of the second application has been scanned. In the above embodiment, after the QR code of the fourth application has been scanned, the user is promptly notified that the scan has been completed, so that the user is aware of the scanning status and improves the user experience. In one embodiment of the present application, if it is detected that the QR code of the fourth application has been scanned, the second floating window is stopped from being displayed. The above embodiment can avoid the situation where the second floating window is displayed for a long time.
[0147] In one embodiment of the present application, after executing step S72 and responding to the second tap operation on the second screen, after the second floating window is displayed on the second screen, the method further includes: starting a timer; if the timer reaches a second preset timer, closing the second floating window. The second preset timer can be set according to actual circumstances, such as 5 seconds, 10 seconds, etc. This method can prevent the second floating window from being displayed for a long time.
[0148] In one embodiment of the present application, the second floating window includes a cancel control. After executing step S72 and responding to the second tap operation on the second screen, after the second floating window is displayed on the second screen, the method further includes: closing the second floating window in response to the user's click operation on the cancel control. The above method can close the second floating window in response to the user's operation.
[0149] FIG12 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Referring to FIG12 , the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 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.
[0150] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 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.
[0151] 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), etc. Among them, different processing units can be independent devices or integrated into one or more processors. For example, the processor 110 is used to execute the two-dimensional code display method in the embodiment of the present application.
[0152] 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.
[0153] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I1C) 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.
[0154] The I1C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). The I2S interface can be used for audio communication. The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. The UART interface is a universal serial data bus for asynchronous communication. The 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.
[0155] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 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 camera function of the terminal device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the terminal device 100.
[0156] The GPIO interface can be configured through software. The GPIO interface can be configured as 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, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I1C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0157] The USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the terminal device 100, or to transfer data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect to other terminal devices 100, such as AR devices.
[0158] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.
[0159] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. 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 to power the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance).
[0160] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0161] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
[0162] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1.
[0163] The wireless communication module 160 can provide wireless communication solutions applied to the terminal device 100, including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.
[0164] The terminal device 100 implements display functions through a GPU, display screen 194, and an application processor. The GPU is a microprocessor that provides service exception notifications and connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0165] Display screen 194 is used to display images, videos, etc. 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).
[0166] In some embodiments, the terminal device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1. The terminal device 100 may implement a shooting function through an ISP, a camera 193 , a video codec, a GPU, a display screen 194 , and an application processor.
[0167] The camera 193 is used to capture still images or videos. The object is projected onto the photosensitive element through the lens to generate an optical image.
[0168] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0169] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.
[0170] The terminal device 100 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.
[0171] 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.
[0172] The speaker 170A, also known as a "speaker," is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or hands-free calls through the speaker 170A. The receiver 170B, also known as a "handset," is used to convert audio electrical signals into sound signals. When the terminal device 100 receives a call or a voice message, the voice can be heard by placing the receiver 170B close to the human ear. The microphone 170C, also known as a "microphone," is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by placing their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The terminal device 100 can be provided with at least one microphone 170C. In other embodiments, the terminal device 100 can be provided with two microphones 170C, which, in addition to collecting sound signals, can also implement noise reduction. In other embodiments, the terminal device 100 can also be provided with three, four, or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording, and the like.
[0173] The headphone jack 170D is used to connect a wired headphone and can be a 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.
[0174] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The terminal device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). The distance sensor 180F is used to measure distance. The proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
[0175] The ambient light sensor 180L is used to sense the ambient light brightness. The terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent accidental touch. In an embodiment of the present application, the ambient light sensor 180L will sample according to a preset sampling period to obtain the ambient light brightness value. The ambient light sensor 180L can obtain at least one ambient light brightness value in each sampling period. The ambient light sensor 180L will report an ambient light brightness value to the ambient light sensor driver every other sampling period.
[0176] Fingerprint sensor 180H is used to collect fingerprints. Temperature sensor 180J is used to detect temperature. Touch sensor 180K, also known as a "touch control device," can be installed on display screen 194. Touch sensor 180K and display screen 194 form a touch screen, also known as a "touch screen." Bone conduction sensor 180M can acquire vibration signals.
[0177] Buttons 190 include a power button, volume button, and other buttons. They can be mechanical or touch-sensitive. Motor 191 can generate vibrations. Indicator 192 can be an indicator light that can indicate charging status, battery level changes, messages, missed calls, and notifications.
[0178] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the terminal device 100 by inserting or removing it from the SIM card interface 195. The terminal device 100 can support one or N SIM card interfaces, where N is a positive integer greater than one. 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 multiple cards can be of the same or different types. 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. The terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
[0179] The embodiments of the present application do not particularly limit the specific structure of the execution subject of the QR code display method. As long as the program recording the QR code display method of the embodiments of the present application can be executed to perform processing according to the QR code display method provided by the embodiments of the present application. For example, the execution subject of the QR code display method provided by the embodiments of the present application can be a functional module in a terminal device that can call and execute the program, or a communication device used in the terminal device, such as a chip.
[0180] An embodiment of the present application also provides a chip having computer instructions stored therein. When the computer instructions are executed on the chip, the chip executes the above-mentioned related method steps to implement the QR code display method and ambient light transmission method in the above-mentioned embodiment.
[0181] An embodiment of the present application also provides a computer storage medium, which stores computer instructions. When the computer instructions are executed on the terminal device 100, the terminal device 100 executes the above-mentioned related method steps to implement the QR code display method or ambient light transmission method in the above-mentioned embodiment.
[0182] An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement the QR code display method or ambient light transmission method in the above-mentioned embodiment.
[0183] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the QR code display method or ambient light transmission method in the above-mentioned method embodiments.
[0184] Among them, the terminal device, computer storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0185] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it can be located in one place, or it can be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0186] In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. 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 readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially 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, which is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0187] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not limiting. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.
Claims
1. A QR code display method, applied to a terminal device, characterized in that: The terminal device comprises a first screen and a second screen; when the terminal device is in a folded state, the first screen is invisible to the user; When the terminal device is in the unfolded state, the display directions of the first screen and the second screen are opposite to each other; the method includes: If the terminal device is in the expanded state, displaying a first application interface of the first application on the first screen; In response to a first tap operation on the second screen, a first floating window is displayed on the first screen, the first floating window includes a QR code of a second application, and the QR code of the second application is displayed on the second screen; wherein, the first floating window is located on the first application interface and the display size of the first floating window is smaller than the display size of the first application interface.
2. The two-dimensional code display method according to claim 1, wherein: The first floating window includes at least one QR code option, each QR code option corresponds to a QR code, and the method further includes: In response to a selection operation on any one of the at least one QR code options, the QR code corresponding to the any one QR code option is displayed in the first floating window, and the QR code corresponding to the any one QR code option is displayed on the second screen.
3. The two-dimensional code display method according to claim 1, wherein: After the first floating window is displayed on the first screen, the method further includes: If it is detected that the QR code of the second application is scanned, powering on the second screen is stopped.
4. The two-dimensional code display method according to claim 3, wherein: The method further comprises: After the first floating window is displayed on the first screen, a first listener is registered; and based on the business status of the second application obtained by the first listener, it is determined whether the QR code of the second application has been scanned.
5. The two-dimensional code display method according to claim 1, wherein: After the first floating window is displayed on the first screen, the method further includes: If it is detected that the scanning of the QR code of the second application is completed, an indication information indicating that the scanning of the QR code of the second application is completed is displayed in the first floating window.
6. The two-dimensional code display method according to claim 1, wherein: The method further comprises: After the first floating window is displayed on the first screen, starting the timer; If the timing duration reaches the first preset duration, the power supply to the second screen is stopped and the first floating window is closed.
7. The two-dimensional code display method according to claim 1, wherein: The method further comprises: If the terminal device is in a folded state and the second application interface of the third application is displayed on the second screen, in response to a second tap operation on the second screen, a second floating window is displayed on the second screen, and the second floating window includes a QR code of the fourth application; wherein, the second floating window is located on the second application interface and the display size of the second floating window is smaller than the display size of the second application interface.
8. The two-dimensional code display method according to claim 7, wherein: The method further comprises: After the second floating window is displayed on the second screen, starting the timer; If the timing duration reaches a second preset duration, the second floating window is closed.
9. The method according to any one of claims 1 to 8, characterized in that Displaying a first floating window on the first screen, wherein the first floating window includes a QR code of the second application, includes: Determining a target service corresponding to the terminal device based on the geographic fence of the terminal device; If the target application corresponding to the target service is the second application, obtaining a QR code interface of the second application; Based on the QR code interface and the quick service interface of the second application, the first floating window is generated and displayed on the first screen.
10. The method according to claim 9, characterized in that The displaying of the QR code of the second application on the second screen includes: Power on the second screen; Mirroring the QR code interface of the second application to obtain a target mirrored interface; The target mirroring interface is displayed on the second screen.
11. A computer-readable storage medium, characterized in that The method comprises computer instructions, which, when executed on a terminal device, enable the terminal device to execute the two-dimensional code display method according to any one of claims 1 to 10.
12. A terminal device, characterized in that: The terminal device includes a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the terminal device executes the two-dimensional code display method according to any one of claims 1 to 10.