Content display method and device, electronic equipment and computer readable medium

By displaying the user's historical query content when running on the target application foreground, the problem that the user cannot directly view the last query content after returning to the application, improving the user experience.

CN119690564APending Publication Date: 2025-03-25GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411767402.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

When using the AI ​​tool client based on the andesGPT big model, the user switches to other programs and returns to the query assistant. He cannot directly view the content of the last query and needs to re-query.

Method used

When detecting that the target application is run by the foreground, determine and display the historical contents queried by the pre-stored user through the application to avoid re-query.

Benefits of technology

It enables users to quickly view the content they have queryed in the specified interface of the target application, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690564A_ABST
    Figure CN119690564A_ABST
Patent Text Reader

Abstract

The invention discloses a content display method and device, electronic equipment and a computer readable medium, and relates to the technical field of information processing.The method comprises the steps that under the condition that it is detected that a target application program is operated in a foreground, at least one piece of pre-stored historical content inquired by a user through the target application program is determined; obtaining target content based on the historical content; and displaying the target content on a specified interface of the target application program. Therefore, under the condition that the user operates the target application program in the foreground of the electronic equipment, the historical content which has been inquired by the user in the target application program can be displayed in the specified interface of the target application program, so that the user can quickly look up the inquired content, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information processing technology, and more specifically, to a content display method, device, electronic device and computer-readable medium. Background Art

[0002] The functions of large models such as andesGPT on mobile phones are becoming more and more powerful and convenient, which will prompt more and more mobile phone users to use AI tool clients based on andesGPT large models to query the required content. However, at present, when users use such clients, the way to obtain the queried content is not reasonable. When switching the client to the foreground, it is usually necessary to re-query to obtain the corresponding query content. Summary of the invention

[0003] The present application proposes a content display method, device, electronic device and computer-readable medium to improve the above-mentioned defects.

[0004] In a first aspect, the present application provides a content display method, which is applied to an electronic device, and the method includes: when detecting that a target application is running in the foreground, determining at least one pre-stored historical content queried by a user through the target application; acquiring the target content based on the historical content; and displaying the target content on a designated interface of the target application.

[0005] In a second aspect, the present application also provides a content display device, which is applied to an electronic device, and the device includes: a determination unit, an acquisition unit, and a display unit. The determination unit is used to determine at least one pre-stored historical content queried by a user through the target application when it is detected that the target application is running in the foreground. The acquisition unit is used to acquire the target content based on the historical content. The display unit is used to display the target content on a specified interface of the target application.

[0006] In a third aspect, the present application also provides an electronic device comprising: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the above method.

[0007] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.

[0008] The content display method, device, electronic device and computer-readable medium provided by the present application, when detecting that the target application is running in the foreground, determine at least one pre-stored historical content that the user has queried through the target application; obtain the target content based on the historical content; and display the target content in the designated interface of the target application. Therefore, when the user runs the target application in the foreground of the electronic device, the historical content that the user has queried in the target application can be displayed in the designated interface of the target application, so that the user can quickly check the content that has been queried, thereby improving the user experience.

[0009] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0011] Figure 1 A method flow chart of a content display method provided by an embodiment of the present application is shown;

[0012] Figure 2 A schematic diagram of a designated interface provided by an embodiment of the present application is shown;

[0013] Figure 3 A method flow chart of a content display method provided by an embodiment of the present application is shown;

[0014] Figure 4 A schematic diagram showing changes in a designated interface provided by an embodiment of the present application is shown;

[0015] Figure 5 A schematic diagram showing changes in a designated interface provided by another embodiment of the present application is shown;

[0016] Figure 6 A schematic diagram showing changes in a designated interface provided by another embodiment of the present application is shown;

[0017] Figure 7 A schematic diagram showing changes in a designated interface provided by yet another embodiment of the present application is shown;

[0018] Figure 8A schematic diagram showing changes in a designated interface provided by yet another embodiment of the present application is shown;

[0019] Fig. 9 A schematic diagram showing changes in a designated interface provided in yet another embodiment of the present application is shown;

