Display control method, electronic device and storage medium

By adopting flexible display control methods of the home screen and the secondary screen in the folding screen device, using user behavior data to determine the target QR code information, the problems of waste of resources and poor user experience in the folding state are solved, and more efficient resource utilization is achieved Display with user-friendly QR code.

CN117615055BActive Publication Date: 2024-11-01HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311216513.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-19
Publication Date
2024-11-01
Estimated Expiration
2043-09-19

AI Technical Summary

Technical Problem

The folding screen device can only use one screen in the folded state, resulting in wasted resources and poor user experience, and it is impossible to flexibly control the content displayed on the screen.

Method used

By introducing flexible display control methods for the home screen and the sub-screen in the folding screen device, the target QR code information is determined using user behavior data, and the display content is switched between the home screen and the sub-screen, including displaying a floating window and the two on the sub-screen. Rating code to ensure display accuracy and resource utilization.

Benefits of technology

It improves the display flexibility and user experience of folding screen devices, reduces resource waste, enhances users' understanding of the QR code status and operation convenience, and extends the device's battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117615055B_ABST
    Figure CN117615055B_ABST
Patent Text Reader

Abstract

The embodiments of the present application are applied to the field of terminal technology, and provide a display control method and an electronic device. The electronic device is a folding screen device. When the folding screen device is in a folded state, the main screen of the folding screen device displays a first user interface, wherein the first user interface includes the interface of a first application. Afterwards, if the folding screen device receives a preset operation of the user for the secondary screen, the folding screen device determines the target QR code information. Afterwards, if the target process has not exited, the main screen of the folding screen device displays a second user interface, and the secondary screen of the folding screen device displays the target QR code, wherein the floating window in the second user interface includes the display status of the target QR code on the secondary screen. The present application can accurately determine the display status of the target QR code and improve the display accuracy of the folding screen device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a display control method and an electronic device. Background Art

[0002] As foldable screen technology matures, more and more users are using foldable screen devices (such as foldable screen mobile phones). Users can fold and unfold the screen of foldable screen devices according to actual needs. For example, in the video playback scenario, users can put the foldable screen in the unfolded state; or in the payment scenario, users can put the foldable screen in the folded state.

[0003] However, when the folding screen is in the folded state, the folding screen is divided into at least two screens. The folding screen device usually only displays the picture content on a fixed screen. It is impossible to flexibly control the display content of the screen according to the actual scenario, resulting in only one screen being usable in the folded state, causing the remaining screens to be wasted because they cannot be used by users, resulting in a low user experience. Summary of the invention

[0004] The embodiments of the present application provide a display control method and an electronic device for improving the flexibility of screen usage to meet the usage needs of users in different usage scenarios.

[0005] In a first aspect, a display control method is provided, which is applied to a folding screen device. The display screen of the folding screen device includes a main screen and a sub-screen. When the folding screen device is in a folded state, the display directions of the main screen and the sub-screen are opposite to each other. When the folding screen device is in an unfolded state, the display directions of the main screen and the sub-screen are the same. The main screen and the sub-screen are two different display areas of the display screen.

[0006] When the folding screen device is in a folded state, the main screen of the folding screen device displays a first user interface, wherein the first user interface includes the interface of the first application. Afterwards, when the folding screen device receives a touch operation from the user on the secondary screen, if the touch operation is a preset operation, the folding screen device determines the target QR code information. Afterwards, when the target process has not exited, the main screen of the folding screen device displays a second user interface, and the secondary screen of the folding screen device displays the target QR code, wherein the floating window in the second user interface includes the display status of the target QR code on the secondary screen.

[0007] In the present application, the folding screen device can determine whether the target process has exited before displaying the first user interface on the main screen. If the target process has not exited, it means that the folding screen device is in a normal scenario. Therefore, the folding screen device can display a floating window on the main screen and display the target QR code on the secondary screen. In this way, the display status of the target QR code can be accurately determined, the display accuracy of the folding screen device can be improved, and the occurrence of drawing floating windows because the target process has exited can be reduced. This not only saves the drawing resources of the floating window, but also reduces the waste of memory resources.

[0008] In addition, since the folding screen device can display the target QR code on the secondary screen without affecting the use of the main screen, and can display the display status of the target QR code in the form of a floating window on the main screen, it is convenient for users to understand the display status of the target QR code in a timely manner, facilitate users to perform subsequent operations, and improve the user experience.

[0009] In a possible implementation of the first aspect, the process of the folding screen device determining the target QR code may specifically include: the folding screen device determines the target QR code information in combination with user behavior data, wherein the user behavior data includes application usage rate and QR code display habits.

[0010] In the present application, since the target QR code information is determined based on user behavior data, and the user behavior data includes application usage rate and QR code display habits, the target QR code information determined by the user behavior data can be more in line with the user's usage habits, so that the subsequently displayed target QR code can meet user needs, reduce the probability of target QR code display errors, and improve the user's usage experience.

[0011] In a possible implementation of the first aspect, the method further includes: the folding screen device exits the target process in response to the abnormal event. Thereafter, if the target process has exited, the main screen of the folding screen device does not display the floating window in the second user interface, and the secondary screen of the folding screen device is in an off state.

[0012] In the present application, if the target process has exited, it means that the folding screen device has triggered an abnormal event. Therefore, the folding screen device may not draw the floating window and the target QR code, that is, the main screen of the folding screen device does not display the floating window in the second user interface, and the secondary screen of the folding screen device is in the off state. In this way, not only can the drawing resources of the target QR code be saved, but also the floating window can be deleted in time, reducing the situation where the memory resources are occupied because the generated floating window cannot be deleted, thereby saving the memory resources of the folding screen device.

[0013] In a possible implementation manner of the first aspect, the abnormal event includes the folding screen device switching from a folded state to an unfolded state, the main screen switching from a bright screen state to an off screen state, or the folding screen device monitoring at least two exit events during the process of displaying a historical QR code on the secondary screen;

[0014] Among them, the historical QR code is the QR code displayed before the target QR code, and the exit event includes one or more of the following: receiving the user's first operation, the historical QR code is scanned successfully, the display time of the historical QR code exceeds the second preset time, and receiving the user's second operation. The first operation is used to switch the historical QR code to the main screen display, and the second operation is used to switch the historical QR code to the candidate QR code.

[0015] In this embodiment, if the folding screen device switches from a folded state to an unfolded state, it means that the display directions of the main screen and the sub-screen change from opposite to each other. Therefore, the folding screen device does not need to display the target QR code on the sub-screen, but can display a target QR code on the display screen. The folding screen device does not need to display a floating window on the main screen, and the target process is the process corresponding to when the folding screen device executes the sub-screen code lighting program. Therefore, the folding screen device can exit the target process. In this way, the floating window can be deleted in time, reducing the occurrence of memory resources occupied by the generated floating window that cannot be deleted, thereby saving memory resources of the folding screen device.

[0016] In addition, if the main screen of the folding screen device switches from the on screen state to the off screen state, it means that the main screen cannot display any content, that is, the main screen cannot display the floating window. Therefore, the folding screen device can exit the target process. In this way, the floating window can be deleted in time, reducing the situation where the generated floating window cannot be deleted and occupies memory resources, thereby saving memory resources of the folding screen device.

[0017] In addition, since one exit event corresponds to one secondary screen code lighting process, if two exit events occur during the execution of the secondary screen code lighting program, the folding screen device will record an exit event so that it can exit the next time the secondary screen code lighting program is executed. In other words, the target QR code cannot be displayed normally. Therefore, the folding screen device will assume that the target process has exited after receiving the preset operation next time. In this way, the floating window can be deleted in time, reducing the situation where the generated floating window cannot be deleted and occupies memory resources, thereby saving memory resources of the folding screen device.

[0018] In a possible implementation manner of the first aspect, the method further includes: when the target QR code is scanned, the main screen of the folding screen device displays a third user interface, wherein the floating window in the third user interface includes the first prompt information; and / or,

[0019] The secondary screen of the folding screen device displays a second prompt message; wherein the second prompt message is the same as or different from the above-mentioned first prompt message.

[0020] In this application, if the target QR code on the secondary screen is scanned, it means that the target QR code has been used by the user. Therefore, the folding screen device can display prompt information in the floating window of the main screen and / or the secondary screen. In this way, the user can clearly understand the scanning status of the target QR code and improve the user experience.

[0021] In addition, since the secondary screen is a display screen facing away from the user, that is, the user cannot directly view the content displayed on the secondary screen, and the user may need to flip the folding screen device over before the user can view the second prompt information displayed on the secondary screen. Therefore, in order to reduce the occurrence of large power consumption caused by displaying prompt information on the secondary screen, the folding screen device can only display the first prompt information on the floating window of the main screen, so as to reduce unnecessary power consumption and improve the battery life of the folding screen device.

[0022] In a possible implementation manner of the first aspect, the method further includes: when the display time of the first prompt information is greater than the first preset time, the main screen of the folding screen device displays the first user interface; and / or,

[0023] When the display time of the second prompt information is greater than the first preset time, the secondary screen of the folding screen device is in an off state.

[0024] In the present application, if the display time of the first prompt information and / or the second prompt information is greater than the first preset time, it means that the user has clearly understood the scanning status of the target QR code. Therefore, the folding screen device can delete the first prompt information and / or the second prompt information, that is, the floating window is not displayed on the main screen, and the second prompt information is not displayed on the secondary screen. In this way, unnecessary power consumption loss can be reduced and the battery life of the external folding screen mobile phone can be improved.

[0025] In a possible implementation manner of the first aspect, the floating window further includes target QR code information, wherein the target QR code information includes an application name and a QR code type corresponding to the target QR code.

[0026] In the present application, if the floating window displays the application name and QR code type corresponding to the target QR code, the user can clearly understand the information corresponding to the QR code displayed on the secondary screen to determine whether the target QR code displayed on the secondary screen is the QR code you want to display. The user does not need to flip the folding screen device to determine the displayed QR code information, which provides convenient conditions for user use and improves the user experience.

