CN113094126A - Window processing method for terminal application, application server, terminal and storage medium - Google Patents

Window processing method for terminal application, application server, terminal and storage medium Download PDF

Info

Publication number
CN113094126A
CN113094126A CN201911340656.7A CN201911340656A CN113094126A CN 113094126 A CN113094126 A CN 113094126A CN 201911340656 A CN201911340656 A CN 201911340656A CN 113094126 A CN113094126 A CN 113094126A
Authority
CN
China
Prior art keywords
target
window
data
user
application
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.)
Pending
Application number
CN201911340656.7A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201911340656.7A priority Critical patent/CN113094126A/en
Publication of CN113094126A publication Critical patent/CN113094126A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the field of computers, and discloses a window processing method for terminal application, an application server, a terminal and a storage medium. Compared with the window reconstruction method, the window reconstruction method and the window reconstruction device have the advantages that by means of the technical scheme, when the user accesses the same window again, window reconstruction time is saved, time of the user is further saved, and smooth experience of the user is improved.

Description

Window processing method for terminal application, application server, terminal and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a window processing method for terminal application, an application server, a terminal and a storage medium.
Background
The applications of the terminal may interact with the user, typically with a visual user interface. When a user opens an application, the user interacts with the application through a form, and the form is a display page displayed on the terminal when the user enters the application and browses the information of the application. If a user starts an application, the created first page of the application can be called a frame. And when the user clicks another page of the application to enter, a new form is created. When the user clicks to exit the created frame, the frame is destroyed. For a form, the data presented on the terminal includes User Interface (UI) data and application content data corresponding to each form. When the user exits the created completed frame, the frame is completely destroyed. When the user enters the window again, the UI data and the application content data of the window are reconstructed, and a great amount of time is consumed by the user in the process of reconstructing the window.
Disclosure of Invention
The embodiment of the application provides a window processing method for terminal application, an application server, a terminal and a storage medium, when a user reenters the same window, access to the window can be achieved without rebuilding the window, time of the user is saved, and smooth experience of the user is improved.
In a first aspect, an embodiment of the present application provides a form processing method for a terminal application, where the form processing method for the terminal application includes:
starting an application, and when a user accesses a target page of the application, creating a window corresponding to the target page, wherein the target page of the application accessed by the user can be multiple, multiple windows can be correspondingly created, when the user exits from one window, the window is taken as a target window, an exit instruction exiting from the target window is a first target instruction, when the user exits from the target window, target data of the target window is not destroyed but cached in a cache list, when the user accesses the same target window next time, the target data of the target window is directly searched from the cache list for use, and the target window does not need to be rebuilt. The instruction that the user accesses the same target form again can be called a second target instruction; data when the form is created comprises but is not limited to UI data and application content data, target data of a target form comprises but is not limited to UI data and/or application content data, the UI data comprises layout structure data of the form, surface object instance data, form instance data, a view tree structure of the form, layout data and the like, and the application content data comprises but is not limited to pictures, network data and the like; the method comprises the steps that when a user accesses a target page, UI data and application content data of the target page are created to form a form for the user to browse, when the UI data are created, the UI data are created from the aspects of the layout structure, the surface object instance, the form instance, the view tree structure, the layout and the like of the form, then the application content data are updated, and the creation of the whole form is completed. In the process of creating a frame, it takes a long time because the frame and layout of the whole frame need to be constructed.
According to the window processing method for the terminal application, after the application is started, a window corresponding to a target page is created, after the window is created, if a user exits from the window, the window cannot be destroyed, target data of the window is cached in a cache list, when the user visits the window again next time, the target data of the window is directly searched from the cache list to be visited, the window does not need to be rebuilt, compared with the window rebuilding, the technical scheme provided by the application is adopted, when the user visits the same window again, window rebuilding time is saved, time of the user is further saved, and smooth experience of the user is improved.
Further, in a possible implementation of the first aspect, after the application is started, the user may browse a plurality of pages, and accordingly, a plurality of frames may be generated, and if data of the frames are cached, a large amount of memory and storage space may be occupied, and to avoid this, the target frame may be cached based on an access frequency of the user access frame and an access time of the access frame. When the user exits a window, counting whether the access frequency of the user accessing the window in a preset time period exceeds a first threshold value, if so, indicating that the window is a common window, and caching the target data of the common window. The preset time period may be 1 hour, the first threshold may be set by a user, or may be set according to the sequence of the access frequencies of all the created forms, and when the first threshold is set by the user, the first threshold may be set as any data, such as 5 times, 3 times, and the like; the setting according to the ordering of the access frequencies may be that all the frames already created and the access frequencies of the frames exited by the user are ordered in descending order within a predetermined time period, the frame ordered in the first 30% is selected as the target frame, and if the frame exited by the user is within the range ordered in the first 30%, the frame is taken as the target frame and buffered.
Further, in a possible implementation of the first aspect, when determining whether the target window is a common window, the time period from the creation time of the target window to the exit time of the target window may be a predetermined time period, the time of using the target window is counted within the predetermined time period, if the time of using the target window within the predetermined time period exceeds a second threshold, the second threshold may be set by a user, or may be arranged in a descending order according to the sequence of the time of using all the target windows within the predetermined time period, the first 30% of the frames ranked in the "tianmao supermarket" are selected as the common window, if the time of using the window of the "tianmao supermarket" is in the range of the first 30% of the common window ranked in the sequence, the window of the "tianmao supermarket" is set as the common window, for example, the window of the "tianmao supermarket" is the target window, and when the user accesses the window of the "tianmao supermarket, and if the using time exceeds the second threshold value for 4 minutes, taking the window of the "Tianmao supermarket" as a common window.
Further, in a possible implementation of the first aspect, in order to facilitate distinguishing the common window, the window processing method applied by the terminal further includes identifying the common window.
Further, in a possible implementation of the first aspect, in order to avoid the problem that caching all data of the target form causes excessive occupation of storage space, the cached target data includes UI data. The problem that the response speed of a mobile phone CPU is reduced due to the fact that too much memory of the mobile phone is occupied can be solved by only caching UI data of the target window.
Further, in a possible implementation of the first aspect, after the target data of the target window is cached and after the user does not use the target window for a long time and does not access the target window, in order to avoid the cached data occupying a storage space, the window processing method of the terminal application further includes: and when the target window is not accessed within the set time, destroying the cached target data of the target window.
Further, in a possible implementation of the first aspect, if the target data corresponding to the target form does not exist in the cache list, the form processing method of the terminal application further includes: and creating a form corresponding to the second target instruction.
Further, in a possible implementation of the first aspect, before searching for target data corresponding to the target form from the cache list, the method further includes:
judging whether a target window corresponding to the second target instruction carries an identifier of a common window or not;
if yes, the step of searching target data corresponding to the target window from the cache list is carried out;
and if not, creating the target form.
In a second aspect, an embodiment of the present application provides an application server, where the application server includes:
the starting module is used for starting the application;
the creating module is used for creating a form which is accessed by a user and corresponds to the target page of the application;
the cache module is used for caching target data of a target window corresponding to a first target instruction when the first target instruction is received, wherein the first target instruction describes an execution action of the user for exiting the target window;
and the access module is used for searching target data of a target window corresponding to a second target instruction from a cache list when the second target instruction is received, and accessing the target window based on the target data, wherein the second target instruction describes an access action for accessing the target window.
In a third aspect, an embodiment of the present application discloses a terminal, including:
a memory for storing a processing program;
and when the processor executes the processing program, the processor realizes the steps of the window processing method of the terminal application.
In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, where a processing program is stored, and when the processing program is executed by a processor, the steps of the window processing method for a terminal application as described in any one of the above are implemented.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a schematic structural diagram of a mobile terminal implementing an embodiment of the present application disclosed in the embodiment of the present application;
fig. 2 is a schematic flowchart of a window processing method for a terminal application disclosed in an embodiment of the present application;
fig. 3(a) is a schematic diagram illustrating states of an application program displayed on a display panel of a mobile terminal according to an embodiment of the present application;
fig. 3(b) is a schematic flowchart of a window stacking cache disclosed in the embodiment of the present application;
fig. 4 is a schematic flowchart of another form processing method for a terminal application according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an application server disclosed in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an SOC disclosed in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention is provided for illustrative purposes, and other advantages and effects of the present invention will become apparent to those skilled in the art from the present disclosure. While the invention will be described in conjunction with the preferred embodiments, it is not intended that features of the invention be limited to these embodiments. On the contrary, the invention is described in connection with the embodiments for the purpose of covering alternatives or modifications that may be extended based on the claims of the present invention. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The invention may be practiced without these particulars. Moreover, some of the specific details have been left out of the description in order to avoid obscuring or obscuring the focus of the present invention. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the present application, the terminal may be implemented in various forms, including but not limited to a mobile terminal such as a mobile phone, a tablet, a notebook computer, a palm computer, a smart band, and a fixed terminal such as a digital TV, a desktop computer, and the like.
In the embodiment of the present application, a mobile terminal is taken as an example for explanation, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can also be applied to a fixed terminal of a fixed type.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal for implementing an embodiment of the present application, and the mobile terminal 10 includes, but is not limited to, a WiFi module 100, an a/V (audio/video) input unit 101, a sensor 102, a display unit 103, a user input unit 104, an interface unit 105, a memory 106, a processor 107, and a power supply 108. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The various components of the mobile terminal 10 are described in detail below with reference to fig. 1:
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal can help a user to send and receive e-mails, browse webpages, access streaming media, and the like through the WiFi module 100, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 100, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The a/V input unit 101 is used to receive audio or video signals. The a/V input Unit 101 may include a Graphics Processing Unit (GPU) 1011 and a microphone 1012, and the Graphics processor 1011 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 103. The image frames processed by the graphics processor 1011 may be stored in the memory 106 (or other storage medium) or transmitted via the WiFi module 100. The microphone 1012 can receive sounds (audio data) via the microphone 1012 in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The microphone 1012 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The display unit 103 is used to display information input by a user or information provided to the user. The Display unit 103 may include a Display panel 1031, and the Display panel 1031 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 104 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal 10. Specifically, the user input unit 104 may include a touch panel 1041 and other input devices 1042. The touch panel 1041, also called a touch screen, may collect touch operations performed by a user on or near the touch panel 1041 (for example, operations performed by the user on or near the touch panel 1041 by using any suitable object or accessory such as a finger or a stylus pen), and drive a corresponding connection device according to a preset program. The touch panel 1041 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 107, and can receive and execute commands sent by the processor 107. In addition, the touch panel 1041 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 104 may include other input devices 1042 in addition to the touch panel 1041. In particular, the other input devices 1042 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like, which are not limited herein.
Further, the touch panel 1041 may cover the display panel 1031, and when the touch panel 1041 detects a touch operation on or near the touch panel 1041, the touch operation is transmitted to the processor 107 to determine the type of the touch event, and then the processor 107 provides a corresponding visual output on the display panel 1031 according to the type of the touch event. Although in fig. 1, the touch panel 1041 and the display panel 1031 are two independent components for implementing the input and output functions of the mobile terminal 10, in some embodiments, the touch panel 1041 and the display panel 1031 may be integrated to implement the input and output functions of the mobile terminal 10, and are not limited herein.
The interface unit 105 serves as an interface through which at least one external device is connected to the mobile terminal 10. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 105 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 10 and external devices.
The memory 106 may be used to store software programs as well as various data. The memory 106 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 106 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 107 is a control center of the mobile terminal 10, connects various parts of the entire mobile terminal 10 using various interfaces and lines, and performs various functions of the mobile terminal 10 and processes data by running or executing software programs and/or modules stored in the memory 106 and calling data stored in the memory 106, thereby performing overall monitoring of the mobile terminal. Processor 107 may include one or more processing units; preferably, the processor 107 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 107.
The mobile terminal 10 may further include a power supply 108 (e.g., a battery) for powering the various components, and the power supply 108 may be logically coupled to the processor 107 via a power management system that may be configured to manage charging, discharging, and power consumption.
Although not shown in fig. 1, the mobile terminal 10 may further include a bluetooth module, a Radio Frequency (RF) unit, a sensor unit, an audio output unit, and the like, which are not described in detail herein.
Based on the above mobile terminal 10, taking the mobile terminal 10 as a mobile phone as an example to describe various embodiments of the present application, a user may click a certain application displayed on the display panel 1031 through the touch panel 1041 to start the application, after starting the application, the user may click each module of the application displayed on the display panel 1031 through the touch panel 1041 to browse detailed contents of each function module, and when the user clicks each function module of the application, each page presented by each function module may be referred to as a window. The following method for processing a form includes the steps of caching the form and accessing the form, and the following method for processing the form provided by the embodiment of the present application is described with reference to a specific diagram.
A window processing method for a terminal application disclosed in the embodiment of the present application is described below with reference to fig. 2 and fig. 3(a), where fig. 2 is a schematic flowchart of the window processing method for the terminal application disclosed in the embodiment of the present application, fig. 3(a) is a schematic diagram of a state of an application program displayed on a display panel on a mobile terminal disclosed in the embodiment of the present application, and the window processing method shown in fig. 2 includes:
step S20: and clicking the application on the mobile phone through the touch panel by the user to start the application.
In some embodiments of the present application, the application refers to an application provided on a mobile phone, for example, icons of respective applications displayed on a display panel of the mobile phone shown in fig. 3(a), where each icon of the application represents an application, and when a user clicks the tab application in fig. 3(a), the tab application starts and presents a page of a home page to the user, and the page of the home page may be formed as a frame. The application server corresponding to the application is an application program which is arranged on the server, has data storage and analysis capabilities, receives the request of the application and data uploading through a network, and issues commands and returns data to the application.
In some embodiments of the present application, application launching may be automatic launching based on cell phone launching, or launching based on user instructions, or coordinated launching based on launching of other applications.
Step S21: and clicking the function module of the application displayed on the display panel through the touch panel by a user to create a form corresponding to the target page of the function module.
In some embodiments of the application, taking panning application as an example, after a user starts panning through a touch panel, a first page of panning presents function modules such as "new tianmao", "tianmao international", "hungry", "tianmao supermarket", and when the user clicks the function module of "tianmao supermarket" through the touch panel, the application server creates a window of a display page of the "tianmao supermarket" and displays the window on the display panel of the mobile terminal.
In some embodiments of the present application, the data for creating the form includes, but is not limited to, UI data and application content data, the UI data includes layout structure data of the form, surface object instance data (which is generally a form drawing result), form instance data, and a view tree structure, attribute values, and layout data of the form, the attribute values of the view tree may be text data and the like in an edited text object, the layout data of the view tree includes, but is not limited to, a measure calculation result and a layout calculation result, and the application content data includes, but is not limited to, a picture, network data, and the like. Further, UI data may be defined and set by the user at the time of calling onsaveinstanctate ().
It is understood that in some embodiments of the present application, the invariant data in the frame may be buffered, such as the UI data described above, and the dynamically changing data (such as network data, pictures, etc.) in the frame may not be buffered. In addition, the data of the buffered frame may also be other data, and the embodiment of the present application is not limited herein.
Step S22: and when the user clicks the icon of the target form exiting the functional module displayed on the display panel through the touch panel, the application server caches the UI data of the target form.
In some embodiments of the present application, taking panning in step S21 as an example, a user clicks a back key on a mobile phone through a touch panel, that is, exits a function module of a "tianmao supermarket", that is, exits a formed target window of the "tianmao supermarket", in the prior art, when the user clicks the back key on the mobile phone to exit the function module, a created target window of the "tianmao supermarket" and destroys all data of the target window, according to the technical solution provided in the embodiment of the present application, an application server pulls UI data of the target window of the "tianmao supermarket" as target data to be cached in a memory of the mobile phone, and only caching UI data of the target window can avoid a problem of reducing a response speed of a CPU of the mobile phone due to occupying too much memory of the mobile phone, and in addition, after the user clicks the back key on the mobile phone to exit the window of the "tianmao supermarket", clicking the back key on the mobile phone again exits the whole application. It can be understood that the target form exiting the function module may also be a manner in which the user clicks a closed icon "x" or clears a process of the application (i.e., closes the entire application), and the like, and this embodiment of the present application is not limited herein, and in addition, if the storage space of the mobile phone is sufficient, the cached target data of the form may also include page network data of the target form of the "tianmao supermarket", and the like, and this embodiment of the present application is also not limited to the type of the cached data.
Step S23: when the user clicks the function module of the target window again through the touch panel, the UI data of the target window of the function module is searched from the cache list, and the UI data is used for accessing the target window.
In some embodiments of the present application, taking panning in steps S21 and S22 as an example to continue the description, after the user clicks the "back" key on the mobile phone to exit the target window of the "tianmao supermarket," the user clicks the icon of the function module of the "tianmao supermarket" again, and the application server may search the homonymous window of the target window corresponding to the function module of the "tianmao supermarket" from the cache list, that is, search the UI data of the "tianmao supermarket" from the cache list and update the application content data of the function module of the "tianmao supermarket" to reproduce the target window and complete the access to the target window. By adopting the technical scheme provided by the embodiment of the application, the target window does not need to be rebuilt, the time consumed for rebuilding the target window is saved, the time consumed for starting the window of the application is reduced, and the smooth experience of a user is improved.
In some embodiments of the present application, the cache list may be a window stack, that is, a cached window may be cached in a stacking manner, as shown in fig. 3(B), fig. 3(B) is a schematic flow diagram of window stacking caching disclosed in the embodiments of the present application, after an application is started, a user first clicks two function modules of a home page of the application and correspondingly generates a window a and a window B, the window a and the window B are cached in the window stack by the user clicking a "home" key of a mobile phone, when the user clicks another function module, a window C is generated, and after the user clicks a "back" key on the mobile phone, the window C exits the window C, at this time, according to the scheme of the prior art, the window C may be destroyed, but by adopting the technical scheme of the embodiments of the present application, the window C is not destroyed but cached in the window stack manner, when a user accesses the functional module corresponding to the window C next time, the window C is directly pulled from the window stack without reconstruction, the reconstruction time of the window C is saved, the time consumed for starting the window C is reduced, and the smooth experience of the user is improved.
As shown in table 1 below, taking the technical solutions provided by the embodiments of the present application and the WeChat application as an example, the time consumed for the user to open the three function modules of "album", "red envelope" and "shooting" in the WeChat session is shown in table 1 below:
TABLE 1
Figure BDA0002332172620000101
Obviously, in the scheme of the prior art, the average values of the three function modules of "album", "red envelope" and "shooting" in the WeChat conversation opened by the user four times are far beyond the average value of the technical scheme provided by the application, and the performance improvement is all over 15%, wherein the performance of opening the "album" and the "red envelope" is even more than 50%. The time consumption for opening three functional modules, namely 'photo album', 'red envelope' and 'shooting', in the WeChat session is obviously reduced, and the smooth experience of the user is improved.
In some embodiments of the present application, due to a failure of the mobile phone or a regular cleaning of the cache by the mobile phone, the UI data of the target window in the cache list may be cleaned, and when the UI data of the target window is not found in the cache list, the target window may be reconstructed in the same manner as in step S21.
In some embodiments of the present application, for an application to a mobile phone, according to habits and hobbies of a user, the user may prefer to access some function modules that are interested in the user, and for other function modules, the user may browse only occasionally, so as to avoid a situation that a large amount of mobile phone storage space is occupied due to caching of data of frames of all the function modules of the application browsed by the user and CPU processing performance of the mobile phone is reduced, another embodiment is provided in the present application, please refer to fig. 4, where fig. 4 is a flowchart of a frame processing method of another terminal application provided in the embodiment of the present application, and the frame processing method of another terminal application includes:
step S40: and clicking the application on the mobile phone through the touch panel by the user to start the application.
Step S41: and clicking the function module of the application displayed on the display panel through the touch panel by a user to create a form corresponding to the target page of the function module.
In some embodiments of the application, taking panning application as an example, after a user starts panning through a touch panel, a first page of panning presents function modules such as "new tianmao", "tianmao international", "hungry", "tianmao supermarket", and when the user clicks the function module of "tianmao supermarket" through the touch panel, the application server creates a window of a display page of the "tianmao supermarket" and displays the window on the display panel of the mobile terminal.
It will be appreciated that after the user launches the "Taobao" application, he can click on a plurality of functional modules of the Taobao through the touch panel, thereby creating a plurality of forms by the application server.
In some embodiments of the present application, the data for creating the form by the application server includes, but is not limited to, UI data and application content data, the UI data includes layout structure data of the form, surface object instance data, form instance data, and view tree structure and layout data of the form, and the application content data includes, but is not limited to, pictures, network data, and the like.
Step S42: when a user clicks an icon of a target window exiting the functional module, which is displayed on the display panel, through the touch panel, whether the target window is a frequently-used window is judged, if yes, the process goes to S43, and if not, the process goes to S44.
In some embodiments of the present application, continuing with the example of panning in step S41 above, after the user launches the "panning" application, firstly clicking a functional module of a Tianmao supermarket on a first page of a Taobao application through a touch panel of a mobile phone, creating a window by an application server, clicking a 'home' key of the mobile phone by a user to cache a window of a 'Tianmao supermarket', clicking a 'Tianmao International' function module on a home page of the 'Taobao' application through a touch panel of the mobile phone again and creating a window forming 'Tianmao International' by an application server, then, a user clicks a home key of the mobile phone to cache a window of 'Tianmainternational', the user clicks a menu key of the mobile phone to access the cached window of 'Tianmasupermarket', the window of 'Tianmasupermarket' is accessed twice, and the window of 'Tianmainternational' is accessed once.
In some embodiments of the application, when determining whether the target window is a common window, statistics may be performed within a predetermined time period, for example, 1 hour is used as a set time period, the access frequency of the target window by a user through a touch panel of a mobile phone within 1 hour is set as the common window when the access frequency exceeds a first threshold, the first threshold may be set by a user, or may be set according to a ranking of the access frequencies of all created windows, and during the user-defined setting, arbitrary data may be set, for example, 5 times, 3 times, and the like; the setting according to the ordering of the access frequencies may be that all the frames already created and the access frequencies of the frames exited by the user are ordered in descending order within a predetermined time period, the frame ordered in the first 30% is selected as a common frame, and if the frame exited by the user is within the range ordered in the first 30%, the frame is taken as a common frame and buffered. If the window of the "Tianmao supermarket" is the target window, when the window exits the window of the "Tianmao supermarket", the window of the "Tianmao supermarket" can be used as a common window as the window of the "Tianmao supermarket" is visited twice by the user through the touch panel.
In addition, in some embodiments of the present application, when determining whether the target frame is a common frame, it may be determined by using a click frequency or an activity degree of the target frame, and taking a time period from a creation time of the target frame to an exit time of the target frame as a reference, counting a number of times that the user operates the target frame during the time period, for example, clicks or pulls the target frame, and if the number of times that the user clicks the target frame within 1 hour exceeds 5 times (a third threshold), setting the target frame as the common frame. The statistics listed here may also be the frequency of clicks counted over the behavior of multiple access frames. It can be understood that the set time period may also be set to other values according to actual situations, and the third threshold value for determining whether the target window is the criterion of the common window may also be set to other values, which is not limited herein in the embodiments of the present application.
In some embodiments of the application, when determining whether the target window is a common window, taking a time period from a creation time of the target window to a quitting time of the target window as a predetermined time period, counting a usage time of the target window within the predetermined time period, if the usage time of the user within the predetermined time period exceeds a second threshold, the second threshold may be set by a user, or may be arranged in a descending order according to a ranking of usage times of all target windows within the predetermined time period, selecting 30% of the frames ranked in the first order as the common window, if the usage time of the window of the "tianmao supermarket" is within a range of 30% of the common windows ranked in the first order, setting the window of the "tianmao supermarket" as the common window, for example, the window of the "tianmao supermarket" is the target window, and when the user visits the window of the "tianmao supermarket" for the first time, the visit time is, and if the using time exceeds the second threshold value for 4 minutes, taking the window of the "Tianmao supermarket" as a common window.
It can be understood that the judgment reference of the common window may be in other forms according to the actual situation, for example, the access time accessed by the user, that is, the window formed by accessing any one of the function modules of the application in a specific time period may be used as the common window, and the specific time period may be a time period from "20 o 'clock to" 22 o' clock "in beijing.
Step S43: and caching UI data of the common forms and identifying the common forms.
In some embodiments of the present application, the common forms may be identified by adding a label, for example, the common forms are labeled as "1", and the non-common forms are labeled as "0". It is understood that other manners may be adopted for identifying the common form, and the embodiments of the present application are not limited herein.
In some embodiments of the application, when the target window is a common window, the target data of the common window is cached, so that the problem that the data of all created windows are cached to cause excessive occupation of the storage space of the mobile phone is avoided.
Step S44: and destroying the target window.
Step S45: when the user clicks the function module of the target window again through the touch panel, whether the re-clicked target window carries the identifier of the frequently-used window is judged, if yes, the step goes to S46, and if not, the step goes to S47.
Step S46: and searching the re-clicked UI data of the target form of the functional module from the cache list, and using the UI data to access the target form.
Step S47: and creating a target form of the functional module clicked again by the user.
It can be understood that the same contents of the window processing method of another terminal application disclosed in the embodiment of the present application and the window processing method of a terminal application disclosed in the embodiment of the present application may be referred to each other, and the same parts in the embodiment of the present application are not described in detail again.
It can be understood that, in some embodiments of the present application, after the target data of the target frame is cached and after the user does not use the target frame for a long time and does not access the target frame, in order to avoid the cached data occupying a storage space, the frame processing method of the terminal application further includes: and when the target window is not accessed within the set time, destroying the target data of the cached target window. The predetermined time may be set to three days or other data, and may be set by a user according to actual conditions, and the embodiment of the present application is not limited herein.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an application server disclosed in an embodiment of the present application, where the application server shown in fig. 5 includes:
a starting module 50 for starting an application;
a creating module 51, configured to create a form corresponding to a target page of an application, where the form is accessed by a user;
the cache module 52 is configured to, when a first target instruction is received, cache target data of a target window corresponding to the first target instruction, where the first target instruction describes an execution action of a user exiting the target window;
and the accessing module 53 is configured to, when a second target instruction is received, search target data of a target window corresponding to the second target instruction from the cache list, and access the target window based on the target data, where the second target instruction describes an access action for accessing the target window.
In some embodiments of the present application, the starting module 50 starts an application after receiving an instruction input by a user through a touch panel, the creating module 51 creates a window of a target page corresponding to a certain function module of the application, which is accessed by the user, after the instruction is input by the user through the touch panel and used for clicking the function module, the user correspondingly generates a plurality of windows by clicking and browsing the plurality of function modules, after the user clicks an icon displayed on a display panel of a mobile phone and used for exiting from the target window through the touch panel, the caching module 52 caches target data of the target window, and after the user clicks the function module corresponding to the target window again through the touch panel, the accessing module 53 searches for the target data corresponding to the target window from the cache list and accesses the target window based on the target data.
It can be understood that the processing executed by the application server according to this embodiment is the same as the window processing method of the corresponding terminal application, and the same parts may be referred to each other, which is not described herein again in this embodiment of the present application.
In some embodiments of the present application, a terminal is further provided, and the terminal in the embodiments of the present application is described below with reference to fig. 6. Fig. 6 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application.
For at least one embodiment, controller hub 804 communicates with processor 801 via a multi-drop bus such as a front-side bus (FSB), a point-to-point interface such as a quick channel interconnect (QPI), or similar connection. The processor 801 executes instructions that control data processing operations of a general type. In one embodiment, controller hub 804 includes, but is not limited to, a Graphics Memory Controller Hub (GMCH) (not shown) and an input/output hub (IOH) (which may be on separate chips) (not shown), where the GMCH includes memory and graphics controllers and is coupled to the IOH.
The terminal 800 can also include a coprocessor 806 and memory 802 coupled to the controller hub 804. Alternatively, one or both of the memory 802 and the GMCH may be integrated within the processor 801 (as described herein), with the memory 802 and the coprocessor 806 coupled directly to the processor 801 and to the controller hub 804, with the controller hub 804 and IOH in a single chip.
In one embodiment, memory 802 may be, for example, Dynamic Random Access Memory (DRAM), Phase Change Memory (PCM), or a combination of the two. Memory 802 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. A computer-readable storage medium has stored therein instructions, and in particular, temporary and permanent copies of the instructions.
In one embodiment, the coprocessor 806 is a special-purpose processor, such as, for example, a high-throughput MIC processor, a network or communication processor, compression engine, graphics processor, GPGPU, embedded processor, or the like. The optional nature of coprocessor 806 is represented in FIG. 6 by dashed lines.
In one embodiment, terminal 800 may further include a Network Interface (NIC) 803. Network interface 803 may include a transceiver to provide a radio interface for terminal 800 to communicate with any other suitable device (e.g., front-end module, antenna, etc.). In various embodiments, the network interface 803 may be integrated with other components of the terminal 800. The network interface 803 can realize the functions of the communication unit in the above-described embodiments.
In one embodiment, as shown in FIG. 6, terminal 800 may further include an input/output (I/O) device 805. Input/output (I/O) devices 805 may include: a user interface designed to enable a user to interact with the terminal 800; the design of the peripheral component interface enables peripheral components to also interact with the terminal 800; and/or sensors are designed to determine environmental conditions and/or location information associated with terminal 800.
It is noted that fig. 6 is merely exemplary. That is, although fig. 6 shows that the terminal 800 includes a plurality of devices, such as the processor 801, the controller hub 804, the memory 802, etc., in practical applications, the device using the methods of the present application may include only a part of the devices of the terminal 800, for example, only the processor 801 and the NIC803 may be included. The nature of the alternative device in fig. 6 is shown in dashed lines.
In some embodiments of the present application, the computer readable storage medium of the terminal 800 having instructions stored therein may include: instructions which, when executed by at least one unit in a processor, cause terminal 800 to implement a frame processing method for a terminal application as mentioned in fig. 2 and 4. When the instructions are run on a computer, the instructions cause the computer to perform the above-mentioned frame processing method of the terminal application as mentioned in fig. 2 and 4.
Referring now to fig. 7, fig. 7 is a schematic structural diagram of an SOC according to an embodiment of the present disclosure, and illustrates a block diagram of an SOC (System on Chip) 1000 according to an embodiment of the present disclosure. In fig. 7, similar components have the same reference numerals. In addition, the dashed box is an optional feature of more advanced socs. The SoC may be used in a terminal according to an embodiment of the present application, and may implement a corresponding function according to an instruction stored therein.
In fig. 7, the SoC 1000 includes: an interconnect unit 1002 coupled to the processor 1001; a system agent unit 1006; a bus controller unit 1005; an integrated memory controller unit 1003; a set or one or more coprocessors 1007 which may include integrated graphics logic, an image processor, an audio processor, and a video processor; an Static Random Access Memory (SRAM) unit 1008; a Direct Memory Access (DMA) unit 1004. In one embodiment, the coprocessor 1007 comprises a special-purpose processor, such as, for example, a network or communication processor, compression engine, GPGPU, a high-throughput MIC processor, embedded processor, or the like.
Included in Static Random Access Memory (SRAM) unit 1008 may be one or more computer-readable media for storing data and/or instructions. A computer-readable storage medium may have stored therein instructions, in particular, temporary and permanent copies of the instructions.
When the SoC 1000 is applied to a terminal according to the present application, the storing of the instructions in the computer-readable storage medium may include: instructions which, when executed by at least one unit in a processor, cause the terminal to implement the frame processing method of the terminal application as mentioned in fig. 2 and 4. When the instructions are run on a computer, the instructions cause the computer to perform the picture processing method as mentioned above with reference to fig. 2 and 4.
In addition, the embodiment of the application also discloses a computer readable storage medium, on which a processing program is stored, and when the processing program is executed by a processor, the processing program implements the window processing method of the terminal application as mentioned in fig. 2 and fig. 4.
The computer readable storage medium may be a read-only memory, a random access memory, a hard disk, or an optical disk, etc.
The window processing method, the application server, the terminal and the storage medium for the terminal application disclosed by the embodiment of the application have the following beneficial effects:
after the application is started, a window corresponding to the target page is created, after the window is created, if a user exits the window, the window cannot be destroyed, the target data of the window is cached in the cache list, when the user accesses the window again next time, the target data of the window is directly searched from the cache list for access, the window does not need to be rebuilt, compared with the rebuilding window, the technical scheme provided by the application is adopted, when the user accesses the same window again, the window rebuilding time is saved, the user time is further saved, and the user experience is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (13)