[0020] Fig.10 A schematic diagram showing an application of the content display method provided by an embodiment of the present application is shown;

[0021] Fig.11 A module block diagram of a content display device provided by an embodiment of the present application is shown;

[0022] Fig.12 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;

[0023] Fig.13 A storage unit for storing or carrying program codes for implementing the method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the present application embodiment will be clearly and completely described below in conjunction with the drawings in the present application embodiment. Obviously, the described embodiment is only a part of the present application embodiment, rather than all the embodiments. The components of the present application embodiment usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiment of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0025] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0026] Large model-based technologies, such as andesGPT, are developing rapidly, especially on mobile devices, which greatly improves the functionality and convenience of smart assistant tools. Through continuous optimization, these models can handle more complex and diverse user needs and provide real-time, accurate queries and suggestions. With the maturity of large model technology, mobile phone users can easily query various information such as weather, news, knowledge questions and answers, language translation, and even obtain personalized recommendations and in-depth analysis through AI tools such as query assistants. It is expected that in the future, with the further improvement of performance and the advancement of mobile phone hardware, more users will rely on these AI tools to simplify tasks such as information query and decision support in daily life, and promote AI assistants to gradually become an indispensable part of life.

[0027] Then, the inventor discovered in the study that when users use AI tool clients based on the andesGPT large model, such as Query Assistant, if the user switches to other programs and then returns to the Query Assistant, they cannot directly view the last query content. This is because mobile phone manufacturers have taken some restrictive measures in design considering user privacy protection and security. These restrictions affect the behavior of applications such as Query Assistant in the background and the way data is stored.

[0028] Specifically, in order to prevent users' personal information or query records from being improperly accessed or abused, many manufacturers have strengthened privacy protection at the operating system level. For example, Android and iOS operating systems usually restrict background applications from having persistent access to user data. When users switch to other applications and return, the status of applications such as query assistants may be reset, and the last query record or conversation content will no longer be retained. This can prevent sensitive information from being leaked, especially when the application is suspended in the background, which may involve the user's history, search content, conversation records, etc.

[0029] Therefore, currently, when users use this type of client, the way to obtain the queried content is not reasonable. When switching the client to the foreground, it is usually necessary to re-query to obtain the corresponding queried content.

[0030] See also Figure 1 , Figure 1 A content display method provided by an embodiment of the present application is shown, and the method is applied to an electronic device. Specifically, the method includes: S101 to S103.

[0031] S101: When it is detected that a target application is running in the foreground, determining at least one pre-stored historical content queried by a user through the target application.

[0032] As an implementation method, the target application is a content query application, such as Figure 2As shown, the user can input the content to be queried in the target application, and the target application can give reply content corresponding to the content to be queried based on the big model. Therefore, for one content to be queried, there is a corresponding reply content. In the embodiment of the present application, the historical content may refer to the reply content, or may include both the content to be queried and the reply content, and there is no limitation on this.

[0033] Therefore, the user can input the content to be queried in the interactive interface of the target application (for example, the query content display interface), and the target application will also display the reply content corresponding to the content to be queried in the interface, so the user can know the reply content corresponding to the content to be queried in the interface.

[0034] As mentioned above, in order to avoid user privacy leakage, some current developers will delete the data corresponding to the user's query traces in the target application when the target application is closed or switched to the background. Specifically, the data corresponding to the query traces include the query content entered by the user and the reply content corresponding to each query content, that is, the historical content. In the embodiment of the present application, the historical content will be displayed when the target application is running in the foreground.

[0035] It is understandable that the aforementioned large models usually refer to artificial intelligence models with a large number of parameters and complex architectures, especially large-scale neural networks in the field of deep learning. Compared with traditional small-scale models, "large models" usually have more parameters, deeper layers, and stronger computing power, so they can handle more complex and diverse tasks. In natural language processing (NLP), "large models" often refer to models based on Transformer architectures such as GPT and BERT.