[0027] In a possible implementation of the first aspect, the above method also includes: when the display time of the target QR code is greater than a second preset time, the main screen of the folding screen device displays the first user interface, and the secondary screen of the folding screen device is in an off state.

[0028] In the present application, if the display time of the target QR code is greater than the second preset time, it means that the target QR code has not been scanned for a long time. Therefore, in order to reduce unnecessary power consumption loss, the folding screen device can delete the floating window displayed on the main screen, and delete the target QR code displayed on the sub-screen, that is, convert the sub-screen from the on-screen state to the off-screen state. In this way, not only the cleanliness of the main screen interface can be improved, the integrity of the content displayed on the main screen interface can be ensured, but also the sub-screen can be put back to the off-screen state, thereby reducing the power consumption of the external folding screen mobile phone and improving the battery life of the external folding screen mobile phone.

[0029] In a second aspect, the present application provides an electronic device, comprising a display screen, a memory and one or more processors; the display screen, the memory and the processor are coupled; the display screen comprises a folding screen, the memory is used to store computer program code, and the computer program code comprises computer instructions; when the processor executes the computer instructions, the electronic device executes the method described above.

[0030] In a third aspect, the present application provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute the method described above.

[0031] In a fourth aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the method described above.

[0032] In a fifth aspect, a chip is provided, comprising: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method as described above.

[0033] Among them, the beneficial effects that can be achieved by the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the chip described in the fifth aspect provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1A Schematic diagram 1 of an unfolded state of a folding screen device provided in an embodiment of the present application;

[0035] Figure 1B A schematic diagram of a folding screen device in a folded state provided in an embodiment of the present application;

[0036] Figure 1C A schematic diagram of an outward folding process of a folding screen device provided in an embodiment of the present application;

[0037] Figure 1D A schematic diagram of an unfolded state of a folding screen device provided in an embodiment of the present application Figure 2 ;

[0038] Figure 1E A schematic diagram of an unfolded state of a folding screen device provided in an embodiment of the present application Figure 3 ;

[0039] Figure 2 A schematic diagram of a folding screen device displaying a user interface provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of an interface for a folding screen device provided in an embodiment of the present application to receive a preset operation of a user on a secondary screen;

[0041] Figure 4 A schematic diagram of an interface for a user to click a drop-down control provided in an embodiment of the present application;

[0042] Figure 5 A schematic diagram of an interface in which two floating windows are displayed on a main screen provided in an embodiment of the present application;

[0043] Figure 6 A flowchart of displaying a floating window under normal circumstances provided by an embodiment of the present application;

[0044] Figure 7 A flowchart of displaying a floating window under abnormal circumstances provided by an embodiment of the present application;

[0045] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0046] Fig. 9 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0047] Fig.10 A flow chart of a display control method provided in an embodiment of the present application;

[0048] Fig.11 A schematic diagram of an interface for a user to click and switch controls provided in an embodiment of the present application;

[0049] Fig.12Schematic diagram 1 of an interface for displaying prompt information on a folding screen device provided in an embodiment of the present application;

[0050] Fig.13 Schematic diagram of an interface for displaying prompt information on a folding screen device provided in an embodiment of the present application Figure 2 ;

[0051] Fig.14 A schematic diagram of a process for starting a secondary screen service application provided in an embodiment of the present application;

[0052] Fig.15 A schematic diagram of a process of displaying a target QR code on a secondary screen provided in an embodiment of the present application;

[0053] Fig.16 A schematic diagram of a process for displaying a floating window on a main screen is provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The technical scheme in the embodiment of the present application will be described below in conjunction with the accompanying drawings in the embodiment of the present application. Wherein, in the description of the present application, unless otherwise specified, the "and / or" in the present application is only a kind of association relationship describing the associated object, indicating that there can be three kinds of relationships, for example, A and / or B, which can be represented by: A exists alone, A and B exist at the same time, and B exists alone, wherein A, B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following (individuals)" or its similar expressions refers to any combination of these items, including any combination of single items (individuals) or plural items (individuals). For example, at least one of a, b, or c (individuals) can be represented by: a, b, c, ab, ac, bc, or abc, wherein a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical scheme of the embodiment of the present application, in the embodiment of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will appreciate that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. 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 designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0055] A foldable screen device (such as a foldable screen mobile phone) refers to an electronic device with a foldable screen, which is a whole screen that can be folded or unfolded. Correspondingly, there are two device states for a foldable screen device, namely folded state and unfolded state. Among them, there are two folding methods for foldable screen mobile phones, namely external folding method and internal folding method.

[0056] For a folding screen mobile phone that folds outward, when the folding screen is in the unfolded state (such as Figure 1A When the folding screen is in the folded state (as shown), the entire area of ​​the folding screen can be used to display data, such as displaying a shooting interface. Figure 1B ), part of the folding screen (such as the main screen 11 or the secondary screen 10) is used to display data, wherein the main screen 11 and the secondary screen 10 are back to back, and the secondary screen 10 can be on the same side as the rear camera of the folding screen mobile phone, and the main screen 11 and the secondary screen 10 constitute a folding screen. Among them, the device states can be switched. For example, the folding screen mobile phone can be switched from the unfolded state to the folded state. Specifically, when the folding screen mobile phone is in the unfolded state, the user folds the folding screen mobile phone (such as Figure 1C As shown, the foldable screen mobile phone is folded outward along the folding edge, that is, the foldable screen mobile phone is folded toward the opposite side where the user interface can be displayed), forming a foldable screen mobile phone in a folded state. Similarly, the foldable screen mobile phone can also be switched from the unfolded state to the folded state.

[0057] For example, when the folding angle of the folding screen (i.e., the angle between the two parts of the screen folded along the folding edge) θ (as mentioned above) Figure 1C The value range of θ) shown in the figure can be [180°, 360°]. When θ is in the range of [180°, X1], it can be determined that the foldable screen mobile phone is in the unfolded state. When θ is in the range of (X1, 360°], it can be determined that the foldable screen mobile phone is in the folded state. Among them, X1 is the first preset angle threshold. X1 can be set by the foldable screen mobile phone before leaving the factory, or it can be set by the user in the foldable screen mobile phone, or it can be determined by the foldable screen mobile phone based on the user's usage habits. This application does not limit the value of X1. For example, X can be set to 265°, 270° or 275°, etc. Assuming that X is set to 270°, when the folding angle θ of the folding screen is greater than or equal to 180° and less than or equal to 270°, it is determined that the foldable screen mobile phone is in the unfolded state; when the folding angle θ of the folding screen is greater than 270°, it is determined that the foldable screen mobile phone is in the folded state.