1. A window processing method for a terminal application is characterized by comprising the following steps:
starting an application, and creating a form which is accessed by a user and corresponds to a target page of the application;
when a first target instruction is received, caching target data of a target window corresponding to the first target instruction, wherein the first target instruction describes an execution action of the user for exiting the target window;
when a second target instruction is received, searching target data of a target window corresponding to the second target instruction from a cache list, and accessing the target window based on the target data, wherein the second target instruction describes an access action for accessing the target window.
2. A method for frame processing of a terminal application according to claim 1, characterized in that said method further comprises:
when the first target instruction is received, caching the target data of the target window based on counting the activity data corresponding to the target window in a preset time period, wherein the activity data comprises the access frequency of the user accessing the target window in the preset time period.
3. A frame processing method for a terminal application according to claim 2, wherein said target frame is a common frame whose access frequency of the user exceeds a first threshold value in said predetermined time period.
4. A frame processing method for a terminal application according to claim 2, characterized in that said activity data further comprises a usage time of said user using said target frame within said predetermined time period.
5. A frame processing method for a terminal application according to claim 4, characterized in that said target frame is a common frame in which the usage time of said user exceeds a second threshold value within said predetermined time period.
6. A window processing method for a terminal application according to claim 5, characterized in that said method further comprises:
and identifying the common form.
7. A window processing method for a terminal application according to any of claims 1-6, characterized in that said cached target data comprises UI data.
8. A window processing method for a terminal application according to any of claims 1-6, characterized in that said method further comprises:
and when the target window is not accessed within the set time, destroying the cached target data of the target window.
9. The form processing method of a terminal application according to any of claims 1 to 6, wherein if said cache list does not contain said target data corresponding to said target form, said method further comprises:
and creating a form corresponding to the second target instruction.
10. The window processing method for terminal application according to any of claims 1-6, wherein before said searching for target data corresponding to said target window from the cache list, further comprising:
judging whether a target window corresponding to the second target instruction carries an identifier of a common window or not;
if yes, the step of searching target data of a target window corresponding to the second target instruction from the cache list is carried out;
and if not, creating the target form.
11. An application server, comprising:
the starting module is used for starting the application;
the creating module is used for creating a form which is accessed by a user and corresponds to the target page of the application;
the cache module is used for caching target data of a target window corresponding to a first target instruction when the first target instruction is received, wherein the first target instruction describes an execution action of the user for exiting the target window;
and the access module is used for searching target data of a target window corresponding to a second target instruction from a cache list when the second target instruction is received, and accessing the target window based on the target data, wherein the second target instruction describes an access action for accessing the target window.
12. A terminal, comprising:
a memory for storing a processing program;
processor, which when executing said processing program implements the steps of the frame processing method of a terminal application according to any of claims 1 to 10.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a processing program which, when executed by a processor, implements the steps of the window processing method of a terminal application according to any one of claims 1-10.
CN201911340656.7A 2019-12-23 2019-12-23 Window processing method for terminal application, application server, terminal and storage medium Pending CN113094126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911340656.7A CN113094126A (en) 2019-12-23 2019-12-23 Window processing method for terminal application, application server, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911340656.7A CN113094126A (en) 2019-12-23 2019-12-23 Window processing method for terminal application, application server, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113094126A true CN113094126A (en) 2021-07-09