[0036] It should be noted that there are at least two scenarios in which the target application is running in the foreground. One scenario is that the user starts the target application. For example, the target application is in a closed state, that is, it is not running in the background or in the foreground, and the user starts the target application. The other scenario is that when the target application is running in the background, it is switched to the foreground.

[0037] As an implementation mode, when a user uses the target application to perform a content query operation, the target application can store the content to be queried determined based on the content query operation and the reply content corresponding to the content to be queried as historical content. For example, a temporary storage device (for example, a storage space designated in a random access memory) can be added to store the historical content.

[0038] As an implementation mode, in consideration of user privacy and storage space limitations, an upper limit value may be set for the number of pre-stored historical contents. When the total number of historical contents currently determined operates at the upper limit value, at least part of the historical contents are deleted according to the timestamps corresponding to the historical contents, so that the number of stored historical contents is not greater than the upper limit value. Exemplarily, the upper limit value may be a second number. Then, when it is detected that the target application is running in the foreground, before determining at least one pre-stored historical content queried by the user through the target application, the method further includes: when it is detected that the target application is exited from the foreground, treating the second number of query contents queried by the user through the target application as historical contents; and storing the historical contents.

[0039] For example, determine the historical content generated when the user uses the target application this time as the new historical content, determine the target number based on the number of the new historical content, and based on the timestamp of each historical content, delete the target number of historical content in the stored historical content in the order from earliest to latest, and store the undeleted historical content, wherein the number of undeleted historical content is not greater than the upper limit. For example, the number of historical content currently stored is 9, the upper limit is 10, and the number of historical content newly generated this time is 4, then it is necessary to determine 3 historical content in the 9 stored historical content to delete them, then the three historical content with the earliest timestamp can be deleted, and then the newly generated historical content and the 6 undeleted historical content are stored together. Therefore, the target number is determined by obtaining the difference between the upper limit and the number of historical content currently stored as the first difference, if the number of the newly generated historical content is greater than the first difference, then the second difference between the number of the newly generated historical content and the first difference is used as the target number, if the number of the newly generated historical content is less than or equal to the first difference, then there is no need to delete the stored historical content, and the newly generated historical content can be directly stored. The newly generated historical content may refer to the historical content generated by the user's query operation during the process of running the target application in the foreground to switching it to the background or closing it.

[0040] As an implementation method, the historical content can correspond to a time period, that is, the electronic device can store the historical content of the target application according to the time period. Exemplarily, the time period can be named a storage period. For example, the storage period can be 1 day. Therefore, the electronic device can store the historical content generated by the user using the target application every day. For example, on February 3, the historical content generated by the user is stored corresponding to the storage period of February 3, and the historical content generated by the user on February 4 is stored corresponding to the storage period of February 4. In other words, the historical content generated on February 3 is stored corresponding to February 4.

[0041] Then, when it is detected that the target application is running in the foreground, the implementation method of determining at least one pre-stored historical content that the user has queried through the target application can be, when it is detected that the target application is running in the foreground, determining at least one pre-stored historical content that the user has queried through the target application in the current storage period. Exemplarily, when it is detected that the target application is running in the foreground, determining the storage period corresponding to the current moment, and then determining at least one stored historical content corresponding to the storage period.

[0042] As an implementation method, in order to protect user privacy and reduce the storage pressure of electronic devices, only the historical content within the current storage cycle can be stored, and the historical content of the storage cycle before the current storage cycle will be deleted. Exemplarily, the method also includes, when the end of the current storage cycle is detected, deleting the stored historical content corresponding to the current storage cycle. For example, the storage cycle is one day, that is, 24 hours, then assuming that the current storage cycle is February 4, the specific time period is from 3:00:00 on February 4 to 2:59:59 on February 5, which is the storage cycle corresponding to February 4, and 3:00:00 on February 5 is the next storage cycle, so at 3:00:00 on February 5, the electronic device can detect the end of the current storage cycle, and then delete the historical content corresponding to February 4.

[0043] S102: Acquire target content based on the historical content.

[0044] As an implementation method, all historical contents may be used as target contents. Of course, part of the historical contents may also be selected as target contents. This is not limited and will be described in detail in subsequent embodiments.