[0058] For a folding screen mobile phone that folds inward, the folding screen mobile phone may include an inner screen (such as Figure 1D The inner screen 12 shown) and the outer screen (as shown Figure 1EThe outer screen 13 shown in the figure is a folding screen, the inner screen is a folding screen, the inner screen and the outer screen are back to back, and the size of the inner screen is larger than that of the outer screen. When the folding screen is in the unfolded state, the inner screen can be used to display data. When the folding screen is in the folded state, the outer screen can be used to display data. The device states of the folding screen mobile phone can also be switched. For example, the folding screen mobile phone can be switched from the unfolded state to the folded state. Specifically, when the folding screen mobile phone is in the unfolded state, the user can follow the above Figure 1D The folding method shown is used to fold the foldable screen mobile phone to form a foldable screen mobile phone in a folded state. Similarly, the foldable screen mobile phone can also be switched from the unfolded state to the folded state.

[0059] Among them, the above-mentioned inner screen can be considered as the main screen, and the outer screen can be considered as the secondary screen.

[0060] It should be noted that the folding method of the above-mentioned folding screen mobile phone can be as follows: Figure 1C or Figure 1D The left-right folding shown can also be folded up and down. The embodiment of the present application does not limit the folding method of the folding screen mobile phone. In addition, the number of folding edges corresponding to the above-mentioned folding screen mobile phone can be as described above. Figure 1A , Figure 1C and Figure 1D The one shown may also be a value greater than 1, such as two. The embodiment of the present application does not limit the number of folded edges.

[0061] In some embodiments, for the folding screen mobile phone whose folding method is an outward folding method (hereinafter referred to as an outward folding screen mobile phone), the outward folding screen mobile phone is in a folded state, and the main screen and the secondary screen of the outward folding screen mobile phone are opposite to each other. Among them, the main screen is a screen that displays screen content, and the secondary screen is a screen that does not display screen content. That is to say, when the outward folding screen mobile phone is in a folded state, the secondary screen is always in an off state.

[0062] However, if the secondary screen is always in the off state, the secondary screen cannot be used by the user, which results in a waste of screen resources, reduces the flexibility of screen use, and affects the user experience.

[0063] In some embodiments, in order to improve the flexibility of screen use, the external folding screen mobile phone can monitor the user's trigger operation on the secondary screen when the external folding screen mobile phone is in a folded state and the main screen of the external folding screen mobile phone is not locked and the screen is on. Afterwards, when the user's trigger operation is detected, if the trigger operation is a preset operation, the target information is displayed on the secondary screen, where the target information can be information pre-set by the user, or it can be determined by the external folding screen mobile phone according to the user's habits, and there is no specific limitation. In this way, the display content of the secondary screen can be flexibly controlled, thereby improving the utilization rate of the secondary screen.

[0064] Among them, the above-mentioned preset operation can be that the user continuously taps the secondary screen of the external folding screen mobile phone for a preset number of times (such as 2 times, 3 times, etc.), or it can be that the user slides the finger on the secondary screen of the external folding screen mobile phone in a preset direction (such as from left to right, from bottom to top, etc.), or it can be that the user taps once on the secondary screen of the external folding screen mobile phone and then slides, etc. Alternatively, the preset operation can also be an operation of tapping, sliding or dragging the main screen of the external folding screen mobile phone and any combination thereof. It can be understood that the preset operation can be pre-set, specifically any pre-set operation, and the embodiment of the present application does not limit this. Exemplarily, the electronic device can detect the preset operation through an acceleration sensor. Exemplarily, the aforementioned tapping operation can be an operation of clicking the secondary screen with a finger, or an operation of tapping the secondary screen with a knuckle, etc., which is not specifically limited. The tapping operation can be a preset number of tapping on the secondary screen within a preset time length, and the preset time length can be 0.5 seconds, 1 second or 2 seconds, etc., and the embodiment of the present application does not limit this.

[0065] For example, when a user is using a foldable phone and encounters a situation where relevant information needs to be displayed to the outside world, the user can double-click the secondary screen. Afterwards, the foldable phone can display relevant information on the secondary screen while keeping the original screen content of the main screen unchanged for the outside world to view or use. In this way, not only can the original screen content of the main screen be maintained, but also relevant information can be displayed to the outside world without the user having to flip the screen of the phone, which provides convenience for the user. For example, see Figure 2 , on the main screen of the foldable phone (such as Figure 2 In the case where the (a) interface in the figure is displaying the content of an e-book, if the secondary screen of the external folding screen mobile phone is tapped twice in succession by the user, the external folding screen mobile phone can Figure 2 The boarding code information is displayed on the (b) interface in the figure, so that the code reader can scan the boarding code. For another example, when the main screen of the external folding screen mobile phone is displaying the content of an e-book, if the user is at the company gate at this time and needs to show the electronic work badge to the security guard, the user can tap the secondary screen of the external folding screen mobile phone three times in a row. Afterwards, when the external folding screen mobile phone detects three consecutive taps on the secondary screen, the external folding screen mobile phone can directly display the work badge information on the secondary screen to facilitate the security guard to view the work badge information.

[0066] In order to enable the secondary screen to display the target information more accurately, the primary screen can display corresponding prompt information while the secondary screen displays the target information, wherein the prompt information is used to indicate the display status of the target information. In this way, it is convenient for users to clearly understand the display status of the target information without having to flip the screen to check whether it is displayed, thereby improving the user experience. For example, Figure 3 As shown, on the main screen of the external folding screen mobile phone (such as Figure 3When the content of the e-book is being displayed in the (a) interface, if a payment code is required to make a payment, the user can use the secondary screen of the external folding screen mobile phone (such as Figure 3 (b) interface in the figure) and tap twice in succession. Afterwards, when the external folding screen mobile phone detects two consecutive tapping operations on the secondary screen, the external folding screen mobile phone can directly display the payment code on the secondary screen. In addition, while the secondary screen is displaying the payment code, the main screen can display a floating window 302 on the current interface 301, and the floating window 302 includes QR code information, the display status of the QR code, and a drop-down control 3025. Among them, the QR code information includes at least one of the application name corresponding to the QR code (such as the first application 3023), the application icon (such as the icon 3021 of the first application), and the QR code type (such as the first payment code 3024). Exemplarily, the QR code type can be a payment code, a collection code, a boarding code, an identity identification code, and various QR codes that may appear in the future, etc., which are not limited in the embodiments of the present application. The display status may include a back screen bright code status 3022 and a bright code failure status. The back screen bright code status 3022 is used to indicate that the back screen successfully displays the QR code, and the bright code failure status is used to indicate that the back screen fails to successfully display the QR code.

[0067] Figure 3 (b) is a schematic diagram of a user interface for displaying the first payment code of the first application on the secondary screen. Figure 3 As can be seen in (b), the background of the back screen is black, and the area 303 displaying the first QR code of the first application is white. The area 303 may include a payment barcode 3031, a payment QR code 3032, and text 3033 indicating the display of the first payment code number. The text 3033 may be, for example, "Click to view the first payment code number", etc., and the specific content of the text is not limited in the embodiment of the present application. Exemplarily, the user interface of the first payment code of the first application may also include a description 304 of the first payment code. The description 304 may, for example, include an icon 3041 of the first application and the name of the displayed QR code (such as the first payment code of the first application) 3042.

[0068] Optionally, the above-mentioned drop-down control 3025 can display more selectable QR code types in the floating window 302, and the selected QR code can be displayed on the secondary screen of the external folding screen mobile phone. Specifically, if the drop-down control is clicked by the user, the floating window can also display the QR code information corresponding to other applications. Afterwards, in response to the user's click operation on any QR code information, the external folding screen mobile phone displays the QR code corresponding to the clicked QR code information on the secondary screen to realize the switching function of the secondary screen QR code. For example, see Figure 4 , if the main screen of the foldable phone (such as Figure 3When the drop-down control 3025 displayed on the (a) interface) is clicked by the user, the floating window 302 can display the QR code information to be switched. The QR code information to be switched can include the application icon to be switched and the QR code corresponding to the application to be switched, for example, see Figure 4 In the interface (a) of FIG. 1 , the QR code information to be switched may include a second application icon 3027 and a “second QR code of a second application” 3028, or the QR code information to be switched may include a third application icon 3029 and a “third QR code of a third application” 30210. At the same time, the pull-down control 3025 is replaced with a pull-up control 3026, wherein the pull-up control 3026 is used to collapse the expanded floating window 302, that is, collapse the QR code information to be switched.

[0069] Afterwards, if the area corresponding to the "second QR code of the second application" in the floating window 302 is clicked by the user, the secondary screen of the external folding screen mobile phone (such as Figure 4 The second QR code of the second application is displayed on the (b) interface. Figure 4 As can be seen in the (b) interface, the second QR code display area 307 may include a payment barcode 3071, a payment QR code 3072, and text 3073 indicating the display of the second QR code number. The text 3073 may be, for example, "touch to view the second QR code number", etc., and the specific content of the text is not limited in the embodiment of the present application. Exemplarily, the user interface displaying the second QR code of the second application may also include a description 308 about the second QR code. The description 308 may include, for example, an icon 3081 of the second application and a displayed QR code name 3082. The name 3082 of the QR code may be "second application second QR code" or "second application second payment code", etc., and the text description of the name of the QR code is not limited in the embodiment of the present application.

[0070] In some embodiments, when the floating window on the main screen displays the above scan information, if the user taps the secondary screen again, a new floating window will be displayed on the main screen of the external folding screen mobile phone. The new floating window is used to indicate the QR code information corresponding to the QR code to be displayed on the secondary screen when tapping again. In other words, two floating windows will be displayed on the main screen of the external folding screen mobile phone, resulting in repeated display of the floating windows, causing confusion to the user and making the user's experience poor. For example, Figure 5 As shown, the main screen of the external folding screen mobile phone displays a floating window 302C and a floating window 302E. Among them, the floating window 302C is the floating window generated by scanning the QR code on the secondary screen last time. The floating window 302E is a new floating window generated by the user tapping again.

[0071] In one implementation, Figure 6 As shown, the above process of displaying a floating window on the main screen may specifically include: when the external folding screen mobile phone is in a folded state and the main screen of the external folding screen mobile phone is not locked and the screen is on, if the secondary screen of the external folding screen mobile phone is tapped by the user, the external folding screen mobile phone can start the secondary screen service application (or secondary screen service). Afterwards, the secondary screen service application can send a query instruction to the smart middle station. Afterwards, when the smart middle station receives the query instruction issued by the secondary screen service application, it determines the target QR code information in combination with the user's habits, wherein the target QR code information includes the target QR code, the application name corresponding to the target QR code, and the type of the target QR code (or QR code type). Afterwards, the secondary screen service application can draw the floating window displayed on the main screen according to the target QR code information to complete the display of the floating window. Afterwards, if the QR code on the secondary screen is scanned, the secondary screen service application can delete the floating window on the main screen when the display time is longer than the preset time, that is, the floating window is not displayed.

[0072] Optionally, when the secondary screen is tapped by the user and the floating window is not displayed on the main screen, that is, if the user performs the target operation, the external folding screen mobile phone can trigger the recycling process, that is, not displaying the QR code on the secondary screen and not displaying the floating window on the main screen. However, if the user performs the target operation while the external folding screen mobile phone is determining the target QR code information, it means that the user does not want to display the target QR code. Therefore, the external folding screen mobile phone can trigger the recycling process. But at this time, the external folding screen mobile phone has not determined the target QR code information, and has not drawn the floating window and the target QR code. Therefore, even if the above-mentioned secondary screen service application triggers the recycling process, the recycling process will not interrupt the subsequent floating window drawing process, so the recycling process cannot delete the floating window displayed on the main screen and the target QR code displayed on the secondary screen. That is, the floating window will still be displayed on the main screen of the external folding screen mobile phone, and the target QR code will still be displayed on the secondary screen of the external folding screen mobile phone.

[0073] For example, Figure 7 As shown, when the external folding screen mobile phone is in a folded state and the main screen of the external folding screen mobile phone is not locked and the screen is on, if the secondary screen of the external folding screen mobile phone is tapped by the user, the external folding screen mobile phone can start the secondary screen service application. Afterwards, the secondary screen service application can send a query instruction to the smart middle station. Afterwards, upon receiving the query instruction sent by the secondary screen service application, the smart middle station determines the target QR code information in combination with the user's habits. If in the process of determining the target QR code information, the user performs the target operation to trigger the secondary screen service exit process. Afterwards, the secondary screen service application can trigger the recycling process, that is, to delete the floating window displayed on the main screen and the target QR code displayed on the secondary screen.

[0074] After that, after determining the target QR code information, the secondary screen service exit process has been completed, that is, the secondary screen service application will continue to execute the subsequent process by default, that is, the secondary screen service application can continue to draw the floating window displayed on the main screen according to the target QR code information to complete the display of the floating window. In other words, after the user performs the target operation, the external folding screen mobile phone can still display the floating window on the main screen, and the floating window cannot be deleted in time according to the secondary screen service exit process, which affects the user experience.

[0075] Therefore, in order to be able to delete the floating window of the main screen in a timely manner, an embodiment of the present application provides a display control method and an electronic device. In this method, in response to the user's trigger operation on the secondary screen, the folding screen device can determine whether the trigger operation is a preset operation. When the trigger operation is a preset operation, the folding screen device can determine the target QR code information in combination with the user behavior data. Afterwards, the folding screen device can determine whether the preset conditions are met. When the folding screen device meets the preset conditions, the folding screen device can draw a floating window. Among them, the preset conditions may include the folding screen device being in a folded state, the main screen being in a bright screen state, and the user not performing the target operation or performing the target operation once during the previous execution of the back screen bright code process. Afterwards, the mobile phone can display a floating window on the main screen.

[0076] In an embodiment of the present application, the folding screen device can determine whether the folding screen device meets the preset conditions before drawing the floating window. If the folding screen device meets the preset conditions, it can continue to draw the floating window; if the folding screen device does not meet the preset conditions, the floating window is not drawn. In this way, not only can the floating window be deleted in time, reducing the occurrence of memory resources occupied due to the generation of floating windows that cannot be deleted, thereby reducing the waste of memory resources, but also saving the drawing resources of the floating window, thereby improving the user experience.

[0077] Exemplarily, the foldable screen device in the embodiments of the present application can be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device, and other electronic devices with a foldable screen. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.

[0078] For example, Figure 8 FIG. 2 shows a schematic diagram of the structure of the electronic device 200. Figure 8As shown, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 211, a power management module 212, a battery 213, an antenna 1, an antenna 2, a mobile communication module 240, a wireless communication module 250, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.

[0079] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0080] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0081] The controller may be the nerve center and command center of the electronic device 200. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0082] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0083] In some embodiments, the processor 210 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

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

