CN116841686A - Application page display method - Google Patents

Application page display method Download PDF

Info

Publication number
CN116841686A
CN116841686A CN202311097280.8A CN202311097280A CN116841686A CN 116841686 A CN116841686 A CN 116841686A CN 202311097280 A CN202311097280 A CN 202311097280A CN 116841686 A CN116841686 A CN 116841686A
Authority
CN
China
Prior art keywords
page
application
application page
mode
linked list
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
CN202311097280.8A
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311097280.8A priority Critical patent/CN116841686A/en
Publication of CN116841686A publication Critical patent/CN116841686A/en
Pending legal-status Critical Current

Links

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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Abstract

The embodiment of the application provides a display method of an application page, which comprises the following steps: when the first application page is in a display state, a display request for displaying the second application page is received, then the display priority of the first application page and the second application page is determined from the page processing matrix, and when the display priority indicates that the first application page is higher than the second application page, the display state of the first application page is maintained; and switching from displaying the first application page to displaying the second application page when the display priority indicates that the second application page is prior to the first application page. The display priority between the first application page and the second application page is determined through the page processing matrix, priority judgment bases for other application pages do not need to be added in service logics corresponding to the application pages, decoupling of the service logics and display priority judgment is achieved, complexity is reduced, development difficulty is further reduced, and maintenance is facilitated.

Description