[0045] S103: Displaying the target content on a designated interface of the target application.

[0046] As an implementation mode, the designated interface may be the aforementioned interactive interface, that is, the user inputs the content to be queried (e.g., question 1) in the interactive interface, and the reply content 1 corresponding to the question 1 is displayed. When the user switches the target application to the background or closes it, the question 1 and the reply content 1 will not be deleted. When the user runs the target application in the foreground again, the question 1 and the reply content 1 as historical content, if selected as the target content, will be displayed in the interactive interface, so as to avoid the situation where the question 1 and the reply content 1 are deleted because the target application is switched to the background or closed, and the user switches the target application to the foreground, and if he needs to query the reply to the question 1 that he just entered, he needs to re-enter the question 1. Therefore, when the user runs the target application in the foreground of the electronic device, the historical content that the user has queried in the target application can be displayed in the designated interface of the target application, so that the user can quickly check the content that has been queried, thereby improving the user experience.

[0047] See also Figure 3 , Figure 3 A content display method provided in an embodiment of the present application is shown, and the method is applied to an electronic device. Specifically, the method includes: S301 to S303.

[0048] S301: When it is detected that a target application is running in the foreground, determining at least one pre-stored historical content queried by a user through the target application.

[0049] Specifically, the implementation of S301 may refer to the aforementioned content and will not be described in detail here.

[0050] S302: searching for the latest specified number of historical contents in the historical contents according to the timestamps corresponding to each historical content as target contents.

[0051] S303: Displaying the target content on a designated interface of the target application.

[0052] As mentioned above, each historical content corresponds to a timestamp. For example, when the user enters the content to be queried in the target application, the target application will record the time of the content to be queried entered this time as the query time. Then, the target application displays the reply content corresponding to the content to be queried, and the time corresponding to the display of the reply content is used as the response time. Then, the timestamp of the historical content corresponding to the content to be queried can be the query time or the response time, without limitation. Of course, it can also be the middle moment between the query time and the response time as the timestamp of the historical content. It is understandable that the specified number is less than or equal to the total number of the historical content. In other words, the number of the target content can be one or more, and the target content can be displayed at one time or in multiple times, without limitation.

[0053] As an implementation method, the target content may be determined when the target application is running in the foreground, and then the target content is directly displayed. Figure 4 As shown, Figure 4 In (a), the user runs the target application in the foreground of the electronic device, and the designated interface of the target application does not display the historical content that the user has searched for. This is because: Figure 4 The interface shown in (a) is the first time that the user runs the target application in the foreground of the electronic device in the current storage cycle. The historical content before the current storage cycle has been deleted, and no new query content has been generated in the current storage cycle. Then, Figure 4 As shown in (b), the user enters query content in the specified interface, for example, enters question 1, and the target application displays reply content 1. The user then enters question 2, and the target application displays reply content 2. Therefore, during the current storage cycle, the target application obtains two query contents, namely question 1 and reply content 1, and question 2 and reply content 2.

[0054] Then, the user closes the target application or switches it to the background, and then runs another application on the premise of the electronic device, such as Figure 4 (c) shows the social application, and then the user runs the target application again in the foreground of the electronic device.

[0055] It should be noted that the implementation method of obtaining the target content based on the historical content may be to search for the latest specified number of historical contents in the historical content according to the timestamps corresponding to each historical content as the target content. That is to say, after determining the specified number of historical contents, the specified number of historical contents are directly displayed on the specified interface. Of course, the target content may also be displayed on the specified interface after a display request is detected. Figure 4As shown, assuming that the designated number is the same as the total number of historical contents, for example, if the number of historical contents is 2, then the designated number is also 2, and the target content is the same as the historical content.

[0056] In addition, when a target request is detected, the target content can be determined from the historical content and then displayed. Specifically, there are two implementation methods of S302. The first is that after detecting that the target application is running in the foreground, the latest specified number of historical contents are searched in the historical content according to the timestamp corresponding to each historical content as the target content, and then displayed. The second is that after detecting that the target application is running in the foreground, it is detected whether there is a target request. If a target request is detected, the latest specified number of historical contents are searched in the historical content according to the timestamp corresponding to each historical content as the target content, and then displayed. That is, one is direct display, and the other is display after waiting for the target request.