[0085] The charging management module 211 is used to receive charging input from a charger. While the charging management module 211 is charging the battery 213 , it can also power the electronic device through the power management module 212 .

[0086] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 240, the wireless communication module 250, the modem processor and the baseband processor.

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

[0088] The mobile communication module 240 may provide solutions for wireless communications including 2G / 3G / 4G / 5G etc. applied to the electronic device 200. The modem processor may include a modulator and a demodulator.

[0089] The wireless communication module 250 can provide wireless communication solutions for application in the electronic device 200, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0090] The electronic device 200 implements the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.

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

[0092] In some embodiments, the display screen 294 may be a folding screen. The folding method of the folding screen may be as described above. Figure 1C Alternatively, the folding method of the folding screen may be as described above. Figure 1D The inward folding method shown.

[0093] The electronic device 200 can realize the shooting function through ISP, camera 293, video codec, GPU, display screen 294 and application processor.

[0094] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.

[0095] The internal memory 221 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

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

[0097] The buttons 290 include a power button, a volume button, etc. The indicator 292 may be an indicator light.

[0098] The sensor module 280 may include a folding angle detection sensor, a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0099] The gyro sensor may be used to determine the motion posture of the electronic device 200. In some embodiments, the angular velocity of the electronic device 200 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor.

[0100] The acceleration sensor can detect the magnitude of the acceleration of the electronic device 200 in all directions (generally three axes). When the electronic device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0101] In some embodiments, the acceleration sensor may be used to sense operations performed on the electronic device (eg, a double-click operation on a secondary screen, etc.).

[0102] The folding angle detection sensor is used to detect the folding angle of the electronic device 200, that is, the screen, as described above. Figure 1C The folding angle θ is shown. Exemplarily, the folding angle detection sensor may be a Hall sensor.

[0103] The software system of the electronic device 200 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 200.

[0104] Fig. 9 It is a software structure block diagram of the electronic device 200 according to an embodiment of the present application.

[0105] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer (referred to as the application layer), the application framework layer (referred to as the framework layer), the Android runtime (Android runtime) and the system library, and the kernel layer (or driver layer). The application layer can include a series of application packages.

[0106] The application layer may include a series of application packages. The application layer may include multiple application packages. Fig. 9 As shown, the application package can be a gallery, map, phone, video, calendar, short message, camera, target application, smart middle platform and other applications. Among them, the target application is any application in the electronic device that has the function of displaying a QR code. The smart middle platform is used to determine the target QR code information based on user habits.

[0107] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Fig.11 As shown, the application framework layer may include a window manager, a content provider, a phone manager, a resource manager, a notification manager, a view system, a system service, a secondary screen service, and the like.

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

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

[0110] The phone manager is used to provide communication functions of the electronic device 200, such as management of call status (including connecting, hanging up, etc.).

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

[0112] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0113] The system service is used to determine whether the user's trigger operation on the secondary screen is a preset operation. Specifically, the system service can register a target event listener when the electronic device is in a folded state and the main screen of the electronic device is not locked and the screen is on. Afterwards, if the secondary screen of the electronic device is triggered by the user, the system service can determine whether the user's trigger operation on the secondary screen is a preset operation. If the trigger operation is a preset operation, the system service can start the secondary screen service to display the target QR code on the secondary screen of the electronic device.

[0114] The secondary screen service is used to display the target QR code on the secondary screen of the electronic device. Specifically, after determining that the trigger operation is a preset operation, the secondary screen service can display the target QR code on the secondary screen of the electronic device, and display a floating window on the main screen of the electronic device.

[0115] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

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

[0117] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0118] The system library can include multiple functional modules, such as media libraries, 3D graphics processing libraries (such as OpenGL ES), 2D graphics engines (such as SGL), surface managers, interface mapping services, etc.

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

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

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

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

[0123] The interface mapping service is used to merge the content corresponding to the floating window so that the floating window can be displayed on the main screen of the electronic device. Specifically, after the target application completes drawing the floating window, the interface mapping service can merge the content corresponding to the floating window into an image for display on the main screen.

[0124] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, activity management service, display management service, window management service, etc.

[0125] The activity manager service (AMS) is used to manage the life cycle of applications, including launching applications, switching applications, managing task stacks, etc.

[0126] The display management service is used to display a floating window on the main screen of the electronic device.

[0127] The window manager service (WMS) is used to manage windows and user interfaces.

[0128] Understandably, Fig. 9 The layers in the structure shown and the components contained in each layer do not constitute a specific limitation on the electronic device 200, i.e., the folding screen device. In other embodiments of the present application, the structure may include more or fewer layers than shown in the figure, and each layer may include more or fewer components, which is not limited in the present application.

[0129] Based on the electronic device described above, an embodiment of the present application provides a display control method. The method can be applied to a scenario where an electronic device with an outward folding screen is in a folded state. The following will take the electronic device as an outward folding screen mobile phone as an example to illustrate the method of the embodiment of the present application. Specifically, Fig.10 As shown, the display control method may include S201 to S211.

[0130] S201, the external folding screen mobile phone receives the user's touch operation on the secondary screen.

[0131] Among them, the above-mentioned touch operation refers to the operation performed by the user's finger or knuckle touching the secondary screen. Exemplarily, the touch operation can be a click operation on any position in the secondary screen, a tapping operation on any position in the secondary screen, or a sliding operation on the secondary screen, etc., without specific limitation. In one example, the sliding operation can be a single-finger sliding operation or a multi-finger sliding operation. In another example, the sliding operation can be an upward sliding operation on the secondary screen, or a left sliding operation on the secondary screen, etc.

[0132] In this embodiment, the external folding screen mobile phone receives the user's touch operation on the secondary screen only when the external folding screen mobile phone is in the folded state, the main screen is not locked and the screen is on, that is, if the external folding screen mobile phone is in the unfolded state, or the main screen is in the locked screen state or the screen is off, the external folding screen mobile phone does not receive the user's touch operation on the secondary screen. In this way, it can not only avoid the situation where the target QR code is displayed by mistake due to the user's accidental touch of the secondary screen, but also protect the user's information security and prevent the user from leaking important information without knowing it.

[0133] It should be noted that before the external folding screen mobile phone receives the above touch operation, the main screen of the external folding screen mobile phone displays the first user interface, wherein the first user interface includes the interface of the first application. Figure 2 In the interface (a), the first user interface is an interface displaying e-book content, and the first application is an e-book application. At the same time, the secondary screen of the external folding screen mobile phone is in an off state.

[0134] S202, the external folding screen mobile phone determines whether the touch operation is a preset operation.

[0135] In some embodiments, after receiving a touch operation from a user on the secondary screen, the external folding screen mobile phone can determine whether the touch operation is a preset operation. If the touch operation is not a preset operation, it means that the user may have accidentally touched the secondary screen or wants to trigger other events. Therefore, the external folding screen mobile phone can execute S203 to wait for the user's next touch operation on the secondary screen. If the touch operation is a preset operation, it means that the user wants to display the target QR code on the secondary screen. Therefore, the external folding screen mobile phone can execute S204 to determine the target QR code information. Exemplarily, the target QR code can be determined by the external folding screen mobile phone based on the user's usage habits (or user behavior data), or it can be pre-set by the user, or it can be the default of the external folding screen mobile phone, without specific limitation.

[0136] Among them, the above-mentioned preset operation can be the default operation of the external folding screen mobile phone (such as clicking the secondary screen twice in a row), or it can be an operation pre-set by the user according to his own usage habits, etc., and there is no specific limitation. Exemplarily, the preset operation can be that the user taps the secondary screen of the external folding screen mobile phone for a preset number of times (such as 2 times, 3 times, etc.), or it can be that the user slides the finger on the secondary screen of the external folding screen mobile phone in a preset direction (such as from left to right, from bottom to top, etc.), or it can be that the user taps once on the secondary screen of the external folding screen mobile phone and then slides, etc. Alternatively, the preset operation can also be an operation of tapping, sliding or dragging the main screen of the external folding screen mobile phone and any combination thereof.

[0137] In one implementation, there may be multiple preset operations, and different preset operations correspond to different display contents. For example, if the preset operation is for the user to tap twice in a row on the secondary screen of the external folding screen mobile phone, the external folding screen mobile phone can display the target QR code on the secondary screen. For another example, if the user slides his finger from left to right on the secondary screen of the external folding screen mobile phone, the external folding screen mobile phone can display the user's electronic work card on the secondary screen.

[0138] Exemplarily, if the above touch operation is one of the multiple preset operations, it means that the user wants to display the display content corresponding to the touch operation on the secondary screen, so the external folding screen mobile phone can display the display content corresponding to the touch operation on the secondary screen. If the above touch operation does not belong to any of the multiple preset operations, it means that the user may have accidentally touched the secondary screen or wants to trigger other events, so the external folding screen mobile phone can execute S203 to wait for the user's next touch operation on the secondary screen.