Family

ID=76663163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911340656.7A Pending CN113094126A (en) 2019-12-23 2019-12-23 Window processing method for terminal application, application server, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113094126A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902805A (en) * 2012-10-15 2013-01-30 东软集团股份有限公司 Page access method and device
CN106156255A (en) * 2015-04-28 2016-11-23 天脉聚源(北京)科技有限公司 A kind of data buffer storage layer realization method and system
CN106294832A (en) * 2016-08-18 2017-01-04 乐视控股(北京)有限公司 Browser page method for caching and processing and device
CN106354791A (en) * 2016-08-24 2017-01-25 乐视控股(北京)有限公司 Browser webpage window processing method and device
CN106570005A (en) * 2015-10-08 2017-04-19 阿里巴巴集团控股有限公司 Database cleaning method and device
CN106886570A (en) * 2017-01-16 2017-06-23 网宿科技股份有限公司 page processing method and device
CN107679176A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 It is a kind of to improve using the method for opening speed, terminal, server, computer-readable recording medium
CN107861999A (en) * 2017-10-20 2018-03-30 北京集奥聚合科技有限公司 The processing method and system of cold data in a kind of hdfs
CN108307223A (en) * 2018-02-11 2018-07-20 青岛海信电器股份有限公司 The storage method and device of television pages data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902805A (en) * 2012-10-15 2013-01-30 东软集团股份有限公司 Page access method and device
CN106156255A (en) * 2015-04-28 2016-11-23 天脉聚源(北京)科技有限公司 A kind of data buffer storage layer realization method and system
CN106570005A (en) * 2015-10-08 2017-04-19 阿里巴巴集团控股有限公司 Database cleaning method and device
CN106294832A (en) * 2016-08-18 2017-01-04 乐视控股(北京)有限公司 Browser page method for caching and processing and device
CN106354791A (en) * 2016-08-24 2017-01-25 乐视控股(北京)有限公司 Browser webpage window processing method and device
CN106886570A (en) * 2017-01-16 2017-06-23 网宿科技股份有限公司 page processing method and device
CN107679176A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 It is a kind of to improve using the method for opening speed, terminal, server, computer-readable recording medium
CN107861999A (en) * 2017-10-20 2018-03-30 北京集奥聚合科技有限公司 The processing method and system of cold data in a kind of hdfs
CN108307223A (en) * 2018-02-11 2018-07-20 青岛海信电器股份有限公司 The storage method and device of television pages data

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
SHANHUHAUU: "缓存页面中的不变元素(CSS/JS/IMAGE)", 《HTTPS://BLOG.CSDN.NET/SHANHUHAU/ARTICLE/DETAILS/18798173》 *
XXQQ0824: "网站总体设计与缓存的关系(原创)", 《HTTPS://BLOG.CSDN.NET/XXQQ0824/ARTICLE/DETAILS/580943》 *
ZHANGJINLEI00: "缓存", 《HTTPS://BLOG.CSDN.NET/ZHANGJINLEI00/ARTICLE/DETAILS/8183929》 *
兰雨晴等: "《LotusDotes群体技术教程》", 30 September 2001 *