[0057] As an implementation method, Figure 4 For example, when the user switches the target application to the background, then runs the social application in the foreground, and then switches the target application to the foreground again, the target application will not directly display the target content, but will detect whether a target request is obtained. If a target request is detected, the target content will be displayed. The user inputting the target request may include: inputting specified content in a specified interface, wherein the specified content is used to inform the target application that the user requests to display historical content, for example, the specified content may be "history record". Figure 5 As shown, Figure 5 (c) When the displayed interface is switched to the background, the designated interface of the target application is displayed in the foreground again. No historical content is displayed in the designated interface, and no other query content is displayed. Then, the user enters the target content such as "history record", and the target application determines that the user has entered a display request, and then displays the target content. Figure 5 (e) As shown in Figure 2, it can be seen that in this case, the target content is the same as the historical content. Figure 5 This method can not only protect the user's privacy to a certain extent, but also facilitate the user to quickly view the content that has been queried. In addition, the input method of the target request can also be triggered by the user's touch operation based on a certain control or a sliding operation based on the specified interface.

[0058] That is, the method further includes, if a touch operation on the target control of the specified interface is detected, determining that a target request is detected, that is, after detecting that the target application is running in the foreground, determining whether a touch operation on the target control of the specified interface is detected, and if detected, determining that a target request is detected. Exemplarily, the target control can be a touch button in the specified interface, of course, it can also be a physical button of the electronic device, which is not limited to this.

[0059] Furthermore, the method also includes, if a sliding operation for the designated interface is detected, it is determined that a target request is detected. That is, after detecting that the target application is running in the foreground, it is determined whether a sliding operation for the designated interface is detected. If detected, it is determined that a target request is detected. Exemplarily, the sliding operation can be a sliding operation toward the designated interface, or it can be a sliding back and forth in multiple directions. In the embodiment of the present application, the sliding direction corresponding to the sliding operation is along the downward direction of the content arrangement of the designated interface. That is to say, assuming that the content arrangement direction of the designated interface is a display direction from left to right and from top to bottom, therefore, when the user slides downward on the designated interface, the electronic device can determine that a target request is detected.

[0060] As an implementation mode, assuming that the specified number is 1 and the upper limit of the number of historical contents is 10, a historical content storage operation is performed each time the target application is detected to have exited the foreground. Specifically, the content that the user has queried through the target application, i.e., the query content, is determined, and then, according to the timestamp of each query content, the latest second number of query contents are taken as historical contents and stored, wherein the second number is the aforementioned upper limit, for example, 10.

[0061] It should be noted that, if the specified number is less than the second number, that is, less than the total number of historical contents currently stored, the user can display at least part of the historical content through multiple target requests, that is, each display request corresponds to an additional display of the specified number of historical contents. Specifically, after the target content is displayed on the designated interface of the target application, if a target request is detected, the earliest timestamp in the historical content currently displayed on the designated interface is determined as the first timestamp; in the historical content, new target content is obtained based on the specified number of historical contents before the first timestamp, and the operation of displaying the target content on the designated interface of the target application is returned.

[0062] In the historical content, a method of obtaining new target content based on a specified number of historical contents before the first timestamp may be, in the historical content, taking a specified number of historical contents before the first timestamp as newly added content, and then taking the newly added content and the historical contents currently displayed on the designated interface as new target content. Therefore, after returning to execute the operation of displaying the target content on the designated interface of the target application, the content displayed on the designated interface is the historical content that has been displayed before and the historical content that has been newly added this time. Of course, it is also possible to take the newly added content as the new target content. Therefore, after returning to execute the operation of displaying the target content on the designated interface of the target application, the content displayed on the designated interface is the content that has been newly added this time, and the historical contents that have been displayed will not be displayed again this time. These two methods can be flexibly set based on different usage requirements, and there is no limitation on this.