[0139] S203, the external folding screen mobile phone waits for the user's next touch operation on the secondary screen.

[0140] In the present application, after determining that the above touch operation is not a preset operation, the external folding screen mobile phone can wait for the user's next touch operation on the secondary screen to continue to determine whether the user's next touch operation is a preset operation.

[0141] S204, the external folding screen mobile phone determines the target QR code information based on the user behavior data.

[0142] In this application, after determining that the above touch operation is a preset operation, the external folding screen mobile phone can determine the target QR code information based on the user behavior data (or user usage habit data). Among them, the target QR code information may include the application name corresponding to the target QR code (or the application name of the target application) and the type of the target QR code. Exemplarily, the type of the target QR code can be a payment code, a ride code, a payment code, an identity code, and various QR codes that may appear in the future, etc., without specific limitation.

[0143] Among them, the above-mentioned user behavior data is used to indicate the user's habit of using applications in external folding screen mobile phones. The user behavior data may include the preference of applications in external folding screen mobile phones (or called application usage rate) and QR code display habits, etc. The preference of the application indicates the frequency of the user using the application. If the user often uses the application, it means that the preference of the application is high. It can be understood that the user behavior data can be user behavior habit data collected in the previous period of time. Among them, the preset time can be set according to needs, such as the preset time can be 1 day, 1 week, etc.

[0144] In one example, if the payment applications in the external folding screen mobile phone include the first application and the second application, and the usage rate of the first application is higher than that of the second application, that is, the user often uses the first application to make payments, so the external folding screen mobile phone can determine the payment code corresponding to the first application as the target QR code. Afterwards, if the user performs the above preset operation on the secondary screen, it means that the user is about to make a payment operation, so the external folding screen mobile phone can directly display the payment code corresponding to the first application on the secondary screen.

[0145] In another example, if the user holding the external folding screen mobile phone often displays the boarding code between 8:00 and 8:30, it means that the user often takes the bus between 8:00 and 8:30, so the external folding screen mobile phone can use the boarding code as the target QR code. Afterwards, if the user performs the above preset operation on the secondary screen between 8:00 and 8:30, it means that the user is about to take the bus, so the external folding screen mobile phone can directly display the boarding code on the secondary screen.

[0146] In some embodiments, the target QR code information can be determined based on the user's touch operation on the secondary screen, that is, the target QR code information corresponding to different touch operations is different. For example, if the user clicks on the secondary screen twice in succession, the external folding screen mobile phone can display the payment code of the first application on the secondary screen. For another example, if the user clicks on the secondary screen three times in succession, the external folding screen mobile phone can display the boarding code of the third application on the secondary screen.

[0147] S205, the external folding screen mobile phone determines whether the target process has exited.

[0148] Specifically, after determining the target QR code information, the external folding screen mobile phone can determine whether the target process has exited. Among them, the target process is the process triggered based on the above preset operation, that is, the process corresponding to when the external folding screen mobile phone executes the secondary screen code program. The process is a running activity of a program with independent functions on a certain data set.

[0149] In some embodiments, if the target process has been exited, it means that the external folding screen mobile phone may be in an abnormal scene or the user does not want to display the target QR code. Therefore, in order to avoid wasting memory resources due to drawing the target QR code, the external folding screen mobile phone can execute S206, that is, not displaying the target QR code on the secondary screen. If the target process has not been exited, it means that the external folding screen mobile phone is in a normal scene, that is, the external folding screen mobile phone is still in a folded state, the main screen is not locked and the screen is on, and the user has not performed any exit operation. Therefore, the external folding screen mobile phone can execute S207.

[0150] Exemplarily, if the external folding screen mobile phone responds to an abnormal event, the external folding screen mobile phone can exit the above target process. Among them, the abnormal event can be that the user switches the external folding screen mobile phone from the folded state to the unfolded state during the process of the external folding screen mobile phone determining the target QR code information, or that the main screen of the external folding screen mobile phone switches from the bright screen state to the off screen state during the process of the external folding screen mobile phone determining the target QR code information, or that the external folding screen mobile phone monitors at least two exit events during the process of displaying the historical QR code on the secondary screen, etc. The historical QR code is the QR code displayed before the target QR code, that is, the QR code displayed by the secondary screen in response to the user's preset operation last time.