Similar Documents

Publication Publication Date Title
KR102245025B1 (en) Memory return method and device
US20210132779A1 (en) Electronic device and method for configuring display thereof
WO2019223578A1 (en) Application program preloading method and apparatus, and storage medium and terminal
CN104618217B (en) Share method, terminal, server and the system of resource
CN108121803B (en) Method and server for determining page layout
US10474507B2 (en) Terminal application process management method and apparatus
CN110888821B (en) Memory management method and device
WO2021098695A1 (en) Information sharing method and electronic device
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN107562539B (en) Application program processing method and device, computer equipment and storage medium
WO2015043476A1 (en) Devices and methods for webpage display
CN108984066B (en) Application icon display method and mobile terminal
CN110032321B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN106980694B (en) Browser page information interaction method and device and mobile terminal
CN104869465A (en) Video playing control method and device
WO2022052470A1 (en) Method for operating widget, terminal and storage medium
CN111338745A (en) Deployment method and device of virtual machine and intelligent equipment
US11520841B2 (en) Information recommendation method, terminal device, and server
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
CN110008184B (en) File processing method and electronic equipment
CN111026674A (en) Data storage method and electronic equipment
CN107818036B (en) Black screen detection method, mobile terminal and computer readable storage medium
US10628078B2 (en) Data access method and related device
WO2022199494A1 (en) User interest-based content recommendation method, and terminal device
CN107688498B (en) Application program processing method and device, computer equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210709

RJ01 Rejection of invention patent application after publication