[0063] like Figure 6 As shown, Figure 6 In (a), the user runs the target application in the foreground of the electronic device, and the designated interface of the target application does not display the historical content that the user has searched for. This is because: Figure 6 The interface shown in (a) is the first time that the user runs the target application in the foreground of the electronic device in the current storage cycle. The historical content before the current storage cycle has been deleted, and no new query content has been generated in the current storage cycle. Then, Figure 6 As shown in (b), the user enters query content in the specified interface, for example, enters question 1, and the target application displays reply content 1. The user enters question 2 again, and the target application displays reply content 2. Therefore, in the current storage period, the target application obtains two query contents, namely, question 1 and reply content 1, and question 2 and reply content 2. Then, the user closes the target application or switches it to the background, and then runs another application on the premise of the electronic device, for example Figure 6 (c) shows the social application, and then the user runs the target application again in the foreground of the electronic device, such as Figure 6 As shown in (d), the target control, namely "show query history", is displayed in the designated interface. It can be seen that after the target application is run in the foreground of the electronic device again, the history content will not be displayed on the designated interface of the target application. Then, Figure 6 As shown in (e), the user clicks the target control and selects the latest historical content as the target content based on the timestamp of the historical content. Figure 6As shown in (f), the latest historical content is question 2 and reply content 2 corresponding to question 2. Then, when the user clicks the target control again, the earliest timestamp in the historical content currently displayed on the specified interface will be used as the first timestamp, for example, the timestamp of question 2. Then, among the multiple historical contents pre-stored as described above, the historical content before the first timestamp will be used as the new content, that is, the new content is question 1 and reply content 1. Then, reply content 2 corresponding to question 2 and question 1 and reply content 1 will be used together as the new target content. Then, as shown in Figure 6 As shown in (h), the reply content 2 corresponding to question 2 and question 1 and reply content 1 are displayed on the designated interface. Therefore, after the target application is switched back to the foreground, the historical content is not displayed in the designated interface first, and then the user clicks the target control to display the latest historical content, and clicks the target control again to display the previous historical content of the latest historical content, and so on, each time the target control is clicked, an additional historical content is displayed.

[0064] In addition, if the target request input method is a sliding operation, then Figure 7 As shown, Figure 7 (a) to Figure 7 The implementation method of (d) can refer to the above Figure 6 , I will not go into details about this.

[0065] Then, if Figure 7 As shown in (e), the user slides up and down on the specified interface and selects the latest historical content as the target content based on the timestamp of the historical content. Figure 7 As shown in (f), the latest historical content is question 2 and reply content 2 corresponding to question 2. Then, the user slides up and down on the specified interface again, and the earliest timestamp in the historical content currently displayed on the specified interface is used as the first timestamp, for example, the timestamp of question 2. Then, among the multiple historical contents pre-stored as described above, the historical content before the first timestamp is used as the new content, that is, the new content is question 1 and reply content 1. Then, reply content 2 corresponding to question 2 and question 1 and reply content 1 are used together as the new target content. Then, as shown in Figure 7 As shown in (h), the reply content 2 corresponding to question 2 and question 1 and reply content 1 are displayed on the designated interface. Therefore, after the target application is switched back to the foreground, the historical content is not displayed in the designated interface first, and then the user swipes up and down on the designated interface to display the latest historical content, and swipes up and down on the designated interface again to display the previous historical content of the latest historical content, and so on, each time the user swipes up and down on the designated interface, an additional historical content is displayed.

[0066] As an implementation method, it is also possible to adopt Figure 6 and Figure 7 In a different way, after the target application is switched to the foreground, a specified number of historical contents may be directly displayed first, for example, one historical content may be directly displayed, and then other historical contents may be displayed based on the target request.