[0151] In one example, the exit event may be receiving a first operation from a user, and the first operation may be an operation in which a switching control is clicked by the user. The switching control is used to switch the historical QR code displayed on the secondary screen to the main screen. That is, if the switching control is clicked by the user, the external folding screen mobile phone may display the historical QR code on the main screen. For example, see Fig.11 ,Should Fig.11 The interface (a) in the figure is the user interface of the main screen in the current situation. Fig.11 The interface (b) in the figure is the user interface of the secondary screen in the current situation, that is, a floating window 302 is displayed on the main screen, and the floating window 302 includes a switching control A, and a historical QR code is displayed on the secondary screen. If the switching control A in the floating window 302 is clicked by the user, the secondary screen in the external folding screen mobile phone will not display the historical QR code, that is, the secondary screen is in the off state (such as Fig.11 In addition, the external folding screen mobile phone displays the historical QR code on the main screen (such as Fig.11 That is, the historical QR code is switched from the secondary screen to the main screen.

[0152] In one example, the above exit event may be that the historical QR code is successfully scanned. It is understandable that if the historical QR code is successfully scanned, it means that the historical QR code has been used by the user. Therefore, the external folding screen mobile phone does not need to continue to display the historical QR code on the secondary screen, and the secondary screen can be switched from the on screen state to the off screen state, or the external folding screen mobile phone can display a prompt message (such as scanning success) on the secondary screen for a first preset time (such as 5s) to prompt the user that the historical QR code has been successfully scanned, so that the user can clearly understand the scanning status of the QR code.

[0153] In one example, the above exit event may be that the display time of the historical QR code exceeds the second preset time. It can be understood that if the display time of the historical QR code exceeds the second preset time (such as 30s), it means that the historical QR code has not been scanned for a long time. Therefore, in order to reduce unnecessary power consumption loss, the external folding screen mobile phone may not display the historical QR code on the secondary screen, that is, exit the display of the historical QR code, and convert the secondary screen from the bright screen state to the off screen state, so as to reduce the power consumption of the external folding screen mobile phone and improve the battery life of the external folding screen mobile phone.

[0154] In another example, the exit event may be receiving a second operation from the user, where the second operation is used to switch the historical QR code to a candidate QR code. The candidate QR code refers to a QR code that the user wishes to display on the secondary screen, and the candidate QR code is any one of multiple QR codes to be switched. It can be understood that if the historical QR code is switched by the user, it means that the user does not want to display the historical QR code, and the user wants to display a new historical QR code (or candidate QR code) on the secondary screen. Therefore, the external folding screen mobile phone can update and display the new historical QR code on the secondary screen. For example, please refer again to Figure 3 If the drop-down control 3025 is clicked by the user, it means that the user wants to switch the historical QR code, then the external folding screen mobile phone can display the QR code information to be switched on the floating window of the main screen, that is, the main screen of the external folding screen mobile phone can display the following Figure 4 The content displayed in the interface (a) in the middle is displayed, so that the user can select the historical QR code that he wants to switch to. Afterwards, if the area corresponding to the "second QR code of the second application" in the floating window 302 is clicked by the user, it means that the user wants to display the second QR code on the secondary screen. Therefore, the external folding screen mobile phone can display the second QR code of the second application on the secondary screen, that is, the secondary screen of the external folding screen mobile phone can display the following Figure 4 (b) The content displayed on the interface.

[0155] It can be understood that one exit event corresponds to one secondary screen code lighting process. If two exit events occur during the execution of the secondary screen code lighting program, the external folding screen mobile phone will record an exit event so as to exit the next time the secondary screen code lighting program is executed. In other words, the target QR code cannot be displayed normally. Therefore, in this embodiment, the external folding screen mobile phone can classify at least two exit events triggered during the last execution of the secondary screen code lighting program into the above-mentioned abnormal events.

[0156] S206, the external folding screen mobile phone does not draw the floating window.

[0157] Specifically, after determining that the target process has exited, the external folding screen mobile phone does not need to display the floating window on the main screen, that is, the external folding screen mobile phone does not need to draw the floating window. In this way, the waste of drawing resources caused by drawing the floating window can be reduced, and the drawing resources of the target QR code can be saved.

[0158] In some embodiments, after determining that the above-mentioned target process has exited, the external folding screen mobile phone can execute the above-mentioned S203 to wait for the user's next touch operation on the secondary screen.

[0159] S207, the foldable screen mobile phone displays a floating window on the main screen and displays the target QR code on the secondary screen.

[0160] Specifically, after determining that the above-mentioned target process has not exited, the external folding screen mobile phone can display a floating window (or called a first floating window) on the main screen, and display the target QR code on the secondary screen. In this way, the accuracy of the display of the target QR code and the floating window can be improved, and the occurrence of situations where the user experience is affected by the incorrect display of the target QR code and the floating window can be reduced. In addition, since the external folding screen mobile phone can display the target QR code on the secondary screen without affecting the use of the main screen, and can display the display status of the target QR code in the form of a floating window on the main screen, it is convenient for users to understand the display status of the target QR code in a timely manner, facilitate users to perform corresponding processing, and improve the user experience.

[0161] It can be understood that displaying a floating window on the main screen means displaying a floating window on the basis of the original first user interface, that is, the new user interface (or second user interface) may include the interface of the first application and the first floating window. Among them, the floating window may include at least one of the application name corresponding to the target QR code, the application icon corresponding to the target QR code, the type of the target QR code, and the display status of the target QR code on the secondary screen. The display status may include a back screen bright code status and a bright code failure status. The back screen bright code status is used to indicate that the back screen successfully displays the QR code, and the bright code failure status is used to indicate that the back screen fails to successfully display the QR code. In some embodiments, the floating window may also include a drop-down control, which is used to display the information of the QR code to be switched for the user to select.

[0162] For example, Figure 3 As shown, the Figure 3 The (a) interface is the above-mentioned second user interface. Specifically, a floating window 302 is displayed on the main screen, and the floating window 302 includes an application icon (such as the icon 3021 of the first application), the display status of the QR code (such as the back screen bright code status 3022), the application name (such as the first application 3023), the QR code type (such as the first payment code 3024) and the drop-down control 3025.

[0163] At the same time, the above Figure 3 The interface (b) in the figure is the user interface of the secondary screen. Specifically, the secondary screen displays the target QR code, that is, the first payment code of the first application. The area 303 displaying the first payment code of the first application may include a payment barcode 3031, a payment QR code 3032, and text 3033 indicating the display of the first payment code number. Exemplarily, the user interface of the first payment code of the first application may also include an explanation 304 about the first payment code. The explanation 304 may include an icon 3041 of the first application and the name of the displayed QR code (such as the first payment code of the first application) 3042.

[0164] S208, the external folding screen mobile phone determines whether the target QR code on the secondary screen is scanned.

[0165] In some embodiments, after the target QR code is displayed on the secondary screen, the external folding screen mobile phone can determine whether the target QR code on the secondary screen has been scanned. If the target QR code on the secondary screen has been scanned, it means that the target QR code has been used by the user. Therefore, the external folding screen mobile phone executes S209 to display a prompt message in the floating window of the main screen and / or on the secondary screen. If the target QR code on the secondary screen has not been scanned, it means that the target QR code has not been used by the user. Therefore, the external folding screen mobile phone can execute S211 to determine whether the target QR code has been displayed for a long time.

[0166] The target QR code being scanned refers to the target QR code being scanned by a code scanning device, and the code scanning device refers to any electronic device capable of scanning codes, such as a point of sales (POS) terminal and the like.

[0167] S209, the foldable screen mobile phone displays a prompt message in a floating window on the main screen and / or on the secondary screen.

[0168] Specifically, after determining that the target QR code on the secondary screen has been scanned, the external folding screen mobile phone can directly display prompt information (or scanning information) in the floating window of the main screen and / or on the secondary screen. In this way, it is convenient for users to clearly understand the scanning status of the target QR code and improve the user experience.

[0169] Among them, the above prompt information is used to indicate whether the target QR code displayed on the secondary screen has been scanned successfully. In one example, the prompt information may be text information such as successful code scanning and successful payment, wherein the text information may be related to the type of the target QR code. For example, if the type of the target QR code is an identity identification code, the text information may be successful code scanning. For another example, if the type of the target QR code is a payment code, the text information may be successful payment. For another example, if the type of the target QR code is a collection code, the text information may be successful collection. In another example, if the type of the above target QR code is a payment code, the prompt information may also include the payment amount, payment method, and payee, etc. If the type of the above target QR code is a collection code, the prompt information may also include the collection amount, collection method, and payee, etc.

[0170] In some embodiments, the external folding screen mobile phone can display a third user interface on the main screen. The third user interface includes the interface of the first application and the second floating window. The second floating window includes the first prompt information, the application name corresponding to the target QR code, and the QR code type.

[0171] In other embodiments, the external folding screen mobile phone can display a second prompt message on the secondary screen. The second prompt message can be the same as or different from the first prompt message, and is not specifically limited.

[0172] In one example, if Fig.12 As shown, if the first payment code of the first application is scanned, the secondary screen of the external folding screen mobile phone (such as Fig.12 The interface (b) in the figure shows text information (such as payment success) 3035, payment amount (such as ¥100) 3036, payment method 3037 and payee 3038. Fig.12A floating window 302C is displayed on the (a) interface), wherein the floating window 302C may include an icon 302C1 of the first application, text information indicating that the payment has been completed (such as a payment of 100 yuan) 302C2, the name of the first application 302C3 and a QR code type (such as a first payment code) 302C4.

[0173] In another example, if Fig.13 As shown, if the second QR code of the second application is scanned, the secondary screen of the external folding screen mobile phone (such as Fig.13 The (b) interface in the figure shows a text message (such as successful code scanning). At the same time, the main screen of the foldable phone (such as Fig.13 A floating window 302D is displayed on the (a) interface), wherein the floating window 302D may include an icon 302D1 of the second application, text information 302D2 indicating that the code scanning has been completed, the name 302D3 of the second application, and a QR code type (such as a second QR code) 302D4.

[0174] It is understandable that the above Fig.12 (a) interface and Fig.13 The floating window displayed on the interface (a) is only an example and does not constitute a limitation on the embodiments of the present application. In a specific implementation, the floating window may display other interface elements or content, which is not limited in the embodiments of the present application.

[0175] In one implementation, since the secondary screen is a display screen facing away from the user, that is, the user cannot directly view the content displayed on the secondary screen, and the user may need to flip the external folding screen mobile phone over so that the user can view the prompt information displayed on the secondary screen. Therefore, in order to reduce the situation where the power consumption is large due to the display of prompt information on the secondary screen, the external folding screen mobile phone can only display the prompt information in the floating window of the main screen, so as to reduce unnecessary power consumption and improve the battery life of the external folding screen mobile phone.

[0176] S210, when the display time of the above prompt information is greater than the first preset time, the external folding screen mobile phone deletes the prompt information.

[0177] In the present application, after displaying the prompt information, the external folding screen mobile phone can obtain the display time of the prompt information. If the display time of the prompt information is not greater than the first preset time, it means that the user may not have understood the scanning status of the target QR code. Therefore, the external folding screen mobile phone can continue to display the prompt information until the display time of the prompt information is greater than the first preset time. The external folding screen mobile phone can delete the above prompt information. In this way, it can be ensured that the user can clearly understand the scanning status of the target QR code. If the display time of the prompt information is greater than the first preset time, it means that the user has clearly understood the scanning status of the target QR code. Therefore, in order to reduce unnecessary power consumption loss, the external folding screen mobile phone can delete the above prompt information.

[0178] The first preset time may be set by a timer, for example, the first preset time may be 3s, 5s, etc. It can be understood that the timer is equivalent to a timer.

[0179] In some embodiments, after determining that the external folding screen mobile phone displays a prompt message in the floating window of the main screen, if the display time of the prompt message is greater than the first preset time, the external folding screen mobile phone can directly delete the floating window. In this way, the cleanliness of the main screen interface can be improved and the integrity of the content displayed on the main screen interface can be ensured.

[0180] In other embodiments, after determining that the external folding screen mobile phone displays a prompt message on the secondary screen, if the display time of the prompt message is greater than the first preset time, the external folding screen mobile phone can directly switch the secondary screen from the on screen state to the off screen state. In this way, the power consumption of the external folding screen mobile phone can be reduced and the battery life of the external folding screen mobile phone can be improved.

[0181] S211, if the display time of the above-mentioned floating window is greater than the second preset time, the external folding screen mobile phone deletes the floating window displayed on the main screen, and deletes the target QR code displayed on the secondary screen.

[0182] In the present application, after determining that the target QR code on the secondary screen has not been scanned, the external folding screen mobile phone can obtain the display time of the above floating window (or the display time of the target QR code). It can be understood that the floating window and the target QR code are displayed at the same time, that is, the display time of the floating window is the same as the display time of the target QR code. Therefore, the external folding screen mobile phone can obtain the display time of the floating window, the display time of the target QR code, and the display time of the floating window and the display time of the target QR code at the same time to improve the accuracy of the display time determination.

[0183] In one example, if the display time of the floating window is not greater than the second preset time, it means that the user may not have scanned the target QR code. Therefore, the mobile phone can continue to display the target QR code and the floating window until the display time is greater than the second preset time or the target QR code is scanned successfully. The external folding screen mobile phone can delete the floating window displayed on the main screen.

[0184] In another example, if the display time of the above-mentioned floating window is greater than the second preset time, it means that the target QR code has not been scanned for a long time. Therefore, in order to reduce unnecessary power consumption loss, the external folding screen mobile phone can delete the floating window displayed on the main screen, and delete the target QR code displayed on the sub-screen, that is, convert the sub-screen from the on-screen state to the off-screen state. In this way, not only the cleanliness of the main screen interface can be improved, the integrity of the content displayed on the main screen interface can be ensured, but also the sub-screen can be put back to the off-screen state, thereby reducing the power consumption of the external folding screen mobile phone and improving the battery life of the external folding screen mobile phone.

[0185] The second preset time may be set by a timer, for example, the second preset time may be 30 seconds, 1 minute, etc. It is understood that the first preset time and the second preset time may be the same or different, and there is no specific limitation.

[0186] In some embodiments, when a user touches the secondary screen, the system service in the external folding screen mobile phone can perform event analysis based on the touch operation to start the secondary screen service application when the touch operation is a preset operation. Fig. 9 The structure shown and Fig.14 The display control process shown in the figure details the process of how the system services in the external folding screen mobile phone perform event analysis.

[0187] S401. When the external folding screen mobile phone is in the folded state and the main screen is not locked and the screen is on, the registration service in the system service registers the target event listener.

[0188] The target event listener is used to monitor the target event, which refers to the user performing a preset operation on the secondary screen.

[0189] In this application, the system service may include a registration service and a gesture service, that is, the registration service and the gesture service are respectively a sub-service thread in the system service process. Among them, the registration service is used to register the time listener corresponding to any event to implement the monitoring operation of the event. The gesture service is used to identify gesture operations (such as touch operations) acting on the external folding screen mobile phone.

[0190] In some embodiments, the above-mentioned registration service can obtain the specific screen folding state, the specific screen on and off state, and the specific screen unlocking state of the external folding screen mobile phone. Specifically, after obtaining the specific screen folding state, the registration service can determine by comparison whether the specific screen folding state is a folding state. After obtaining the specific screen on and off state, the registration service can determine by comparison whether the specific screen on and off state is a bright screen state. After obtaining the specific screen unlocking state, the registration service can determine by comparison whether the specific screen unlocking state is an unlocking state, that is, whether it is an unlocked screen state.

[0191] In one possible implementation, when the external folding screen mobile phone is in the unfolded state, or the main screen is in the locked screen state, or the main screen is in the off-screen state, the registration service will not register the above-mentioned target event listener. Alternatively, when the external folding screen mobile phone is in the unfolded state, or the main screen is in the locked screen state, or the main screen is in the off-screen state, if the registration service has already registered the target event listener, the registration service can unregister the registered target event listener. Exemplarily, the registration service can unregister the registered target event listener by calling the unregister device listener function unregisterDeviceListner().

[0192] In a possible implementation, when the external folding screen mobile phone is in a folded state, the main screen is unlocked and the screen is on, the registration service can register a target event listener. Exemplarily, the above-mentioned registration of the target event listener can be implemented by registering a device listener function registerDeviceListner().

[0193] In some embodiments, when the external folding screen mobile phone is in the folded state, the main screen is unlocked and the screen is on, if the registration service has already registered the target event listener, it will not be registered again. Specifically, the registration service can judge by querying whether the listener list in the registration service includes the information of the target event listener. If the listener list in the registration service includes the information of the target event listener, it indicates that the target event listener has been registered. Therefore, the registration service does not need to register the target event listener again. If the listener list in the registration service does not include the information of the target event listener, it indicates that the target event listener has not been registered. Therefore, the registration service can register the target event listener.

[0194] It can be understood that among the above-mentioned screen folding state, screen on and off state and screen unlocking state, as long as one of the status information changes, it will trigger the above-mentioned registration service to determine whether the screen meets the folding state, unlocked screen and bright screen conditions, and then determine whether to register or unregister the above-mentioned target event listener.

[0195] S402: The gesture service in the system service receives the target event listener sent by the registration service.

[0196] Specifically, after the target event listener is registered, the registration service can send the target event listener to the gesture service in the system service, so that the gesture service can return the target event to the registration service after determining that the user's touch operation on the secondary screen is the target event.

[0197] S403. The acceleration sensor in the external folding screen mobile phone receives the user's touch operation on the secondary screen.

[0198] In this application, after the user performs a touch operation on the secondary screen of the external folding screen mobile phone, the acceleration sensor in the external folding screen mobile phone can receive the touch operation. Among them, the acceleration sensor is used to collect information about the movement of the user's fingers or knuckles on the secondary screen, for example, to sense the click operation on the secondary screen.

[0199] S404: The gesture service receives the touch operation sent by the acceleration sensor.

[0200] Specifically, after the acceleration sensor receives the above touch operation, the acceleration sensor can send the touch operation to the gesture service, so that the gesture service can determine whether the touch operation of the user on the secondary screen is a target event.

[0201] S405: The gesture service determines whether the input event corresponding to the touch operation is a target event.

[0202] Specifically, after the gesture service receives the above touch operation, the gesture service can determine whether the input event corresponding to the touch operation is a target event. If the input event corresponding to the touch operation is a target event, it means that the user wants to start the secondary screen service. Therefore, the gesture service can call the above target event listener and send the target event to the registration service. If the input event corresponding to the touch operation is not a target event, it means that the user may have accidentally touched the secondary screen or wanted to call other services. Therefore, the gesture service does not need to send the target event to the registration service.

[0203] In some embodiments, the gesture service may determine whether the input event corresponding to the above touch operation is a target event through a preset algorithm. For example, the preset algorithm may be a back-screen tapping (TapTap) algorithm.

[0204] It can be understood that different gesture operations (or touch operations) can correspond to different service applications. For example, a double-click operation on the main screen corresponds to a screenshot service application. For another example, a swipe up operation on the main screen corresponds to an exit service application. For another example, a double-click operation on the secondary screen corresponds to a secondary screen service application.

[0205] S406: When the input event corresponding to the touch operation is a target event, the gesture service calls the target event listener and sends the target event to the registration service.

[0206] In this application, if the input event corresponding to the above touch operation is a target event, the gesture service can call the target event listener through the device management service, so that after the method in the target event listener is executed, the target event can be returned to the registration service. Among them, the device management service (hwExtDeviceManage) can obtain the input event corresponding to the touch operation detected by the acceleration sensor.

[0207] It can be understood that if the input event corresponding to the above touch operation is not a target event, the gesture service may not call the target event listener.

[0208] S407, the registration service controls the secondary screen service application to start based on the above target event.

[0209] In this application, after the registration service receives the target event sent by the gesture service, the registration service can control the opening of the secondary screen service application according to the target event. Among them, the secondary screen service application is an application provided in an embodiment of the present application to realize the display of the above-mentioned target QR code on the secondary screen.

[0210] S408. The secondary screen service application sends a query instruction to the smart middle station.

[0211] Specifically, after the secondary screen service application is turned on, the secondary screen service application can send a query instruction to the smart middle station. The query instruction is used to instruct the smart middle station to determine the target QR code information. The target QR code information may include the application name corresponding to the target QR code and the type of the target QR code.

[0212] S409. When the smart middle platform receives the above query instruction, it determines the target QR code information in combination with the user behavior data.

[0213] In this application, after the smart middle station receives the above query instruction, the smart middle station can determine the target QR code information in combination with the user behavior data.

[0214] S410. The smart middle platform sends the above-mentioned target QR code information to the secondary screen service application.

[0215] Specifically, after the smart middle station determines the target QR code information, the smart middle station can send the above target QR code information to the secondary screen service application. Among them, the above floating window may include at least one of the application name corresponding to the target QR code, the application icon corresponding to the target QR code, the type of the target QR code, and the display status of the target QR code. The display status may include a back screen bright code state and a bright code failure state. The back screen bright code state is used to indicate that the back screen successfully displays the QR code, and the bright code failure state is used to indicate that the back screen fails to successfully display the QR code. In some embodiments, the floating window may also include a drop-down control, which is used to display the information of the QR code to be switched for the user to select.

[0216] In some embodiments, when the secondary screen service application receives the target QR code information, the secondary screen service application can display the target QR code on the secondary screen and display a floating window on the main screen. Fig. 9 The structure shown and Fig.15 The display control process shown in the figure details how a foldable screen mobile phone displays a target QR code on the secondary screen.

[0217] S501, the secondary screen service application determines whether the target process has exited.

[0218] In this application, after the secondary screen service application receives the above target QR code information, the secondary screen service application can determine whether the target process has exited. If the target process has not exited, it means that the external folding screen mobile phone is in a normal scene. Therefore, the secondary screen service application can display the target QR code on the secondary screen, that is, it can normally draw the window corresponding to the target QR code.

[0219] In some embodiments, if the target process has exited, it means that the external folding screen mobile phone may be in an abnormal scenario or the user does not want to display the target QR code. Therefore, in order to avoid wasting memory resources due to drawing the target QR code, the secondary screen service application may not display the target QR code on the secondary screen.

[0220] S502: When the target process has not exited, the secondary screen service application sends a message to the application activity management service to pull up the target QR code by calling the start application activity function.

[0221] Exemplarily, the target QR code is the QR code displayed on the secondary screen by default or the QR code selected by the user to be displayed on the secondary screen. For example, the secondary screen service application can display the user interface of the target QR code by starting an application activity.

[0222] The message sent to AMS can be carried by an intent parameter. The intent parameter specifies the activity to be started (referred to as the target activity), that is, the intent parameter includes the data description of the target activity. AMS can create a corresponding application activity record by parsing the intent parameter, and then continue the subsequent process of starting the activity.

[0223] In addition, exemplarily, in an embodiment of the present application, the above-mentioned target QR code is required to be displayed on the secondary screen of the external folding-screen mobile phone. The message sent by the above-mentioned secondary screen service application to AMS also carries the identification information of the sender, that is, the secondary screen service application (such as the application name or a preset unique number, etc.). Therefore, after AMS receives the above-mentioned message, it can determine whether it is a message sent by the secondary screen service application based on the identification information of the sender in the message. If so, adjust the display area associated with the above-mentioned target activity, and set the display area of ​​the target activity to the secondary screen. Thereby, when a window is subsequently created based on the target activity to display the above-mentioned target QR code, the display area of ​​the window is the secondary screen.

[0224] S503: Based on the message, the activity management service sends a notification to the target application to start the target application activity.

[0225] Among them, the above-mentioned target application activity is used to display the target QR code.

[0226] After the AMS creates an application activity record based on the received message, it can first determine whether the application process indicated by the application activity record (i.e., the target application process) exists. If the target application process does not exist, the AMS can first start the target application process, and then send a notification to the target application to start the target activity. If the target application process exists, the AMS directly sends a notification to the target application to start the target activity.

[0227] S504: The target application starts a target application activity based on the notification.

[0228] After receiving the notification from the AMS, the target application creates a corresponding application activity thread (activitythread), thereby starting the target activity.

[0229] Exemplarily, the application activity thread can start the target activity by calling functions such as onCreate() and onResume().

[0230] S505: The target application creates a view tree of the first window through the above target application activity.

[0231] In the present application, after the target application starts the target activity, the target application can create a view tree of the above-mentioned first window through the target activity. Among them, the first window is used to display the above-mentioned target QR code. Exemplarily, the first window displays the user interface of the target application, and the user interface includes the target QR code. For example, if the target QR code is a payment code of an application, then the first window displays the payment code interface of the application. For another example, if the target QR code is a boarding code of an application, then the first window displays the boarding code interface of the application. It can be understood that this is only an example and does not constitute a limitation to the embodiments of the present application.

[0232] S506: The target application sends the view tree of the first window to the window management service.

[0233] The above-mentioned window manager service (WMS) is a sub-service thread in the above-mentioned system service process. The window manager service can at least realize functions such as window management, window animation or assisting the input system to receive input events.

[0234] Exemplarily, the sending of the view tree of the first window to the window management service may be implemented by calling the setview() function. For example, the setview() function may add the view tree of the first window to the window management service by calling the Addwindow() function. For another example, the setview() function may also lay out the first window by calling the requestlayout() function.

[0235] S507: The window management service requests the interface mapping service for a vertical synchronization signal of the secondary screen.

[0236] In this application, after WMS receives the view tree sent by the target application, WMS can apply to the interface mapping service for a vertical synchronization (Vsync) signal for the secondary screen to refresh. Among them, the VSync signal can synchronize the frames per second (FPS), that is, the frame rate, with the refresh rate of the secondary screen to avoid the phenomenon of "tearing" of the screen. In other words, if there is no VSync signal, when the rendering frame data is relatively fast, the refresh of the secondary screen cannot keep up, and it may appear that a certain frame is currently being displayed, and another frame is triggered to be displayed on the screen, which will cause the phenomenon of "tearing" of the screen.

[0237] The above-mentioned surface mapping service (Surfaceflinger) is also a system service. The surface mapping service can assist and cooperate with WMS to realize window management.

[0238] S508: The interface mapping service returns a notification of a vertical synchronization signal to the target application.

[0239] When the next VSync signal arrives, the interface mapping service returns a notification of the Vsync signal to the target application.

[0240] S509: The target application calls a rendering module to draw the first window in response to the vertical synchronization signal of the secondary screen.

[0241] In the present application, after the target application receives the notification of the above-mentioned return Vsync signal, the target application can call the rendering module to draw the first window. For example, the target application can draw the first window by calling the ViewRootlmpl#performTraversals() function. Exemplarily, the performTraversals() function can call functions such as performdraw() to draw the first window.

[0242] S510: The target application sends the drawn first window to the interface mapping service.

[0243] In the present application, after the first window is drawn, the target application can send the first window to the interface mapping service.

[0244] S511. The interface mapping service synthesizes the content of the first window into a graphic to obtain a first synthesized graphic.

[0245] Specifically, after the interface mapping service receives the first window sent by the target application, the interface mapping service may perform graphic synthesis on the first window to obtain a first synthesized graphic, wherein the first synthesized graphic includes the target QR code.

[0246] S512: The interface mapping service sends the first synthesized graphic to the display management service.

[0247] Exemplarily, the display manager service is also a system service that can manage the life cycle of window displays.

[0248] S513: The display management service displays the first synthesized graphic on the secondary screen.

[0249] It should be noted that, since the display area of ​​the target activity has been set to the secondary screen in S502, and the first window is the window of the target activity, the display management service can display the graphics synthesized based on the first window on the secondary screen, so that the target QR code can be displayed on the secondary screen.

[0250] It can be understood that the floating window displayed on the main screen of the external folding screen mobile phone and the target QR code displayed on the secondary screen are displayed synchronously, that is, when the floating window is displayed on the main screen, the target QR code will also be displayed on the secondary screen accordingly. Therefore, when the target application draws the above-mentioned first window, the target application will need to draw the floating window (or second window) on the main screen. Fig. 9 The structure shown and Fig.16 The display control process shown in the figure details how a foldable screen mobile phone displays a floating window on the main screen.

[0251] S601: The target application sends a notification of drawing a first window to the activity management service.

[0252] Specifically, after the target application receives the notification of the return vertical synchronization signal sent by the interface mapping service, the target application may send a notification of drawing the first window to the activity management service, wherein the notification of drawing the first window is used to indicate that the first window is being drawn.

[0253] S602: The activity management service sends the notification of drawing the first window to the secondary screen service application.

[0254] Specifically, after the activity management service receives the notification of the first window sent by the target application, the activity management service may send the notification of drawing the first window to the secondary screen service application.

[0255] S603: The secondary screen service application sends a notification of drawing a second window to the target application.

[0256] In this application, after the secondary screen service application receives the notification of drawing the first window from the activity management service, the secondary screen service application may send a notification of drawing the second window to the target application, wherein the notification of drawing the second window is used to indicate the drawing of the floating window.

[0257] S604: The target application creates a view tree of the second window.

[0258] Specifically, after the target application receives the notification of drawing the second window from the secondary screen service application, the target application can create a view tree of the second window. The second window is used to display the above-mentioned floating window. Exemplarily, the second window can display the user interface of any application in the external folding screen mobile phone, and the user interface includes the floating window. In other words, the target application can display the floating window without affecting the content displayed on the main screen, thereby improving the user experience. For example, please refer again to Figure 3 In the interface (a), the target application can display a floating window 302 on the electronic book being displayed on the main screen.

[0259] S605: The target application sends the view tree of the second window to the window management service.

[0260] Exemplarily, the sending of the view tree of the second window to the window management service may be implemented by calling the setview() function. For example, the setview() function may add the view tree of the second window to the window management service by calling the Addwindow() function. For another example, the setview() function may also lay out the second window by calling the requestlayout() function.

[0261] S606: The window management service requests the interface mapping service for a vertical synchronization signal of the main screen.

[0262] In the present application, after WMS receives the view tree sent by the target application, WMS can apply to the interface mapping service for a vertical synchronization (Vsync) signal for refreshing the main screen. Among them, the VSync signal can synchronize the frames per second (FPS), that is, the frame rate, with the refresh rate of the main screen, in order to avoid the phenomenon of "tearing" of the screen. In other words, if there is no VSync signal, when the rendering frame data is relatively fast, the refresh of the main screen cannot keep up, and it may appear that a certain frame is currently being displayed, and another frame is triggered to be displayed on the screen, and the phenomenon of "tearing" of the screen will occur. It can be understood that the refresh rate of the main screen and the refresh rate of the above-mentioned secondary screen can be the same or different, and there is no specific limitation.

[0263] S607: The interface mapping service returns a notification of a vertical synchronization signal to the target application.

[0264] When the next VSync signal arrives, the interface mapping service returns a notification of the Vsync signal to the target application.

[0265] S608: The target application calls a rendering module to draw a second window in response to the vertical synchronization signal of the main screen.

[0266] In the present application, after the target application receives the notification of the above-mentioned return Vsync signal, the target application can call the rendering module to draw the second window. For example, the target application can draw the second window by calling the ViewRootlmpl#performTraversals() function. Exemplarily, the performTraversals() function can call functions such as performdraw() to draw the second window.

[0267] S609: The target application sends the drawn second window to the interface mapping service.

[0268] In the present application, after the second window is drawn, the target application can send the second window to the interface mapping service.

[0269] S610: The interface mapping service synthesizes the content of the second window into a graphic to obtain a second synthesized graphic.

[0270] Specifically, after the interface mapping service receives the second window sent by the target application, the interface mapping service may perform graphic synthesis on the second window to obtain a second synthesized graphic, wherein the second synthesized graphic may include the above-mentioned floating window.

[0271] S611. The interface mapping service sends the second synthesized graphic to the display management service.

[0272] S612: The display management service displays the second synthesized graphic on the main screen.

[0273] It can be understood that since the second window is a window for displaying a floating window, the display management service can display the graphics synthesized based on the second window on the secondary screen, so that the second synthesized graphics can be displayed on the main screen.

[0274] In some embodiments, the present application provides a computer-readable storage medium, including computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method described above.

[0275] In some embodiments, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the method as described above.

[0276] 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.

[0277] In the several embodiments provided in the present 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 only 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.

[0278] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0279] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0280] 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, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0281] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A display control method, characterized in that: include: Applied to a folding screen device, the display screen of the folding screen device includes a main screen and a sub-screen, when the folding screen device is in a folded state, the display directions of the main screen and the sub-screen are opposite to each other, when the folding screen device is in an unfolded state, the display directions of the main screen and the sub-screen are the same, and the main screen and the sub-screen are two different display areas of the display screen; the method includes: When the folding screen device is in a folded state, a main screen of the folding screen device displays a first user interface, where the first user interface includes an interface of a first application; If the folding screen device receives a preset operation of the user on the secondary screen, the folding screen device determines the target QR code information; When the target process has not exited, the main screen of the folding screen device displays a second user interface, and the secondary screen of the folding screen device displays a target QR code; wherein, the target process is a process triggered based on the preset operation, and the floating window in the second user interface includes the display status of the target QR code on the secondary screen, and the display status includes a back screen bright code status and a back screen bright code failure status.

