Nothing Special   »   [go: up one dir, main page]

CN110929186A - Client, information display method, electronic device and medium - Google Patents

Client, information display method, electronic device and medium Download PDF

Info

Publication number
CN110929186A
CN110929186A CN201810999482.4A CN201810999482A CN110929186A CN 110929186 A CN110929186 A CN 110929186A CN 201810999482 A CN201810999482 A CN 201810999482A CN 110929186 A CN110929186 A CN 110929186A
Authority
CN
China
Prior art keywords
information
cache
client
storing
permanent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810999482.4A
Other languages
Chinese (zh)
Other versions
CN110929186B (en
Inventor
张磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xizang Liansa Intelligent Technology Co ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810999482.4A priority Critical patent/CN110929186B/en
Publication of CN110929186A publication Critical patent/CN110929186A/en
Application granted granted Critical
Publication of CN110929186B publication Critical patent/CN110929186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a client, an information display method, an electronic device and a medium. The method comprises the following steps: setting a temporary cache and a permanent cache locally; when the client is started, setting the content stored in the temporary cache to be empty, and acquiring first information from the permanent cache and storing the first information in the temporary cache; and acquiring second information sent by a server, judging whether the second information is the same as the first information in the temporary cache, if so, ending, otherwise, judging whether the second information is specific information, if so, performing frame popping display on the second information, replacing the first information stored in the temporary cache with the second information, and storing the second information in the permanent cache. This disclosure has avoided the condition that the same information appears repeatedly many times and shows through judging whether first information and second information equal before playing the frame display.

Description

Client, information display method, electronic device and medium
Technical Field
The disclosure relates to a client, an information display method, an electronic device and a medium.
Background
With the development of internet technology, the interaction between the mobile terminal and the user establishes the contact between the user and the mobile terminal, and the information transmission is realized. For example, in a web page or an application program in a mobile terminal, interaction or information transfer with a user is generally realized in the form of a pop-up dialog box. The dialog box is a special window for displaying information to the user in the user interface or for obtaining input responses from the user when needed. In a game, live broadcast, or the like type application, the user's rating, such as the rating of a game character, the rating of an anchor, or the like, i.e., the display of a rating dialog may be displayed through a dialog box, and the rating usually takes the change of arabic numerals as display information.
The display method of the level dialog box in the prior art comprises the following steps: when the grade changes, triggering the display logic of the dialog box; or when receiving the level message pushed by the server, displaying the level dialog box logic.
However, if the message of the hierarchical dialog box is an attached message contained in other dialog boxes, a plurality of messages of the same hierarchy may be received, i.e., a plurality of dialog boxes displaying the same message may pop up.
Disclosure of Invention
One aspect of the present disclosure provides an information display method for a client, the method including: s101, a temporary cache and a permanent cache are locally arranged, wherein the temporary cache is used for storing first information when the client operates, the first information refers to information displayed in a popup frame at the client at the last time, and the permanent cache is used for storing all information displayed in the popup frame at the client when the client starts, operates or closes; s102, when the client is started, setting the content stored in the temporary cache to be empty, and acquiring first information from the permanent cache and storing the first information in the temporary cache; s103, acquiring second information sent by the server, judging whether the second information is the same as the first information in the temporary cache, if so, ending, otherwise, executing the step S104; s104, judging whether the second information is specific information, if so, executing the step S105, otherwise, ending; s105, performing pop frame display on the second information, replacing the first information stored in the temporary cache with the second information, and storing the second information in the permanent cache.
Optionally, the locally setting the temporary cache and the permanent cache includes: creating a character string type parameter locally, and storing the first information into the parameter in an assignment mode to realize temporary cache; and creating a local storage file locally, and writing the first information into the local storage file through an Android system function to realize permanent caching.
Optionally, the obtaining the second information sent by the server includes: acquiring the packaged second information sent by the server, judging whether the packaged second information is an empty character string, and if not, analyzing the packaged second information.
Optionally, the determining whether the second information is specific information includes: creating a character string type data set, acquiring N pieces of specific information, and adding character strings corresponding to the N pieces of specific information into the set, wherein N is more than or equal to 1; and judging whether the set contains the second information.
Optionally, the set of string type data is a subset of a set consisting of all of the second information.
Optionally, the client is installed in an Android system, and in step S105, storing the second information in the permanent cache includes: calling context in an Android system, getSharedPreferences function, and obtaining an mSharedPreferences object of SharedPreferences class; calling a function of mSharedPreferences.putString (LAST _ SHOW _ DIALOG, serverlevel) of the mSharedPreferences object, and storing the second information into the mSharedPreferences object, wherein LAST _ SHOW _ DIALOG is a storage position in the mSharedPreferences object, and serverlevel is the second information; calling an mSharedPreferences.application () function of the mSharedPreferences object, and storing second information stored in the mSharedPreferences object into the permanent cache.
Optionally, in step S102, acquiring the first information from the permanent cache and storing the first information in the temporary cache includes: calling context in an Android system, getSharedPreferences function, and obtaining an mSharedPreferences object of SharedPreferences class; calling a function of mSharedPreferences.getString (LAST _ SHOW _ DIALOG) of the mSharedPreferences object, and acquiring fileLastLevel information which is stored in the permanent cache and displayed in a bullet frame at the client at the LAST time; and storing the fileLastLevel information as first information in the temporary cache.
In another aspect, the present disclosure provides a client, including: the client side comprises a setting module and a permanent cache, wherein the setting module is used for locally setting a temporary cache and a permanent cache, the temporary cache is used for storing first information when the client side runs, the first information refers to information which is displayed in a popup frame at the client side at the last time, and the permanent cache is used for storing all information displayed in the popup frame at the client side when the client side is started, run or closed; the first storage module is used for setting the content stored in the temporary cache to be empty when the client is started, and acquiring first information from the permanent cache and storing the first information in the temporary cache; the first judging module is used for acquiring second information sent by the server and judging whether the second information is the same as the first information in the temporary cache or not, if so, ending the process, otherwise, executing the second judging module; the second judging module is used for judging whether the second information is specific information, if so, executing the second storage module, and if not, ending the operation; and the second storage module is used for displaying the second information in a pop-up frame mode, replacing the first information stored in the temporary cache with the second information and storing the second information in the permanent cache.
In yet another aspect, the present disclosure provides an electronic device, the device comprising: a communicator for communicating with a server; a processor; a memory storing a computer executable program which, when executed by the processor, causes the processor to execute the information display method for the client as described above.
In yet another aspect, the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements an information display method for a client as described above.
According to the method, the situation that the judgment result is equal is eliminated by judging whether the first information displayed in the pop-up frame at the client terminal at the last time is equal to the second information to be updated, namely when the first information and the second information are equal, the process is ended, and the second information is not displayed. The situation that the same information appears repeatedly for many times for displaying in the prior art is avoided. And the second information refers to information to be updated by the client. In addition, the method for displaying the second information after screening avoids the situation that the second information needs to be judged for many times one by one in the prior art, and avoids the complexity of the judgment process in a target set mode.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically shows a flowchart of an information display method for a client according to a first embodiment of the present disclosure;
fig. 2 schematically shows a flowchart of an information display method for a client according to a second embodiment of the disclosure;
fig. 3 schematically shows a flowchart of an information display method for a client according to a third embodiment of the present disclosure;
fig. 4 schematically illustrates a client block diagram according to a fourth embodiment of the disclosure;
FIG. 5 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure;
fig. 6 schematically illustrates an information display diagram in a second embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
Example one
Referring to fig. 1, an embodiment of the present disclosure provides an information display method for a client, where the method includes:
step S101, a temporary cache and a permanent cache are locally arranged, wherein the temporary cache is used for storing first information when the client operates, the first information refers to information displayed in a popup frame at the client at the last time, and the permanent cache is used for storing all information displayed in the popup frame at the client when the client starts, operates or closes;
by setting the temporary cache and the permanent cache locally, the first information displayed in the pop-up frame at the client at the last time is stored locally temporarily and permanently, so that the information displayed at the last time can be acquired conveniently in subsequent steps when the client is started, operated or closed.
Step S102, when the client is started, setting the content stored in the temporary cache to be empty, and acquiring first information from the permanent cache and storing the first information in the temporary cache;
the temporary cache is used for storing the first information when the client runs, that is, when the client is started or closed, the temporary cache is not used for storing the first information, and the content stored in the temporary cache can be set to be empty. Since the permanent cache stores all information for pop-up frame display when the client is started, operated or closed, at this time, the first information can be obtained from the permanent cache and stored in the temporary cache.
Therefore, the temporary cache is used as a carrier for storing the first information, when the client is started, the first information needs to be obtained from the permanent cache and stored, when the client runs, the first information does not need to be obtained from the permanent cache, and the first information is stored in the temporary cache.
Step S103, acquiring second information sent by the server, judging whether the second information is the same as the first information in the temporary cache, if so, ending, otherwise, executing step S104;
and comparing the first information displayed in the pop-up frame at the client at the last time with the second information to be updated at the client, namely judging whether the information to be updated is the information displayed in the pop-up frame at the last time, and if the same information is displayed at the last time, ending the process and not displaying the information to be updated.
Step S104, judging whether the second information is specific information, if so, executing step S105, otherwise, ending;
the specific information refers to information that satisfies a specific rule, for example, when the first information and the second information are numbers, the specific information refers to information that satisfies a specific mathematical formula, which may be numbers that satisfy a multiple of 10, numbers that satisfy a multiple of 5, or the like. When the first information and the second information are letters, the specific information refers to information satisfying the specific letters, which may be the letters ABCDEF and ABC, for example.
And step S105, performing pop-frame display on the second information, replacing the first information stored in the temporary cache with the second information, and storing the second information in the permanent cache.
After the second information is displayed in the pop-up frame, for the next display, the second information after the display should be stored in the temporary buffer or the permanent buffer as the first information for the next display.
According to the method and the device for displaying the pop-up frame, whether the first information displayed on the client at the last time is equal to the second information to be updated or not is judged, the condition that the judgment result is equal is eliminated, namely when the first information and the second information are equal, the process is ended, and the second information is not displayed. The situation that the same information appears repeatedly for many times for displaying in the prior art is avoided.
Example two
The embodiment of the present disclosure takes information displayed by the client as the level information as an example, but the scheme provided by the present disclosure is not limited thereto. Wherein the client is, for example, a game application client, and the rating information is, for example, the rating information of the game character in the client. Typically, the level information includes digital information, such as 10-level, 20-level, 30-level, 50-level, 100-level, and the like. In addition, in the embodiment of the present disclosure, a system for bearing the client is taken as an Android system for example, and the parameters, functions, and the like used in the embodiment of the present disclosure are parameters, functions, and the like in the Android system, but the method, the system, the electronic device, and the computer-readable storage medium of the present disclosure are not limited to the Android system.
An embodiment of the present disclosure provides an information display method for a client, referring to fig. 2, the method includes:
step S201, creating a character string type parameter locally, and storing the first information into the parameter in an assignment mode to realize temporary cache.
Creating a String type parameter locally, specifically by creating a data parameter defining a String type, the definition being as follows: the parameter is Private attribute, so the parameter can only be used in the class, and the external function has no access right to the Private attribute. The name of the data parameter is lastLevel, the lastLevel is initialized to be an empty character string, and the operation is specifically realized by lastLevel ═ sentence. The role of the initialization is to enable assignment operations to be performed better subsequently. And acquiring a character string corresponding to the first information, and storing the first information in a temporary cache in a mode of adopting a lastLevel as the character string corresponding to the first information.
Step S202, a local storage file is created locally, the first information is written into the local storage file through an Android system function, and permanent caching is achieved.
The method comprises the steps of creating a local storage file locally, specifically, obtaining an object mSharedPreferences of SharedPreferences class through a context. Among them, the SharedPreferences class is used to store simple types of data, such as four basic types (int, float, long, borolean) + String. In this embodiment, the first information is a String type (String type), that is, an object capable of storing the String type is obtained through the function. Other functions may implement storing data into or retrieving data from the object by calling the object.
Then to implement permanent caching of the first information, this can be achieved by calling a function of mShared references.putString ("LAST _ SHOW _ DIALOG", lastLevel) in the Android system, and then calling a function of mShared references.application (). Wherein, the function of mSharedPreferences ' putString (' LAST _ SHOW _ DIALOG ') is used for storing the first information data into the mSharedPreferences object, and the storage position is LAST _ SHOW _ DIALOG. And the mSharedPreferences () function is used for writing the mSharedPreferences object into the local file, and the first information after the last display is permanently cached into the local file through the calling of the two functions.
It should be noted that the temporary cache is the parameter of the type of the created string, so that after the parameter is assigned, the value of the parameter is the first information, and the first information can be stored in the temporary cache. And the permanent cache is used for storing files, and the first information is stored locally as files.
Step S203, when the client is started, setting the content stored in the temporary cache to be empty, and obtaining the first information from the permanent cache and storing the first information in the temporary cache.
It should be noted that, when the client is started, the content stored in the temporary cache is set to be empty, and the first information is acquired from the permanent cache and stored in the temporary cache. Specifically, when the client is started, the lastLevel parameter is initialized and set as a null character string.
Get SharedPreference object mSharedPreference through context of Android system. Wherein the SharedPreferences class is used to store simple types of data, and other functions may implement storing data into or retrieving data from the object by calling the object. Here, it is also necessary to obtain an object for making the object consistent with the object of the storable character string type defined in the above persistent cache, so as to facilitate the subsequent call to the object defined in the persistent cache, i.e. to fetch data from the object.
And calling a mSharedPreferences getString ("LAST _ SHOW _ DIALOG") function to realize that the first information is taken out from the object, namely the first information displayed for the LAST time in the permanent cache in the local file is obtained from the mSharedPreferences object, wherein the LAST _ SHOW _ DIALOG is the first information in the permanent cache, and the obtained first information is marked as fileLastLevel. And assigning the value of the fileLastLevel to a lastLevel parameter, wherein the specific assignment function is the lastLevel which is the fileLastLevel. And acquiring the first information from the permanent cache and storing the first information in the temporary cache.
Step S204, acquiring the packaged second information sent by the server, judging whether the packaged second information is an empty character string, if not, analyzing the packaged second information, and entering step S205, if yes, ending.
Specifically, the second information sent by the server is encapsulated in an object of a data bearer class (for example, an ecypendbean class implementation may be defined), and the second information to be updated and information content required by other data are borne by the ecypendbean class, so that the second information can be obtained by analyzing the ecypendbean object. The method for analyzing the data comprises the step of analyzing by calling an ecyPendantBean. getlevel () function, namely analyzing the ecyPendantBean object encapsulated with the second information. For convenience of subsequent expression, the second information obtained by analysis is marked as server level, and the server level is data of a character string type.
Before analyzing the ecypandled bean object, an ecypandled bean function needs to be called to judge the ecypandled bean object, if the ecypandled bean is null, that is, the data bearing class object of the second information package to be updated is empty, at this time, the return statement is called to terminate, otherwise, the data in the return statement is analyzed.
Step S205, determining whether the second information is the same as the first information in the temporary cache, if so, ending the process, otherwise, executing step S206.
Specifically, whether the first information and the second information are equal or not can be judged by calling a textuses. In the embodiment of the present disclosure, the server level is the second information, and the lastLevel is the first information.
Step S206, creating a character string type data set, acquiring N pieces of specific information, and adding character strings corresponding to the N pieces of specific information into the set, wherein N is more than or equal to 1; judging whether the set contains the second information or not; if yes, step S207 is executed, otherwise, the process ends.
It will be understood by those skilled in the art that when the first information and the second information are both level information, there are many levels present in the client of some types of applications, and each level is not required to be displayed, for example, the game character level of a certain game application is 1-100 levels, and each level is not required to be displayed, and the level information may be displayed once every 10 levels, for example, in a manner of 10 levels, 20 levels, 30 levels, 40 levels, 50 levels, 60 levels, 70 levels, 80 levels, 90 levels, and 100 levels. The specific information is, in this example, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100. In this case, it is necessary to determine whether or not the level information belongs to the level information to be displayed, and then determine whether or not to display the level information.
Specifically, a string type data set listTarget, which is a subset of a set composed of all the second information, is defined by creation. The definition method comprises the following steps: the method comprises the steps of initializing a listTarget set, enabling the set to be subsequently assigned through a calling function, wherein the initialization method is Lis < String > listTarget which is a List type data, initializing to obtain a set object listTarget, assigning the set object listTarget, and adding level data 10, 20, 30, 40, 50, 60, 70, 80, 90 and 100 to the set listTarget by calling functions such as listtarget.add ("10"), listtarget.add ("20"), listtarget.add ("30") … listtarget.add ("100"), and the set listTarget contains all specific information to be displayed. Then, by calling a listTarget. contacts (serverLevel) function, whether the target level data of serverLevel is contained in the string type data set listTarget is judged, if the expression returns true to indicate inclusion, the step S5 is entered, otherwise, the step S5 is terminated by calling a return statement.
The method for screening and displaying the levels in the embodiment avoids the situation that the target level data needs to be judged for many times one by one in the prior art, and avoids the complexity of the judging process in a target set mode. For example, in the prior art, it is determined whether server level is equal to 10, whether server level is equal to 20, or else.
Step S207, performing pop-frame display on the second information, replacing the first information stored in the temporary cache with the second information, and storing the second information in the permanent cache.
Specifically, the first information stored in the temporary cache is replaced by the second information through a value assignment method.
Storing the second information in the persistent cache, specifically by calling a LAST _ slow _ delay function and a msharedpreferences _ application () function in the Android system. Wherein, the mSharedPreferences ' putstring ' (LAST _ SHOW _ diameter ', server level) function is used to save the second information server level to the mSharedPreferences object, and the storage location is LAST _ SHOW _ diameter. And the mSharedPreferences () function is used for writing the mSharedPreferences object into a local file, and the second information is stored in the permanent cache by calling the mSharedPreferences object and the local file.
Referring to fig. 6, fig. 6 is a schematic diagram illustrating a pop-up box displaying second information, and a pop-up dialog 601 is displayed on a display screen 600. Where the second information is the rating information in the dialog box, i.e. the number 20.
Step 208, when the client continuously operates, determining whether the temporary cache is empty, if so, entering step 209, otherwise, directly returning to step S204.
Step 209, obtaining the first information from the permanent cache and storing the first information in the temporary cache, and returning to step S204.
Those skilled in the art can understand that after the client finishes displaying the information, the client continuously operates, and the user continues to use the client, at this time, the client does not need to be restarted, but in order to avoid a situation that the temporary cache is empty due to a problem when the first information stored in the temporary cache is replaced with the second information in step S207, it is first determined whether the temporary cache is empty. Specifically, the judgment is performed by calling a system function textutils. At this time, the first information should be obtained from the permanent cache and stored in the temporary cache, and the second information should be obtained again.
According to the method and the device for displaying the pop-up frame, whether the first information displayed on the client at the last time is equal to the second information to be updated or not is judged, the condition that the judgment result is equal is eliminated, namely when the first information and the second information are equal, the process is ended, and the second information is not displayed. The situation that the same information appears repeatedly for many times for displaying in the prior art is avoided. And the second information refers to information to be updated by the client. In addition, the method for screening and displaying the second information (such as the level) in the embodiment of the disclosure avoids the situation that the second information (such as the target level) needs to be judged for many times one by one in the prior art, and avoids the complexity of the judgment process in a mode of character string type data set.
EXAMPLE III
Step S301, a temporary cache and a permanent cache are locally set, wherein the temporary cache is used for storing first information when the client runs, the first information refers to information displayed in a popup frame at the client at the last time, and the permanent cache is used for storing all information displayed in the popup frame at the client when the client is started, run or closed; step S302, when the client is started, setting the content stored in the temporary cache to be empty, and acquiring first information from the permanent cache and storing the first information in the temporary cache; step S303, acquiring second information sent by the server, and judging whether the second information is the same as the first information in the temporary cache, if so, ending, otherwise, executing step S304; step S304, judging whether the second information is specific information, if so, executing step S305, otherwise, ending; step S305, performing pop frame display on the second information, replacing the first information stored in the temporary cache with the second information, and storing the second information in the permanent cache; step S306, when the client is closed, the process returns to step S302.
Steps S301 to S305 are the same as steps S101 to S105 in the first embodiment of the present disclosure, and the same steps are not described again in the first embodiment of the present disclosure.
For step S306, after the client finishes displaying the information, the user closes the client and does not use the client any more, and when the user needs to use the client again, the user returns to step S302 to restart the client and obtain the first information and the second information again.
It will be understood by those skilled in the art that when the client is abnormally shut down, the process returns to step S302. The abnormal shutdown includes a situation that a terminal power supply carrying the client is suddenly disconnected or the client is suddenly stopped and shut down in the running process. It can be understood by those skilled in the art that the abnormal shutdown process may occur in any step from S302 to S305 in the method provided in this embodiment, and therefore, in the case of the abnormal shutdown, the method should return to step S2, restart the client, and retrieve the first information and the second information again.
Example four
Referring to fig. 4, an embodiment of the present disclosure provides a client, where the client 400 includes:
a setting module 401, configured to set a temporary cache and a permanent cache locally, where the temporary cache is used to store first information when the client operates, the first information is information that is displayed in a pop-up frame at the client for the last time, and the permanent cache is used to store all information displayed in the pop-up frame at the client when the client starts up, operates, or closes; a first storage module 402, configured to set content stored in the temporary cache to be empty when the client is started, and obtain first information from the permanent cache and store the first information in the temporary cache; a first judging module 403, configured to obtain second information sent by the server, and judge whether the second information is the same as the first information in the temporary cache, if so, end the process, otherwise, execute a second judging module; a second determining module 404, configured to determine whether the second information is specific information, if so, execute a second storing module, otherwise, end; a second storage module 405, configured to pop the second information to display, replace the first information stored in the temporary cache with the second information, and store the second information in the permanent cache.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as hardware circuits.
EXAMPLE five
Referring to fig. 5, fig. 5 schematically illustrates an electronic device provided according to an embodiment of the present disclosure.
As shown in fig. 5, the electronic device 500 includes a communicator 510, a processor 520, and a memory 530. The electronic device 300 may perform the methods according to embodiments one, two, and three of the present disclosure.
Specifically, communicator 510 is used for communicating with the server.
Processor 520 may include, for example, a general purpose microprocessor, an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 520 may also include onboard memory for caching purposes. Processor 520 may be a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
Memory 530, for example, can be any medium that can contain, store, communicate, propagate, or transport instructions. For example, a readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the readable storage medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links. Which stores a computer executable program which, when executed by the processor, causes the processor to perform the live-air tag adding method as described above.
EXAMPLE six
The disclosed embodiments provide a computer-readable medium, which may be embodied in the devices/apparatuses/systems described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer readable medium carries one or more programs which, when executed by the processor, implement the display method according to embodiments one, two, and three above.
According to embodiments of the present disclosure, a computer readable medium may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical fiber cable, radio frequency signals, etc., or any suitable combination of the foregoing.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. An information display method for a client, the method comprising:
s101, a temporary cache and a permanent cache are locally arranged, wherein the temporary cache is used for storing first information when the client operates, the first information refers to information displayed in a popup frame at the client at the last time, and the permanent cache is used for storing all information displayed in the popup frame at the client when the client starts, operates or closes;
s102, when the client is started, setting the content stored in the temporary cache to be empty, and acquiring first information from the permanent cache and storing the first information in the temporary cache;
s103, acquiring second information sent by the server, judging whether the second information is the same as the first information in the temporary cache, if so, ending, otherwise, executing the step S104;
s104, judging whether the second information is specific information, if so, executing the step S105, otherwise, ending;
s105, performing pop frame display on the second information, replacing the first information stored in the temporary cache with the second information, and storing the second information in the permanent cache.
2. The method of claim 1, wherein the locally setting the temporary cache and the permanent cache comprises:
creating a character string type parameter locally, and storing the first information into the parameter in an assignment mode to realize temporary cache;
and creating a local storage file locally, and writing the first information into the local storage file through an Android system function to realize permanent caching.
3. The method of claim 1, wherein obtaining the second information sent by the server comprises:
acquiring the packaged second information sent by the server, judging whether the packaged second information is an empty character string, and if not, analyzing the packaged second information.
4. The method of claim 1, wherein the determining whether the second message is a specific message comprises:
creating a character string type data set, acquiring N pieces of specific information, and adding character strings corresponding to the N pieces of specific information into the set, wherein N is more than or equal to 1;
and judging whether the set contains the second information.
5. The method of claim 4, wherein the string-type dataset is a subset of a set consisting of all of the second information.
6. The method according to claim 1, wherein the client is installed in the Android system, and the step S105 of storing the second information in the persistent cache includes:
calling context in an Android system, getSharedPreferences function, and obtaining an mSharedPreferences object of SharedPreferences class;
calling a function of mSharedPreferences.putString (LAST _ SHOW _ DIALOG, serverlevel) of the mSharedPreferences object, and storing the second information into the mSharedPreferences object, wherein LAST _ SHOW _ DIALOG is a storage position in the mSharedPreferences object, and serverlevel is the second information;
calling an mSharedPreferences.application () function of the mSharedPreferences object, and storing second information stored in the mSharedPreferences object into the permanent cache.
7. The method according to claim 6, wherein the step S102 of obtaining the first information from the permanent cache and storing the first information in the temporary cache comprises:
calling context in an Android system, getSharedPreferences function, and obtaining an mSharedPreferences object of SharedPreferences class;
calling a function of mSharedPreferences.getString (LAST _ SHOW _ DIALOG) of the mSharedPreferences object, and acquiring fileLastLevel information which is stored in the permanent cache and displayed in a bullet frame at the client at the LAST time;
and storing the fileLastLevel information as first information in the temporary cache.
8. A client, the client comprising:
the client side comprises a setting module and a permanent cache, wherein the setting module is used for locally setting a temporary cache and a permanent cache, the temporary cache is used for storing first information when the client side runs, the first information refers to information which is displayed in a popup frame at the client side at the last time, and the permanent cache is used for storing all information displayed in the popup frame at the client side when the client side is started, run or closed;
the first storage module is used for setting the content stored in the temporary cache to be empty when the client is started, and acquiring first information from the permanent cache and storing the first information in the temporary cache;
the first judging module is used for acquiring second information sent by the server and judging whether the second information is the same as the first information in the temporary cache or not, if so, ending the process, otherwise, executing the second judging module;
the second judging module is used for judging whether the second information is specific information, if so, executing the second storage module, and if not, ending the operation;
and the second storage module is used for displaying the second information in a pop-up frame mode, replacing the first information stored in the temporary cache with the second information and storing the second information in the permanent cache.
9. An electronic device, characterized in that the device comprises:
a communicator for communicating with a server;
a processor;
a memory storing a computer executable program which, when executed by the processor, causes the processor to perform the information display method for a client as claimed in claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out an information display method for a client as claimed in claims 1 to 7.
CN201810999482.4A 2018-08-29 2018-08-29 Client, information display method, electronic device and medium Active CN110929186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810999482.4A CN110929186B (en) 2018-08-29 2018-08-29 Client, information display method, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810999482.4A CN110929186B (en) 2018-08-29 2018-08-29 Client, information display method, electronic device and medium

Publications (2)

Publication Number Publication Date
CN110929186A true CN110929186A (en) 2020-03-27
CN110929186B CN110929186B (en) 2022-05-10

Family

ID=69854898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810999482.4A Active CN110929186B (en) 2018-08-29 2018-08-29 Client, information display method, electronic device and medium

Country Status (1)

Country Link
CN (1) CN110929186B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138776A (en) * 2021-11-01 2022-03-04 杭州欧若数网科技有限公司 Method, system, apparatus and medium for graph structure and graph attribute separation design

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU3747599A (en) * 1998-04-15 1999-11-01 Yahoo! Inc. High performance object cache
US6029175A (en) * 1995-10-26 2000-02-22 Teknowledge Corporation Automatic retrieval of changed files by a network software agent
US20030135607A1 (en) * 2002-01-16 2003-07-17 Xerox Corporation Method and apparatus for collaborative document versioning of networked documents
JP2013077079A (en) * 2011-09-29 2013-04-25 Nec Biglobe Ltd Storage system, storage server, user data sharing method and program
CN107819780A (en) * 2017-11-22 2018-03-20 国网山东省电力公司 A kind of method for network authorization based on 802.1x

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6029175A (en) * 1995-10-26 2000-02-22 Teknowledge Corporation Automatic retrieval of changed files by a network software agent
AU3747599A (en) * 1998-04-15 1999-11-01 Yahoo! Inc. High performance object cache
US20030135607A1 (en) * 2002-01-16 2003-07-17 Xerox Corporation Method and apparatus for collaborative document versioning of networked documents
JP2013077079A (en) * 2011-09-29 2013-04-25 Nec Biglobe Ltd Storage system, storage server, user data sharing method and program
CN107819780A (en) * 2017-11-22 2018-03-20 国网山东省电力公司 A kind of method for network authorization based on 802.1x

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138776A (en) * 2021-11-01 2022-03-04 杭州欧若数网科技有限公司 Method, system, apparatus and medium for graph structure and graph attribute separation design

Also Published As

Publication number Publication date
CN110929186B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
US10474693B2 (en) Resolving conflicts within saved state data
US9448977B2 (en) Website blueprint generation and display algorithms to reduce perceived web-page loading time
US11106506B2 (en) Mapping resources to each layer of a neural network model based computing task
US8626786B2 (en) Dynamic language checking
US20130097298A1 (en) Standardized adapter interface for multiple browser-based devices
US20120185835A1 (en) Static Resource Processing
CN111666497A (en) Application program loading method and device, electronic equipment and readable storage medium
US20190377877A1 (en) Web browser script monitoring
US10169053B2 (en) Loading a web page
CN115237436A (en) Application deployment method and device, electronic equipment and readable storage medium
CN112328301B (en) Method and device for maintaining consistency of operating environments, storage medium and electronic equipment
US11429317B2 (en) Method, apparatus and computer program product for storing data
US10025607B2 (en) Optimizing a file system interface in a virtualized computing environment
CN110020370B (en) Method and device for realizing animation in client application and framework of animation script
CN110929186B (en) Client, information display method, electronic device and medium
US10031745B2 (en) System and method for automatic API candidate generation
US10606580B2 (en) Cognitive identification of related code changes
US11120099B2 (en) Rendering a web element in a web page
CN111191225A (en) Method, device, medium and electronic equipment for switching isolated objects
CN110647331A (en) Development tool acquisition method and device, storage medium and electronic equipment
CN114756797A (en) Page processing method and device, electronic equipment and storage medium
US20140313215A1 (en) Scene-isolated internet application
CN112100553B (en) Webpage configuration method and device, electronic equipment and storage medium
CN112068814A (en) Method, device, system and medium for generating executable file
US11321225B2 (en) Reducing the memory load time for logic simulator by leveraging architecture simulator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240115

Address after: Room 3605, Floor 5, Building 3, Micro World, No. 23, Century Avenue, Liuwu New District, Lhasa, Xizang Autonomous Region, 850000

Patentee after: Xizang Liansa Intelligent Technology Co.,Ltd.

Address before: 430000 Wuhan Donghu Development Zone, Wuhan, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.