[0067] like Figure 8 As shown, Figure 8 (a) to Figure 8 The implementation method of (c) can refer to the above Figure 6 and 7 After the target application is switched to the foreground, the latest historical content can be displayed directly, such as Figure 8 As shown in (d), the specified interface displays question 2 and the corresponding reply content 2 of question 2, and also displays the target control, such as Figure 8 (e) When the user clicks the target control, the earliest timestamp in the historical content currently displayed on the specified interface will be used as the first timestamp, for example, the timestamp of question 2. Then, among the plurality of historical contents pre-stored as described above, the historical content before the first timestamp will be used as the newly added content, that is, the newly added content is question 1 and reply content 1. Then, reply content 2 corresponding to question 2 will be used together with question 1 and reply content 1 as the new target content. Then, Figure 8 As shown in (f), the reply content 2 corresponding to question 2, question 1 and reply content 1 are displayed on the designated interface.

[0068] like Fig. 9 As shown, Fig. 9 (a) to Fig. 9 The implementation method of (c) can refer to the above Figure 6 and 7 After the target application is switched to the foreground, the latest historical content can be displayed directly, such as Fig. 9 As shown in (d), the specified interface displays question 2 and the corresponding reply content 2 of question 2, and also displays the target control, such as Fig. 9 (e) When the user inputs a sliding operation in the specified interface, the earliest timestamp in the historical content currently displayed in the specified interface will be used as the first timestamp, for example, the timestamp of question 2. Then, among the plurality of historical contents pre-stored as described above, the historical content before the first timestamp will be used as the newly added content, that is, the newly added content is question 1 and reply content 1. Then, reply content 2 corresponding to question 2 will be used together with question 1 and reply content 1 as the new target content. Then, Fig. 9As shown in (f), the reply content 2 corresponding to question 2, question 1 and reply content 1 are displayed on the designated interface.

[0069] That is to say, for Figure 8 and Fig. 9 In this way, when the target application is switched to the foreground, the latest historical content will be directly displayed. The user can determine whether to input a target request based on their own needs in order to display earlier historical content.

[0070] It should be noted that, considering the privacy of the user, when inputting a target request, identity authentication may also be included. If the target request is detected and the identity authentication is passed, the latest specified number of historical contents are searched in the historical contents according to the timestamp corresponding to each historical content as the target content, and the subsequent display operation of the target content is performed. The identity authentication method includes prompting the user to enter a password, detecting the password entered by the user, and determining that the identity authentication is passed if the password verification is passed. The password may be a content password or a biometric password, wherein the content password includes at least one of numbers, texts and pictures, and the biometric password may include at least one of fingerprints, facial images and irises.

[0071] As an implementation method, the password can be a fingerprint. Considering that the input method of the target request includes entering specified content in a specified interface, a touch operation based on a certain control, or a sliding operation based on the specified interface, in the process of detecting the target request, the under-screen fingerprint collected when the user touches the screen is determined, and then, during the time period from detecting that the user touches the screen to detecting the target request, the fingerprint information detected within the time period is obtained. If it is determined that the specified information is verified, it is determined that the conditions for detecting the target request and passing the identity authentication are met.

[0072] like Fig.10 As shown, assuming that the target application is Xiaobu Assistant, the method provided in the embodiment of the present application is applied to Xiaobu Assistant as follows Fig.10 As shown, the specific implementation method can refer to the above content, which will not be repeated here. Therefore, when the user uses Xiaobu Assistant to query content, the background temporarily saves the latest 10 historical query contents for the user. When the user switches out and then switches back, just enter "history record" to display the latest 10 contents queried by the user, without the need to query one by one again, thus improving the user's AI query experience.

[0073] See also Fig.11 , which shows a structural block diagram of a content display device provided in an embodiment of the present application. The device may include: a determining unit 1101, an acquiring unit 1102 and a display unit 1103.

[0074] The determining unit 1101 is configured to determine at least one pre-stored historical content queried by a user through the target application program when it is detected that the target application program is running in the foreground.

[0075] The acquisition unit 1102 is configured to acquire target content based on the historical content.

[0076] The display unit 1103 is configured to display the target content on a designated interface of the target application.

[0077] Furthermore, the acquisition unit 1102 is further configured to search for the latest specified number of historical contents in the historical contents according to the timestamp corresponding to each historical content, as target contents.