2. The method according to claim 1, characterized in that The method further comprises: When the target QR code is scanned, the main screen of the folding screen device displays a third user interface, and the floating window in the third user interface includes the first prompt information; and / or, The secondary screen of the folding screen device displays second prompt information; wherein, the second prompt information is the same as or different from the first prompt information.

3. The method according to claim 2, characterized in that The method further comprises: When the display time of the first prompt information is greater than a first preset time, the main screen of the folding screen device displays the first user interface; and / or, When the display time of the second prompt information is greater than the first preset time, the secondary screen of the folding screen device is in an off state.

4. The method according to claim 1, characterized in that: The floating window also includes the target two-dimensional code information, and the target two-dimensional code information includes the application name and the two-dimensional code type corresponding to the target two-dimensional code.

5. The method according to claim 1, characterized in that The method further comprises: When the display time of the target QR code is greater than the second preset time, the main screen of the folding screen device displays the first user interface, and the secondary screen of the folding screen device is in an off state.

6. The method according to claim 1, characterized in that The method further comprises: The folding screen device exits the target process in response to the abnormal event; When the target process exits, the main screen of the folding screen device does not display the floating window in the second user interface, and the secondary screen of the folding screen device is in an off state.

7. The method according to claim 6, characterized in that The abnormal event includes that the folding screen device switches from a folded state to an unfolded state, the main screen switches from a bright screen state to an off screen state, or the folding screen device monitors at least two exit events during the process of displaying the historical QR code on the secondary screen; Among them, the historical QR code is a QR code displayed before the target QR code, and the exit event includes one or more of the following: receiving the first operation of the user, the historical QR code is scanned successfully, the display time of the historical QR code exceeds the second preset time, and receiving the second operation of the user, the first operation is used to switch the historical QR code to the main screen display, and the second operation is used to switch the historical QR code to the candidate QR code.

8. The method according to any one of claims 1 to 7, characterized in that The folding screen device determines target QR code information, including: The folding screen device determines the target QR code information in combination with user behavior data; wherein the user behavior data includes application usage rate and QR code display habits.

9. An electronic device, characterized in that: The electronic device includes a display screen, a memory and one or more processors; the display screen, the memory and the processor are coupled; the display screen includes a folding screen, the memory is used to store computer program code, and the computer program code includes computer instructions; when the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 8.