Application page display method
Technical Field
The application relates to the technical field of computers, in particular to a display method of an application page.
Background
The smart watch can realize switching among different application pages, for example, the smart watch can comprise two applications of music and telephone, when a user enters the music page of the smart watch and plays music, if a call of the mobile phone is received at the moment, the call is synchronized into the telephone application of the smart watch, and at the moment, the current music playing page needs to be switched to the call page so as to realize call reminding and answering. However, after the current music page is switched to the phone call page, if the alarm clock application of the smart watch needs to perform alarm clock reminding, the priorities of the alarm clock reminding page and the phone call page need to be judged so as to determine whether to display the phone call page or the alarm clock reminding page.
The current smart watch defines the judgment basis of the display priority of the switching of other application pages in the service logic corresponding to different application pages, for example, the service logic corresponding to the call incoming page needs to define the priority rule of the alarm clock reminding page, the service logic of the alarm clock reminding page needs to define the priority rule of the call incoming page, the coupling degree between different application pages is high, the complexity of the service logic is high, and the development difficulty and the maintenance difficulty can be caused.
Disclosure of Invention
The display method of the application page solves the problems of high degree of coupling between different application pages, high complexity of business logic, high development difficulty and difficult maintenance.
In order to achieve the above purpose, the application adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for displaying an application page, where the method includes:
when a first application page is in a display state, receiving a display request for displaying a second application page, wherein the second application page is a page generated by non-user triggering, and then determining the display priority of the first application page and the second application page from a page processing matrix, wherein the page processing matrix comprises the display priority of a plurality of different application pages, the plurality of different application pages at least comprise the first application page and the second application page, and when the display priority indicates that the first application page is higher than the second application page, the display state of the first application page is maintained; and switching from displaying the first application page to displaying the second application page when the display priority indicates that the second application page is prior to the first application page.
The second application page is an application page generated by the application under a certain condition, namely, the application page is generated by triggering some operations by a non-user.
The page processing matrix is stored in the memory management, and comprises a judgment basis of display priorities of a plurality of application pages.
In the embodiment of the application, the display priority between the first application page and the second application page is determined through the page processing matrix, the page processing matrix is stored in the memory management, the judgment basis for the display priority of other application pages is not required to be added in the service logic corresponding to each of the application pages, the decoupling between the service logic and the judgment of the display priority is realized, the complexity of the service logic is reduced, the development difficulty is further reduced, and the maintenance is convenient.
As a possible implementation manner, the first application page and the second application page are application pages managed through a page management linked list; the page management linked list comprises a first page node corresponding to the first application page, and after the display priority of the first application page and the second application page is determined, the method further comprises the steps of:
And adding a corresponding second page node of the second application page in the page management linked list.
The management of a plurality of application pages is realized through the page management linked list, so that the switching error between the currently displayed application page and the new application page is avoided, and the accuracy and reliability of the switching display of the application pages are ensured.
As a possible implementation manner, adding a corresponding second page node of the second application page in the page management linked list includes:
when the display priority indicates that the second application page is higher than the first application page, adding a second page node to the first position in the page management linked list; the priority of the page node corresponding to the first position is higher than that of the first page node;
before switching from displaying the first application page to displaying the second application page, the method further comprises:
and executing a second page node in the page management linked list.
And the second page node can be executed by adding the second page node to the position with the highest priority in the page management linked list, so that the switching display from the first application page to the second application page is realized, and the correctness of the switching display of the application pages is ensured.
As a possible implementation manner, adding a corresponding second page node of the second application page in the page management linked list includes: when the display priority indicates that the first application page is higher than the second application page, adding a second page node to a second position in the page management linked list; the priority of the page node corresponding to the second position is lower than that of the first page node;
When maintaining the display state of the first application page, the method further comprises the following steps:
the first page node continues to execute in the page management linked list.
If the first application page is better than the second application page for display, the second page node needs to be added to a position lower than the first page node in priority, and the first page node is continuously executed, so that the management of the application page is realized.
As a possible implementation manner, before the first application page is in the presentation state, the method further includes:
executing a first page node in a page management linked list; before the first application page is displayed, the first page node is the page node with the highest priority among page nodes corresponding to a plurality of application pages in a page management linked list.
As a possible implementation manner, after prioritizing the presentation of the first application page and the second application page with respect to each other, the method further includes:
judging whether the second application page is an aging page type page or not, wherein the aging page type indication page has set aging, the set aging indication page allows a time range of delay display, and if the second application page is the aging page type page, judging whether the second application page is displayed in the set aging; and if the second application page is not displayed in the set time period, canceling displaying the second application page.
And judging whether the second application page is a page of an aging page type or not, performing aging management on the second application page, and canceling display of the page when the set aging is not displayed, so that the page is prevented from being displayed overtime, and the timeliness of the page is ensured.
As a possible implementation manner, the aging page type is a page managed by a time management linked list; after determining that the second application page is an aging type page, the method further includes:
adding a time node corresponding to the second application page in the time management linked list; the time node includes a set age corresponding to the second application page.
The problem of overtime display can be avoided by managing the application pages which are of the aging page type through the time management linked list.
As one possible implementation manner, after maintaining the presentation state of the first application page when the presentation priority indicates that the first application page is prioritized over the second application page, the method further includes:
judging whether the set time period corresponding to the second application page is exceeded or not and judging whether the second application page is displayed or not; if the set time limit corresponding to the second application page is exceeded and the second application page is not displayed, deleting the time node in the time management linked list, and deleting a second page node corresponding to the second application page in the page management linked list; the page management linked list is used for managing a plurality of application pages, and the plurality of application pages comprise second application pages; the page management linked list contains the second page node prior to deletion of the second application page.
When the application page is overtime and is not displayed, the time node corresponding to the application page needs to be deleted from the management linked list, and the page node corresponding to the application page is deleted from the page management linked list, so that the consistency of data is ensured, and the problem of overtime display is avoided.
As a possible implementation, different rows of the page processing matrix represent different application pages, different columns of the page processing matrix represent different application pages, and elements of the page processing matrix include: the processing mode of the application page represented by the column of the element and the application page represented by the row of the element; determining a display priority of the first application page and the second application page from the page processing matrix, including:
determining a processing mode of the first application page and the second application page from the page processing matrix by taking the first application page as a row index and taking the second application page as a column index; the processing mode of the first application page and the second application page comprises the following steps: a first processing mode of a first application page and a second processing mode of a second application page; the first processing mode and the second processing mode both represent the priority degree of the display processing of the corresponding application page; and determining the display priority of the first application page and the second application page according to the first processing mode and the second processing mode.
The method comprises the steps of determining a processing mode of the first application page and the second application page by taking the first application page as a row index and taking the second application page as a column index, determining a priority ordering of display processing between the first application page and the second application page, determining display priority of the first application page and the second application page, displaying the application pages according to the display priority, and decoupling of service logic and display priority judgment is achieved without adding priority judgment basis for other application pages in service logic corresponding to each of the application pages, complexity is reduced, development difficulty is further reduced, and maintenance is facilitated.
In a second aspect, an embodiment of the present application provides an electronic device, including: the device comprises a display screen, a processor and a memory;
the display screen is used for displaying an application page;
wherein one or more computer programs, including instructions, are stored in the memory; the instructions, when executed by the processor, cause the electronic device to perform the method of presentation of an application page as in any of the first aspects.
In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which when run on an electronic device, performs a presentation method of an application page as in any of the first aspects.
In a fourth aspect, embodiments of the present application provide a computer program product which, when run on a computer, performs the method of presentation of an application page as in any of the first aspects.
Drawings
FIG. 1 is a schematic diagram of a modal page according to an embodiment of the present application;
fig. 2 is a schematic diagram of application page switching of a smart watch according to an embodiment of the present application;
fig. 3 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
FIG. 4 is a diagram illustrating an exemplary software architecture of an electronic device according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for displaying an application page according to an embodiment of the present application;
FIG. 6a is a schematic diagram of a modal page management linked list according to an embodiment of the present application;
FIG. 6b is a schematic diagram of another page management linked list in a mode according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a modal page processing matrix according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an application page switching according to an embodiment of the present application;
FIG. 9 is a flowchart of another method for displaying an application page according to an embodiment of the present application;
FIG. 10 is a flowchart of another application page switching provided in an embodiment of the present application;
FIG. 11 is a schematic diagram of a modal page time management linked list according to an embodiment of the present application;
fig. 12 is a schematic diagram of a display method of an application page according to an embodiment of the present application.
Detailed Description
The terms first, second, third and the like in the description and in the claims and in the drawings are used for distinguishing between different objects and not for limiting the specified order.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
For clarity and conciseness in the description of the following embodiments, a brief description of the related art will be given first:
the embedded device is an electronic device based on an embedded system, and can be an intelligent household appliance such as an intelligent watch, an intelligent bracelet, an intelligent refrigerator, an intelligent air conditioner and the like, wherein the intelligent household appliance is provided with a display screen, a plurality of pages can be displayed on the display screen, and page switching can be performed. In this embodiment, a smart watch is taken as an example for exemplary explanation.
The mode page means an application page which contains information to be displayed, is newly established and needs to be displayed in a full screen.
It should be appreciated that the user triggers the display or switching of application pages by some operations, such application pages belonging to the normal application page; if an application is up to a certain condition, that is, it is not triggered by some operations, it is called a modal page.
It should be understood that, in order to facilitate distinguishing the application page that is normally displayed from the application page that contains the information that needs to be displayed and is newly built and needs to be displayed in full screen, the application page that contains the information that needs to be displayed and is newly built and needs to be displayed in full screen will be referred to as a mode page hereinafter, and will be explained and illustrated.
Fig. 1 is a schematic diagram of a modal page according to an embodiment of the present application.
Taking the smart watch as shown in fig. 1 as an example, a in fig. 1 represents a music playing page, a user can play music by clicking a play button in the music playing page, b in fig. 1 represents a phone call page, and the phone call page is a mode page, that is, when the user is playing music through the music playing page, if there is a phone call at this time, the user needs to be presented through the phone call page, the playing of the music is stopped, and the current music playing page is switched to the phone call page, that is, a in fig. 1 is switched to b in fig. 1.
It should be noted that, when a mode page exists, the display priority of the mode page is higher than that of a normal application page, the current application page needs to be switched to the mode page to display application information corresponding to the mode page, and as an example, if the mode page is a phone call page, the current application page needs to be switched to the phone call page, and information such as a phone call number of a phone call is displayed.
It should be noted that, after the current application page is switched to one mode page, there may be other mode pages to be displayed, and at this time, the service logic corresponding to the mode page determines whether to continue to display the current mode page or display other mode pages.
As an example, refer to fig. 2, which is a schematic diagram of application page switching of a smart watch according to an embodiment of the present application.
Referring to fig. 2, a in fig. 2 represents a music playing page of the smart watch, b in fig. 2 represents a phone call page of the smart watch, c in fig. 2 represents an alarm clock reminding page of the smart watch, P in fig. 2 represents a call page of the mobile phone, wherein the music playing page is a normal application page, and the phone call page and the alarm clock reminding page are both modal pages. When a user is playing music by using the smart watch, the smart watch displays a music playing page shown as a in fig. 2, if a phone call of the mobile phone is coming in at the moment, a call page shown as P in fig. 2 will be synchronized into the smart watch, that is, the call page is displayed on the smart watch, that is, the current music playing page is switched to the call page, that is, a in fig. 2 is switched to b in fig. 2, so as to realize call reminding and answering.
Further, after the current music page is switched to the phone call page, if the alarm clock application of the smart watch needs to perform alarm clock reminding, as shown in c in fig. 2, the display priority of the alarm clock reminding page and the phone call page needs to be judged to determine whether to display the phone call page or the alarm clock reminding page.
Before judging the display priority of the page in the mode and the page in the other modes, the business logic corresponding to the page in the mode needs to be configured with key information of the page in the other modes. And the business logic corresponding to the mode page combines the key information of other mode pages to construct a priority judgment rule and a processing flow corresponding to the priority judgment rule.
Wherein, the business logic means logic corresponding to some functions of the implementation application, for example, the business logic of the music application can include music playing, music switching, music inquiring and the like; business logic of the phone application may include caller identification, phone answering, phone shut down, etc.; the business logic of the alarm clock application may include setting an alarm clock, deleting an alarm clock, alarm clock alerting, etc.
In a software architecture, a service logic layer generally defines service logic (such as priority rule, workflow, data integrity, etc.), receives a data request, performs logic judgment on the data request, submits a request corresponding to logic judgment to a data access layer, and transmits a result corresponding to the data request.
For example, when a user browses a music playing page, a mode page a requests to a service logic layer to display, the service logic layer can combine the service logic a of the mode page a and key information of the music playing page to judge the display priority, the display priority of the mode page a is higher than that of the music playing page, the music playing page is switched to the mode page a when the mode page a needs to be displayed, at this time, if a new mode page B requests to the service logic layer to display, the service logic layer can combine the service logic B of the mode page B and the key information of the mode page a to judge the display priority, and if the priority of the mode page B is higher than that of the mode page a, the mode page a needs to be switched to the mode page B.
Before implementing the judgment of the display priority, the service logic a and the service logic b need to define the priority rules between the mode pages corresponding to the service logic and the other mode pages in advance, that is, assume that the smart watch includes 10 applications, each application includes a corresponding mode page, and the service logic corresponding to each mode page needs to define the priority rules of the mode pages corresponding to the application and other applications in advance, that is, the priority rules are 100 priority rules.
Because the service logic corresponding to each mode page needs to define the priority rule of the application and the priority rules of the mode pages corresponding to other applications in advance, the coupling degree between the different mode pages is high, the complexity of the service logic is high, and the development difficulty and the maintenance difficulty are further caused.
In addition, since there are multiple applications in the electronic device, some applications may have one or more mode pages, so when two mode pages need to be switched, the service logic layer needs to send switching requests to the two mode pages respectively, which results in decentralized page management, if the switching request sent by the service logic layer is wrong, or if one of the two mode pages does not receive the switching request, the switching error between the two mode pages may be caused, and the efficiency and reliability of mode page management are reduced.
In order to solve the above technical problems, an embodiment of the present application provides a method for displaying an application page, where the method includes:
when the first application page is in a display state, a display request for displaying the second application page is received, then the display priority of the first application page and the second application page is determined from the page processing matrix, and when the display priority indicates that the first application page is higher than the second application page, the display state of the first application page is maintained; and switching from displaying the first application page to displaying the second application page when the display priority indicates that the second application page is prior to the first application page. The first application page and the second application page may be understood as static pages.
The display priorities of the first application page and the second application page are determined through the page processing matrix, display priority rules for other application pages do not need to be added in service logics corresponding to the application pages, decoupling of the service logics and display priority judgment is achieved, complexity of the service logics is reduced, development difficulty is further reduced, and maintenance is facilitated. The page processing matrix is also referred to below in relation to fig. 7 and will not be described in detail here.
The display method of the application page provided by the embodiment of the application can be applied to electronic equipment, wherein the electronic equipment can be embedded electronic equipment, and can be wearable electronic equipment (for example, an intelligent watch), equipment with visualization and interaction functions (for example, an intelligent refrigerator, an intelligent access control system), vehicle-mounted equipment and the like.
Fig. 3 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
As shown in fig. 3, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker, a receiver, a microphone, a sensor module 180, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc.
It is to be understood that the configuration illustrated in this embodiment does not constitute a specific limitation on the electronic apparatus. In other embodiments, the electronic device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can be a neural center and a command center of the electronic device. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge an electronic device.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the display 194, the camera, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on an electronic device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. for application on an electronic device. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, and/or FM techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device implements display functions via a GPU, a display screen 194, an application processor, and the like. As an example, the electronic device may be a smart watch that may display different application pages, such as mail, phone, information, incoming calls, message alerts, running alerts, etc., through a GPU, a display 194, and an application processor. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro-led, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 194, N being a positive integer greater than 1.
A series of graphical user interfaces (graphical user interface, GUIs) may be displayed on the display 194 of the electronic device, all of which are home screens of the electronic device. The display 194 may display photographs, images of application pages, animated video of incoming calls, and so forth. Generally, the size of the display 194 of an electronic device is fixed and only limited controls can be displayed in the display 194 of the electronic device. A control is a GUI element that is a software component contained within an application program that controls all data processed by the application program and interactive operations on that data, and a user can interact with the control by direct manipulation (direct manipulation) to read or edit information about the application program. In general, controls may include visual interface elements such as icons, controls, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device (e.g., audio data, phonebook, etc.), and so forth. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor. The internal memory 121 may execute a code corresponding to a presentation method of an application page.
The electronic device may implement audio functions through an audio module 170, speaker, receiver, microphone, application processor, etc. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
In addition, an operating system is run on the components. Such as the iOS operating system developed by apple corporation, the Android open source operating system developed by google corporation, and the like. An operating application may be installed on the operating system.
The operating system of the electronic device may employ a layered architecture, an event driven architecture, or a microkernel architecture. In the embodiment of the application, an Android system with a layered architecture is taken as an example, and the software structure of the electronic equipment is illustrated.
Referring to fig. 4, an exemplary software structure diagram of an electronic device according to an embodiment of the present application is shown.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 4, the application package may include applications such as cameras, gallery, calendar, talk, map, navigation, bluetooth, music, video, short messages, alarm clocks, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 4, the application framework layer may include a window manager, a content provider, a view system, an application page manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture. As an example, the view system may run business logic corresponding to a modal page to display the modal page, e.g., the modal page is an alarm clock alert page, which may include a view of display time and a view of an alarm clock picture.
The application page manager is configured to manage switching between multiple application pages of different applications, and as an example, may implement switching and presentation of two or more pages in a mode.
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a display driver, an audio driver, a sensor driver, a memory management unit, a file system and the like. In one possible implementation, a page processing matrix is stored in the memory management, where the page processing matrix includes a criterion for displaying priorities among a plurality of application pages.
Although the Android system is taken as an example for explanation, the basic principle of the embodiment of the application is also applicable to electronic devices based on iOS, windows and other operating systems.
It can be understood that the electronic device includes an embedded electronic device, and for convenience of description, the embedded electronic device will be hereinafter referred to as an electronic device, and the electronic device is taken as an example of a smart watch.
In order to solve the above technical problems, refer to fig. 5, which is a flowchart of a method for displaying an application page according to an embodiment of the present application.
Referring to fig. 5, taking a smart watch as an example, the method for displaying an application page according to the embodiment of the present application may include:
s501: and acquiring a target mode page.
The target modality page means a newly established modality page to be displayed, i.e. a page not triggered by a user, which may also be referred to as a second application page. As an example, assume that the page in the mode currently being displayed is an information prompt page, at this time, if a phone call comes, the phone call page is a target page in the mode.
It should be noted that, when the presence mode page is in the showing state, the target mode page may be obtained by receiving a request for showing the target mode page.
S502: and acquiring a linked list mode page in the mode page management linked list.
The page management linked list means a linked list for managing the order of display of a plurality of pages in a mode, and is also called a page management linked list.
Referring to fig. 6a, a schematic diagram of a modal page management linked list according to an embodiment of the present application is shown.
In the related art, the switching of the mode pages is generally realized by integrating the service logic corresponding to each mode page into the priority judgment basis of the mode page corresponding to the application and other applications, but the switching among the mode pages is not managed identically, which may cause errors in the switching of the mode pages.
As an example, assuming that the newly established mode page B has a higher priority than the current mode page a, the service logic of the mode page a may be to end the current mode page a, and the service logic of the mode page B may be to display the mode page B, so as to switch from the mode page a to the mode page B, but, because the service logic corresponding to each mode page is to display or not display the mode page, when the service logic corresponding to the mode page a is wrong, both the mode page a and the mode page B may be caused to be displayed.
In order to solve the technical problem that unified management does not exist among the mode pages, and simultaneously to ensure the correctness and reliability of mode page switching, in the embodiment of the application, a mode page management linked list is adopted to manage a plurality of mode pages.
In the embodiment of the application, the mode page management linked list is divided into a plurality of chains in turn from top to bottom according to the priority, each chain adds the page nodes of the mode pages into the corresponding chains according to the time sequence of acquiring the mode pages, and when executing the page nodes, the last page node in the corresponding chain with the highest priority is selected for execution, so that a user can acquire the latest application message.
It should be noted that, in the embodiment of the present application, the mode page management linked list is divided based on the priorities corresponding to the mode pages, for example, the incoming call page, the voice call page, the video call page and the like all belong to a first priority, the message reminding page, the sedentary reminding page and the drinking reminding page all belong to a second priority, and the priority classification mode is not limited specifically herein, and is not taken as a basis for limiting the protection scope of the present application.
As shown in connection with FIG. 6a, the modal page management linked list may include priority chains 0, 1, 2, where priority is priority chain 0 > priority chain 1 > priority chain 2; priority chain 0 may include page node A0 and page node A1; priority chain 1 may include page nodes B0, B1, B2; priority chain 2 may include page nodes C0 and C1.
It should be noted that, some mode pages may also have a plurality of corresponding sub-mode pages, and as an example, it is assumed that the mode page a is an information reminding page, where the mode page a may further include sub-mode pages a, b and c, the sub-mode page a may be an information detail page, the sub-mode page b may be an information reply page, and the sub-mode page c may be an information deletion page. Referring to fig. 6a, in the modal page management linked list, the page node A1 may further include sub-page nodes A1-0 and A1-1 corresponding to sub-modal pages; page node C0 may also include sub-page nodes C0-0.
It should be understood that when a page of a mode needs to be displayed, the page node with the highest priority needs to be determined, and as an example, as shown in fig. 6a, the page node A1-1 corresponding to the page node A1 may be a sub-page node A1-1, and then the sub-page node A1-1 is executed, and a sub-mode page corresponding to the sub-page node A1-1 is displayed.
It should be understood that if the display of a page in a certain mode is completed, indicating that the execution of the page node corresponding to the page in the mode is completed, deleting the page node from the page management linked list in the mode, refreshing the page management linked list in the mode, acquiring the page node with the highest priority and the tail of the chain again, and executing the page node.
It should be noted that, for the page node with the highest priority and the end of the chain in the modal page management linked list, the following is indicated by the "page node with the highest priority".
In this embodiment, a mode of a mode page management linked list is used to manage a plurality of mode pages, so that switching errors between a current mode page and a new mode page are avoided, and accuracy and reliability of mode page switching are ensured.
The linked list mode page means a mode page corresponding to a page node in the mode page management linked list which is being executed or to be executed, and may also be referred to as a first application page. It should be appreciated that the executing or pending page node is the highest priority page node in the modal page management chain.
In some possible implementation manners, the first application page may also be a normal application page, which is not specifically limited herein.
It should be noted that, two execution conditions may exist for the page node corresponding to the linked list page, where one is executing, and the other is that the previous page node is executing, and the page node corresponding to the linked list page is about to execute.
The static pages of the scenario shown in fig. 2 are managed by the model page management linked list as described below in connection with fig. 6 b.
Referring to fig. 6b and fig. 2, when a user is playing music by using a smart watch, the smart watch displays a music playing page shown as a in fig. 2, if a phone call of the mobile phone is coming at this time, a call page shown as P in fig. 2 will synchronize the call into the smart watch, that is, the call page is displayed on the smart watch, that is, the current music playing page is switched to the call page, that is, a in fig. 2 is switched to b in fig. 2, so as to realize call reminding and answering. Correspondingly, in fig. 6b, the incoming call page may be a page node A0, and when it is determined that the incoming call page is a mode page, the page node A0 corresponding to the incoming call page needs to be added according to a priority rule in a mode page management linked list, and the incoming call page is displayed by executing the page node A0.
However, after the current music page is switched to the phone call page, if the alarm clock application of the smart watch needs to perform alarm clock reminding, as shown in c in fig. 2, the display priority of the alarm clock reminding page and the phone call page needs to be judged to determine whether to display the phone call page or the alarm clock reminding page. Assuming that the target page node corresponding to the alarm clock reminding page is M, the page node corresponding to the telephone incoming call page is A0, if the processing priority of the telephone incoming call page is higher than that of the alarm clock reminding page, namely the page node A0 is still the page node with the highest priority in the mode page management linked list, continuing to execute the page node A0, adding the target page node M into the chain tail in the corresponding priority chain according to the priority rule in the mode page management linked list, for example, if the target page node M belongs to the priority chain 1, adding the target page node M into the chain tail in the priority chain 1.
As an example, assuming that the new page is a voice call page, the target page node corresponding to the voice call page is K, at this time, the executing page node is A0, the processing priorities of the voice call page and the incoming call page are compared through the mode page processing matrix, if the processing priority of the voice call page is higher than that of the incoming call page, the target page node K may be added to the back of the page node A0, used as the tail of the priority chain 0, and the mode page management linked list is updated, and the target page node K is executed.
It should be noted that, in some possible implementation manners, the page node A0 may be deleted, and the target page node K may be added to the position of the page node A0, for example, assuming that the target page is a phone call page, the linked list page is a drinking reminding page, when the drinking reminding page is interrupted, the drinking reminding page may not be displayed any more, but a page after the drinking reminding page, such as a page corresponding to the page node B3, that is, after the linked list page is switched to the target page, the linked list page may not be repeatedly displayed, and at this moment, the page node corresponding to the linked list page needs to be deleted.
S503: and judging the processing priority between the target mode page and the linked list mode page based on the mode page processing matrix.
It should be noted that, the target mode page may be understood as a newly built mode page, the linked list mode page may be understood as a currently displayed or to-be-displayed mode page, and when the linked list mode page is being displayed or to-be-displayed, if the target mode page exists, the processing priority between the target mode page and the linked list mode page needs to be determined to determine whether the mode page needs to be switched. Where processing priority may be understood as priority of page display.
The modal page processing matrix means a matrix containing processing priorities between any two application pages, and may also be referred to as a page processing matrix. In some possible implementations, the mode page processing matrix may be determined by a processing manner between two mode pages, or may be determined by other manners, which are not specifically limited herein.
In some possible implementations, the processing manner of each of the two-mode pages may be determined by a judgment logic or a text description between the two-mode pages, for example, assuming that the judgment logic between the two-mode pages a and B is "who the mode page a and the mode page B access first, who is displayed first", when the mode page a is displayed first, and the mode page B is acquired, the corresponding processing manner may be: modality page a: immediately display, modality page B: and (5) time-delay display. In some examples, assuming that the text description of the two pages a and B in the mode is "stop displaying a, display the page B in the mode", when the page a in the mode is displayed first, and the page B in the mode is obtained, the corresponding processing manner may be: modality page a: stopping display, and enabling the page B to be in a mode: immediately displayed.
It should be noted that, in the related art, since the service logic corresponding to each page needs to be integrated into the processing priority judgment of the page in other modes, the service logic coupling degree and complexity between different application pages may be high, which further may cause development difficulty and maintenance difficulty.
In order to realize decoupling between the business logic of the mode page and the judgment of the page processing priority, in some possible implementation manners, the mode page processing matrix can be adopted to make a decision of the processing priority on the two mode pages, and the judgment of the business logic corresponding to each of the two application pages is not needed.
Referring to fig. 7, a schematic diagram of a modal page processing matrix according to an embodiment of the present application is shown.
In one possible implementation, as shown in connection with fig. 7, the pages of a modality may include A, B, C, D four pages, each of which requires a determination of processing priority with other pages of the modality and itself.
It should be noted that, since the pages of the same application may include different key information, it is necessary to determine the processing priority between the two pages of the same application, and as an example, assuming that the pages of the same application are call incoming pages, the call incoming page 1 may be a call of three, and the call incoming page 2 may be a call of four, but are all call incoming pages.
In some possible implementations, the processing priority may be determined according to the processing manner of the two-mode page, and the processing manner may be divided into five cases, which may be just in (immediate display), later (delayed display), ignore (ignore page), vanish (eliminate page), time (time-out). The above-mentioned five processing methods are not limited to the above-mentioned five processing methods, and the above-mentioned processing methods are not used as a basis for limiting the scope of the present application.
just in (immediate display) means that the page of the modality needs to be displayed immediately, and its corresponding processing priority is highest.
The later means that the page of the mode can be displayed again in a delayed mode, and the corresponding processing priority is the second level.
ignore (ignore page) means that the page of this modality can be displayed ignored, and its corresponding processing priority is the third level.
vanish means that the page of the modality may not be displayed, and its corresponding processing priority is the fourth level.
time (time-out) means that the page of the mode can be displayed in time without being displayed, and the corresponding processing priority is the lowest level.
Referring to fig. 7, old represents an old page, i.e., a currently displayed or to-be-displayed page, new represents a new page, i.e., a newly established page; assuming old as a mode page A, new as a mode page C, the processing modes corresponding to the mode page A and the mode page C are [ old: a later; new: just in, i.e., the [ old page ] shown in fig. 7: delay display; new page: immediate display, that is, the mode page C needs to be displayed immediately, the mode page a may be displayed in a delayed manner, that is, the processing priority of the mode page C is higher than that of the mode page a; assuming old as a mode page C, new as a mode page B, the processing mode corresponding to the mode page C and the mode page B is [ old: a later; new: ignore ], i.e. [ old page in fig. 7: delay display; new page: and ignoring the page B, and continuing to display the page C, namely, the processing priority of the page C is higher than that of the page B.
It should be understood that in this embodiment, the processing priority between two mode pages is determined by the mode page processing matrix, and the priority judgment basis for other mode pages is not required to be added in the service logic corresponding to each of the two mode pages, so that decoupling of the service logic and the processing priority judgment is realized, complexity is reduced, development difficulty is further reduced, and maintenance of the mode pages can be realized only by maintaining the mode page processing matrix.
It should be noted that, the processing priority determined based on the modal page processing matrix is different from the priority in the modal page management linked list, and the processing priority determined based on the modal page processing matrix indicates the sequence of processing between the two modal pages; the priority in the modal page management linked list indicates the importance degree corresponding to each of the modal pages.
In some possible implementation manners, the normal application page may also be used as an element in the modal page processing matrix, that is, the processing manner of the normal application page may be set to be immediately disappeared, and the processing manner corresponding to the normal application page may be set to be immediately displayed, that is, the modal page is displayed in preference to the normal application page.
S504: and if the processing priority of the target mode page is higher than that of the linked list mode page, switching the linked list mode page into the target mode page.
It should be understood that if the processing priority of the target mode page is higher than the processing priority of the linked list mode page, the linked list mode page is interrupted or not executed, and the target mode page is switched or displayed.
As an example, assuming that the linked list page is an alarm clock reminding page and the target page is a voice call page, when the processing priority of the voice call page is higher than that of the alarm clock reminding page, the alarm clock reminding page needs to be closed or the alarm clock reminding page is not displayed, and the voice call page is displayed.
It should be noted that, in order to switch the linked list page to the target page, in some possible implementation manners, a target page node corresponding to the target page needs to be added to the page management linked list, the target page node is used as a page node with the highest priority in the page management linked list, that is, the target page node is added to the back of the page node corresponding to the linked list page and is used as a chain tail of a priority chain corresponding to the page node, then the page management linked list is refreshed, the target page node is executed, and the target page is displayed.
S505: and if the processing priority of the linked list mode page is higher than that of the target mode page, displaying the linked list mode page.
It should be understood that when the processing priority of the target page is lower than that of the linked list page, the linked list page needs to be continuously displayed, and after the linked list page is displayed, the target page or other pages are displayed.
It should be noted that after the steps S501 to S505 are completed, if a new target page exists, the steps S501 to S505 may be re-executed to realize the switching display of the pages in different modes.
As an example, when the processing priority indicates that the target page A is higher than the linked list page B, the linked list page B can be switched to the target page A for displaying, and at this time, if a new target page C exists, a new linked list page D can be obtained (the target page A being displayed can be used as the new linked list page D, or can be another linked list page to be displayed or being displayed after the target page A is displayed), the processing priority between the target page C and the new linked list page D is determined again based on the processing matrix of the linked list pages, and page display is performed according to the processing priority.
In the embodiment of the application, the processing priorities of the target mode page and the linked list mode page are judged through the mode page processing matrix so as to realize the switching between the linked list mode page and the target mode page, the judgment basis of the processing priorities of other application pages is not required to be integrated into the corresponding business logic of each application page, the decoupling between the business logic is realized, the complexity is reduced, the development difficulty is further reduced, and the maintenance is convenient.
Referring to fig. 8, the diagram is a schematic diagram of application page switching provided in an embodiment of the present application.
It should be understood that in the embodiment of the application, the electronic device may be an intelligent watch, the application page normally displayed is a, and the application page a may be a music playing page; the linked list page is B, and the linked list page B can be a drinking reminding page; the target mode page is C, and the target mode page C can be a telephone call page; the processing mode of the modal page processing matrix is [ old: a later; new: just in.
As a possible implementation manner, the application page switching process provided by the embodiment of the present application may be: the intelligent watch normally displays an application page A; at the moment, triggering drinking reminding operation by the intelligent watch, establishing a linked list mode page B, and displaying the linked list mode page B; when a linked list mode page B is displayed, telephone calls, a target mode page C is established, and the processing priority of the target mode page and the linked list mode page is compared through a mode page processing matrix; and switching the linked list mode page B into the target mode page C based on the processing priority of the target mode page being higher than the processing priority of the linked list mode page.
In the embodiment of the application, the processing priority of the target mode page and the linked list mode page is judged through the mode page processing matrix so as to realize the switching between the linked list mode page and the target mode page, the priority judgment basis of other application pages is not required to be integrated into the business logic of each application page, the decoupling between the business logic is realized, the complexity is reduced, the development difficulty is further reduced, and the maintenance is convenient.
Based on the method for displaying an application page provided in the foregoing embodiment, in order to further explain a process of switching from a normal application page to a modal page, refer to fig. 9, which is a flowchart of another method for displaying an application page provided in the embodiment of the present application.
Referring to fig. 9, the method for displaying an application page provided by the embodiment of the present application may be:
s901: and judging whether the current application page is a normal application page or not.
Normal application pages mean application pages that are normally used, such as music playing pages, etc., rather than modal pages.
It should be noted that, if the current application page is not a normal application page but a modal page, the switching process of the modal page provided by the above embodiment is performed.
S902: if the current application page is a normal application page, adding the page node corresponding to the new page mode into a page mode management linked list.
The new mode page means a newly established mode page, for example, the short message application receives a new message, and establishes a message reminding page based on the received new message, wherein the message reminding page is the new mode page.
It should be noted that, if the current application page is a normal application page, a page node corresponding to the new page mode needs to be added into the page management linked list of the page mode, and the priority of the page node is determined.
S903: and displaying the mode page corresponding to the page node with the highest priority in the mode page management linked list.
It should be noted that if the page management linked list has only the page node corresponding to the new page mode, executing the page node and displaying the new page mode; if the mode page management linked list contains other page nodes, after adding the page node corresponding to the new mode page into the mode page management linked list, refreshing the mode page management linked list, executing the page node with the highest priority in the mode page management linked list, and displaying the mode page corresponding to the page node with the highest priority.
Based on the procedure of switching from the normal application page to the mode page provided in the above embodiment, in order to further explain the procedure of returning to the normal application page after the mode page is displayed, refer to fig. 10, which is a flowchart of still another application page switching provided in the embodiment of the present application.
S1001: and ending the operation of the page node corresponding to the page in the current mode.
It should be noted that, the current page means a currently displayed page in a mode, and when the current page is displayed, the corresponding page node corresponding to the current page in the mode page management linked list also needs to finish the operation.
S1002: and judging whether the current mode page exists or not.
It should be understood that after the mode page is displayed, the normal application page should be returned, that is, after the mode page is displayed, the current mode page is destroyed and the normal application page is redisplayed; if the page management linked list also comprises page nodes corresponding to pages of other modes, after the page of the current mode is displayed, the page of the current mode is not destroyed, and the page is switched to the page of the other modes.
S1003: if not, displaying a normal application page.
It should be understood that if the current page does not exist, it is considered that no other page nodes exist in the page management linked list, that is, no other page nodes exist in the page management linked list, so that the current page can be directly destroyed and a normal application page can be displayed.
S1004: if yes, deleting the page node corresponding to the current page in the page management linked list of the mode, and executing the new page node.
It should be understood that if the current page mode exists, other page nodes exist in the page mode page management linked list, that is, other page mode pages exist, in order to ensure smoothness of switching of the page mode pages, after the operation of the page node corresponding to the page mode page is finished, the page mode page still needs to be displayed, and when the page node is executed, the page mode page is switched to a new page mode page. Wherein, the new page node means the page node with the highest priority in the modal page management linked list.
Referring to fig. 11, a schematic diagram of a modal page time management linked list according to an embodiment of the present application is shown.
Based on the application page display method provided by the embodiment, the processing priority is determined by the processing mode of the two-mode page, and the processing mode can be divided into five cases: just in (immediate display), later (delayed display), ignore (ignore page), vanish (eliminate page), time (disappear by time).
It should be noted that, some pages in the mode have timeliness, that is, the display is not needed more than a certain time, so for four processing modes of later (delay display), ignoring the page, vanish (elimination of the page), time (disappearance of the time), the corresponding time duration can be set, and after the set time duration is exceeded, the page node corresponding to the page in the mode is deleted from the mode page management linked list.
Referring to fig. 11, time nodes corresponding to all the mode pages in the mode page time management linked list are arranged from large to small according to a set duration, that is, for example, the mode page includes a and B, the set duration corresponding to the mode page a is 10 seconds, and the set duration corresponding to the mode page B is 13 seconds, then the time node a corresponding to the mode page a is added after the time node B corresponding to the mode page B. The set time period may also be referred to as a set time period.
It should be noted that, counting down is performed based on the set duration corresponding to the time node at the end of the link in the mode page time management linked list, when the count down is 0 and the mode page corresponding to the time node is still not displayed, the page node corresponding to the mode page is deleted from the mode page management linked list, that is, after the set duration is exceeded, the mode page is not required to be displayed again, so as to ensure timeliness of the mode page.
It should be noted that, in deleting the page node corresponding to the page in the mode page management linked list, it is also necessary to delete the time node in the mode page time management linked list, and subtract the set duration of the time node from the count-down time of the time node before the time node, and as an example, it is assumed that the set duration of the time nodes T1, T2 and T3, T1 is 13 seconds, the set duration of T2 is 10 seconds, the set duration of T3 is 3 seconds, and the count-down times corresponding to T1, T2 and T3 are 13 seconds, 10 seconds and 3 seconds, respectively. When the countdown of the T3 is finished, the T3 node is deleted, and 3 seconds are subtracted from the corresponding T1 and T2, namely, the countdown time of the T1 and the T2 is changed to 10 seconds and 7 seconds, so that the time synchronization of the mode page time management linked list is ensured.
In one possible implementation manner, as shown in fig. 11, assuming that the time node T3 represents a time node corresponding to the mode page R, the set duration of the mode page R is 3 seconds, when the page node corresponding to the mode page R in the mode page management linked list is C4 and the countdown is 0, that is, "T3 (3 seconds)" shown in fig. 11 is changed to "T3 (0 seconds)", and the page node C4 is not executed, the page node C4 is deleted from the mode page management linked list, and the time node T3 is deleted from the mode page time management linked list.
In this embodiment, the timeliness of the mode page is managed by the mode page time management linked list, and when the set time is exceeded and the mode page is not displayed, the page node corresponding to the mode page is deleted from the mode page management linked list, so that the problem of overtime display of the mode page is avoided.
Referring to fig. 12, the diagram is a schematic diagram of a display method of an application page according to an embodiment of the present application.
Referring to fig. 12, the method for displaying an application page provided by the embodiment of the present application may include:
step 1: and acquiring a newly established target mode page X.
In the embodiment of the present application, taking the smartwatch as an example, assume that a mode page corresponding to a T3 node in the mode page management linked list in fig. 12 is being displayed, and at this time, a newly established target mode page X exists, and the mode page X is acquired.
Step 2: and acquiring a linked list mode page Y corresponding to the page node with the highest priority from the mode page management linked list.
In connection with fig. 12, it is assumed that a page node corresponding to a linked list page Y is A3, the page node A3 is a page node with the highest priority in a linked list for managing a page in a linked list mode, meanwhile, the page Y in the linked list mode is an aging page type, and a time node corresponding to the page Y in the linked list mode is T3.
Step 3: and determining the priority between the target mode page X and the linked list mode page Y based on the mode page processing matrix.
In the embodiment of the application, the processing mode between the target mode page X and the linked list mode page Y in the mode page processing matrix is assumed to be [ old: vanish; new: just in), the target page X is considered to be immediately displayed, and the linked list page Y is considered to be the page disappearance.
Step 4: and judging whether the target mode page X is an aging page type.
The aging page type means the mode page with the set time length, and the set time length means the time range of the mode page which allows delay display.
Step 5: if the target page is of the aging page type, adding a time node T2 corresponding to the target page into a page time management linked list of the mode, and adding a page node K corresponding to the target page X into the page time management linked list of the mode.
It should be noted that, if the target page is an invalid page, the corresponding time node T2 needs to be added into the page time management linked list, so as to facilitate subsequent aging management.
Step 6: if the target page X is not the aging page type, directly adding the page node K corresponding to the target page X into a page management linked list of the mode.
Step 7: and refreshing the page management linked list of the mode and executing the page node with the highest priority.
In the embodiment of the application, if the page node with the highest priority is the page node K corresponding to the target page X, the page node K needs to be executed, and the linked list page Y is switched to the target page X.
It should be noted that, since the processing mode of the modal page processing matrix for the linked list modal page Y is that the page disappears, the page node T3 corresponding to the linked list modal page Y needs to be deleted from the modal page management linked list, which can refer to the page node A3 in fig. 12, and meanwhile, the corresponding time node A3 in the modal page time management linked list needs to be deleted.
It should be noted that, if the countdown is performed based on the set duration corresponding to the time node at the end of the link in the mode page time management linked list, when the countdown is 0 and the mode page corresponding to the time node is still not displayed, the page node corresponding to the mode page is deleted from the mode page management linked list, which may refer to the time node T5 and the page node C2 corresponding to the time node T5 shown in fig. 12, the time node T5 is deleted from the mode page time management linked list, and the page node C2 is deleted from the mode page management linked list.
In the embodiment of the application, the processing priority of the target mode page and the linked list mode page is judged through the mode page processing matrix so as to realize the switching between the linked list mode page and the target mode page, the judgment basis of the priority of other application pages is not required to be integrated into the business logic of each application page, the decoupling between the business logic is realized, the complexity is reduced, the development difficulty is further reduced, and the maintenance is convenient. In addition, the timeliness of each mode page is managed through the mode page time management linked list, so that the condition of overtime display is avoided.
The technical solution of the present embodiment may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in the respective embodiments. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The embodiment of the application also provides a computer program product, which comprises instructions; when the instruction is executed by the electronic device, the electronic device is caused to execute the application page display method described in the above embodiment.

Claims (11)

1. A method for displaying an application page, the method comprising:
when the first application page is in a display state, a display request is received; the display request is used for displaying a second application page; the second application page is a page generated by non-user triggering;
determining display priorities of the first application page and the second application page from a page processing matrix; the page processing matrix comprises display priorities of a plurality of different application pages, and the plurality of different application pages at least comprise the first application page and the second application page;
when the display priority indicates that the first application page is prior to the second application page, maintaining the display state of the first application page;
and when the display priority indicates that the second application page is prioritized over the first application page, switching from displaying the first application page to displaying the second application page.
2. The display method according to claim 1, wherein the first application page and the second application page are application pages managed by a page management linked list; the page management linked list comprises a first page node corresponding to the first application page, and after the display priority of the first application page and the second application page is determined, the method further comprises:
and adding a corresponding second page node of the second application page in the page management linked list.
3. The method of claim 2, wherein adding the corresponding second page node of the second application page in the page management linked list comprises:
when the display priority indicates that the second application page is prioritized over the first application page, adding the second page node to a first position in the page management linked list; the priority of the page node corresponding to the first position is higher than that of the first page node;
before switching from displaying the first application page to displaying the second application page, the method further comprises:
and executing the second page node in the page management linked list.
4. The method of claim 2, wherein adding the corresponding second page node of the second application page in the page management linked list comprises:
when the display priority indicates that the first application page is prioritized over the second application page, adding the second page node to a second position in the page management linked list; the priority of the page node corresponding to the second position is lower than that of the first page node;
when maintaining the display state of the first application page, the method further comprises:
and continuing to execute the first page node in the page management linked list.
5. The presentation method of claim 2, wherein before the first application page is in a presentation state, the method further comprises:
executing the first page node in the page management linked list; before the first application page is displayed, the first page node is a page node with the highest priority among page nodes corresponding to a plurality of application pages in the page management linked list.
6. The presentation method of claim 1, wherein after prioritizing presentation of the first application page and the second application page relative to each other, the method further comprises:
Judging whether the second application page is a page of an aging page type or not; the aging page type indication page has set aging; the set aging indication page allows a time range for delay display;
if the second application page is a page of an aging page type, judging whether the second application page is displayed in the set aging;
and if the second application page is not displayed in the set time period, canceling displaying the second application page.
7. The display method according to claim 6, wherein the aging page type is a page managed by a time management linked list; after determining that the second application page is an aging type page, the method further includes:
adding a time node corresponding to the second application page in the time management linked list; and the time node comprises set timeliness corresponding to the second application page.
8. The presentation method of claim 7, wherein after maintaining the presentation state of the first application page when the presentation priority indicates that the first application page is prioritized over the second application page, further comprising:
Judging whether the set time period corresponding to the second application page is exceeded or not, and judging whether the second application page is displayed or not;
if the set time limit corresponding to the second application page is exceeded and the second application page is not displayed, deleting the time node in the time management linked list and deleting a second page node corresponding to the second application page in the page management linked list; the page management linked list is used for managing a plurality of application pages, and the second application pages are included in the plurality of application pages; before the second application page is deleted, the page management linked list contains the second page node.
9. The display method according to any one of claims 1-8, wherein different rows of the page processing matrix represent different application pages, different columns of the page processing matrix represent different application pages, and elements of the page processing matrix include: the processing mode of the application page represented by the column of the element and the application page represented by the row of the element;
the determining, from the page processing matrix, a display priority of the first application page and the second application page, including:
Determining a processing mode of the first application page and the second application page from the page processing matrix by taking the first application page as a row index and the second application page as a column index; the processing mode of the first application page and the second application page comprises the following steps: a first processing mode of the first application page and a second processing mode of the second application page; the first processing mode and the second processing mode both represent the priority degree of the display processing of the corresponding application page;
and determining the display priority of the first application page and the second application page according to the first processing mode and the second processing mode.
10. An electronic device, comprising: the device comprises a display screen, a processor and a memory;
the display screen is used for displaying an application page;
wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the method of presentation of an application page as claimed in any one of claims 1 to 9.
11. A computer storage medium comprising computer instructions which, when run on an electronic device, perform the method of presentation of an application page according to any one of claims 1 to 9.
CN202311097280.8A 2023-08-29 2023-08-29 Application page display method Pending CN116841686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311097280.8A CN116841686A (en) 2023-08-29 2023-08-29 Application page display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311097280.8A CN116841686A (en) 2023-08-29 2023-08-29 Application page display method

Publications (1)

Publication Number Publication Date
CN116841686A true CN116841686A (en) 2023-10-03

Family

ID=88165564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311097280.8A Pending CN116841686A (en) 2023-08-29 2023-08-29 Application page display method

Country Status (1)

Country Link
CN (1) CN116841686A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635734A (en) * 2003-12-29 2005-07-06 北京中视联数字系统有限公司 A method for receiving network pages by using buffer in digital television data broadcasting system
US8347228B1 (en) * 2009-06-08 2013-01-01 Sprint Communications Company L.P. User interface screen presentation prioritization
CN104166687A (en) * 2014-07-28 2014-11-26 东方通信股份有限公司 Subscription type device access method based on low power consumption
CN106020601A (en) * 2016-05-16 2016-10-12 乐视控股(北京)有限公司 Interface display management method and device
CN106886570A (en) * 2017-01-16 2017-06-23 网宿科技股份有限公司 page processing method and device
CN108829469A (en) * 2018-04-18 2018-11-16 北京奇艺世纪科技有限公司 A kind of application program page methods of exhibiting and device
CN109828846A (en) * 2017-11-23 2019-05-31 电子科技大学中山学院 Processing method for GStream error of QML video playing
CN113282388A (en) * 2021-04-26 2021-08-20 惠州市德赛西威汽车电子股份有限公司 Method for globally regulating and controlling service logic based on logic matrix table and vehicle-mounted system
CN113407272A (en) * 2021-06-03 2021-09-17 维沃移动通信有限公司 Display method and device
CN116088770A (en) * 2023-03-20 2023-05-09 苏州浪潮智能科技有限公司 Data management method, device, system, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1635734A (en) * 2003-12-29 2005-07-06 北京中视联数字系统有限公司 A method for receiving network pages by using buffer in digital television data broadcasting system
US8347228B1 (en) * 2009-06-08 2013-01-01 Sprint Communications Company L.P. User interface screen presentation prioritization
CN104166687A (en) * 2014-07-28 2014-11-26 东方通信股份有限公司 Subscription type device access method based on low power consumption
CN106020601A (en) * 2016-05-16 2016-10-12 乐视控股(北京)有限公司 Interface display management method and device
CN106886570A (en) * 2017-01-16 2017-06-23 网宿科技股份有限公司 page processing method and device
CN109828846A (en) * 2017-11-23 2019-05-31 电子科技大学中山学院 Processing method for GStream error of QML video playing
CN108829469A (en) * 2018-04-18 2018-11-16 北京奇艺世纪科技有限公司 A kind of application program page methods of exhibiting and device
CN113282388A (en) * 2021-04-26 2021-08-20 惠州市德赛西威汽车电子股份有限公司 Method for globally regulating and controlling service logic based on logic matrix table and vehicle-mounted system
CN113407272A (en) * 2021-06-03 2021-09-17 维沃移动通信有限公司 Display method and device
CN116088770A (en) * 2023-03-20 2023-05-09 苏州浪潮智能科技有限公司 Data management method, device, system, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汤迪斌 等: "收入导向的电子商务网站队列管理策略", 计算机工程, vol. 35, no. 05, pages 240 - 242 *

Similar Documents

Publication Publication Date Title
US10853979B2 (en) Electronic device and method for displaying screen thereof
KR102148948B1 (en) Multi tasking method of electronic apparatus and electronic apparatus thereof
WO2022089207A1 (en) Cross-device application interaction method, electronic device, and server
CN116009977A (en) Notification processing method, chip, electronic device and computer-readable storage medium
CN112732434A (en) Application management method and device
WO2023005751A1 (en) Rendering method and electronic device
CN113760191B (en) Data reading method, data reading apparatus, storage medium, and program product
CN114257502B (en) Log reporting method and device
CN116841686A (en) Application page display method
CN116095230B (en) Application program recommendation method, terminal device and readable storage medium
CN116738073B (en) Method, equipment and storage medium for identifying residence
CN116339562B (en) Shortcut input method and electronic device
CN116088955B (en) Process processing method and terminal equipment
WO2022267786A1 (en) Shortcut icon display method and terminal device
CN116089320B (en) Garbage recycling method and related device
CN115017473B (en) Authorization method and electronic equipment
CN115767602B (en) Automatic error correction method for equipment protocol subsystem abnormality and electronic equipment
CN116028707B (en) Service recommendation method, device and storage medium
CN117009023B (en) Method for displaying notification information and related device
CN116541188A (en) Notification display method, terminal device and storage medium
CN117707453A (en) Method, equipment and storage medium for reading node information
CN117130696A (en) Interface jumping method, device and storage medium of application program
CN117724825A (en) Interface display method and electronic equipment
CN117668350A (en) Application recommendation method and related device
CN117632322A (en) Page management method and electronic equipment

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