[0078] Furthermore, if a target request is detected, the acquisition unit 1102 is further configured to search for the latest specified number of historical contents in the historical contents according to the timestamp corresponding to each historical content as the target content.

[0079] Furthermore, if a target request is detected, the display unit 1103 is also used to determine the earliest timestamp in the historical content currently displayed on the designated interface as the first timestamp; in the historical content, obtain new target content based on a specified number of historical contents before the first timestamp, and return to execute the operation of displaying the target content on the designated interface of the target application.

[0080] Furthermore, it also includes a determination unit, which is used to determine that a target request is detected if a touch operation on a target control of the designated interface is detected.

[0081] Furthermore, the determination unit is further configured to determine that a target request is detected if a sliding operation on the designated interface is detected.

[0082] Furthermore, it also includes a storage unit for, when it is detected that the target application has been exited from the foreground, taking a second amount of query contents queried by the user through the target application as historical contents; and storing the historical contents.

[0083] Furthermore, it also includes a deleting unit, which is used to delete the stored historical content corresponding to the current storage period when it is detected that the current storage period ends.

[0084] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0085] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0086] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0087] Please refer to Fig.12 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0088] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0089] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0090] Please refer to Fig.13 , which shows a structural block diagram of a computer-readable medium provided in an embodiment of the present application. The computer-readable medium 1300 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0091] The computer readable medium 1300 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable medium 1300 includes a non-transitory computer-readable storage medium. The computer readable medium 1300 has storage space for program code 1310 that executes any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 1310 can be compressed, for example, in an appropriate form.

[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A content display method, characterized in that: Applied to electronic equipment, the method comprises: In the case where it is detected that the target application is running in the foreground, determining at least one pre-stored historical content queried by the user through the target application; Acquire target content based on the historical content; The target content is displayed on a designated interface of the target application.

2. The method according to claim 1, characterized in that: The acquiring target content based on the historical content includes: In the historical contents, according to the timestamp corresponding to each historical content, the latest designated number of historical contents are searched as target contents.

3. The method according to claim 2, characterized in that The searching, in the historical contents, for the latest specified number of historical contents as target contents according to the timestamps corresponding to each historical content, includes: If a target request is detected, the latest specified number of historical contents are searched in the historical contents according to the timestamps corresponding to each historical content as the target content.

4. The method according to claim 2 or 3, characterized in that: After the target content is displayed on the designated interface of the target application, the method further includes: If a target request is detected, determining the earliest timestamp in the historical content currently displayed on the designated interface as a first timestamp; In the historical content, new target content is obtained based on a specified number of historical contents before the first timestamp, and an operation of displaying the target content on a specified interface of the target application is returned to be executed.

5. The method according to claim 3, characterized in that: Also includes: If a touch operation on a target control of the designated interface is detected, it is determined that a target request is detected.

6. The method according to claim 3, characterized in that Also includes: If a sliding operation on the designated interface is detected, it is determined that a target request is detected.

7. The method according to claim 6, characterized in that The sliding direction corresponding to the sliding operation is along the downward direction of the content arrangement of the designated interface.

8. The method according to claim 1, characterized in that Before determining at least one pre-stored historical content queried by the user through the target application when detecting that the target application is running in the foreground, the method further includes: In the case where it is detected that the target application is exited from the foreground, taking a second number of query contents queried by the user through the target application as historical contents; The historical content is stored.

9. The method according to claim 1, characterized in that: The historical content corresponds to a current storage period, and the method further includes: When it is detected that the current storage period ends, the stored historical content corresponding to the current storage period is deleted.

10. A content display device, characterized in that: Applied to electronic equipment, the device comprises: a determination unit, configured to determine, when detecting that the target application is running in the foreground, at least one pre-stored historical content queried by the user through the target application; An acquisition unit, configured to acquire target content based on the historical content; The display unit is used to display the target content on a designated interface of the target application.

11. An electronic device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-9.

12. A computer readable medium, characterized in that The computer-readable medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the method according to any one of claims 1 to 9.