CN110659082A - Application program interface display method and device, terminal and storage medium - Google Patents

Application program interface display method and device, terminal and storage medium Download PDF

Info

Publication number
CN110659082A
CN110659082A CN201910856424.0A CN201910856424A CN110659082A CN 110659082 A CN110659082 A CN 110659082A CN 201910856424 A CN201910856424 A CN 201910856424A CN 110659082 A CN110659082 A CN 110659082A
Authority
CN
China
Prior art keywords
interface
application program
terminal
application
display
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
CN201910856424.0A
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910856424.0A priority Critical patent/CN110659082A/en
Publication of CN110659082A publication Critical patent/CN110659082A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The application relates to the technical field of terminals, in particular to a display method and device of an application program interface, a terminal and a storage medium. The display method of the application program interface is characterized by comprising the following steps: receiving an interface display instruction aiming at a first application program; drawing an interface of the first application program in response to the interface display instruction; if the duration of the interface which is not displayed currently exceeds a first preset duration, judging whether the interface of the first application program is drawn or not; and if so, displaying the interface of the first application program. According to the method and the device, the duration of the current undisplayed interface exceeds the first preset duration, when the interface of the first application program is judged to be drawn, the interface of the first application program can be displayed, the duration of the undisplayed interface of the first application program can be reduced, the black screen time of the display interface of the terminal can be reduced, and the terminal can be prevented from being in the black screen state all the time.

Description

Application program interface display method and device, terminal and storage medium
Technical Field
The application relates to the technical field of terminals, in particular to a display method and device of an application program interface, a terminal and a storage medium.
Background
With the development of scientific technology, terminals have an increasingly important position in the life of users. With the continuous expansion of the terminal memory, more and more applications are installed in the terminal. When a user needs to use a certain application program, the icon corresponding to the application program can be clicked on the display interface of the terminal. When the terminal detects that the user clicks the icon and the terminal fails to start the application program, the terminal is always in a black screen state.
Disclosure of Invention
The embodiment of the application program interface display method and device, the terminal and the storage medium can prevent the terminal from being in a black screen state all the time.
In a first aspect, an embodiment of the present application provides a method for displaying an application program interface, where the method includes:
receiving an interface display instruction aiming at a first application program;
drawing an interface of the first application program in response to the interface display instruction;
if the duration of the interface which is not displayed currently exceeds a first preset duration, judging whether the interface of the first application program is drawn or not;
and if so, displaying the interface of the first application program.
In a second aspect, an embodiment of the present application provides a display device for an application program interface, including:
the instruction receiving unit is used for receiving an interface display instruction aiming at the first application program;
the interface drawing unit is used for drawing the interface of the first application program in response to the interface display instruction;
the interface judging unit is used for judging whether the interface of the first application program is drawn or not if the duration of the currently undisplayed interface exceeds a first preset duration;
and the interface display unit is used for displaying the interface of the first application program if the first application program is the application program.
In a third aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method described in any one of the above when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method of any one of the above.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application provides a display method of an application program interface, which comprises the following steps: receiving an interface display instruction aiming at the first application program, drawing an interface of the first application program in response to the interface display instruction, judging whether the drawing of the interface of the first application program is finished or not if the duration of the interface which is not displayed currently exceeds a first preset duration, and displaying the interface of the first application program if the drawing of the interface of the first application program is finished. According to the method and the device, the duration of the current undisplayed interface exceeds the first preset duration, when the interface of the first application program is judged to be drawn, the interface of the first application program can be displayed, the duration of the undisplayed interface of the first application program can be reduced, the black screen time of the display interface of the terminal can be reduced, and the terminal can be prevented from being in the black screen state all the time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 shows an interface schematic diagram of a terminal according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for displaying an application program interface according to an embodiment of the present disclosure;
FIG. 3 illustrates an interface diagram of a terminal according to another embodiment of the present application;
FIG. 4 illustrates an interface diagram of a terminal according to another embodiment of the present application;
FIG. 5 is a flowchart illustrating a method for displaying an application program interface according to another embodiment of the present application;
FIG. 6 illustrates an interface diagram of a terminal according to another embodiment of the present application;
FIG. 7 is a schematic structural diagram of a display device of an application program interface according to an embodiment of the present application;
fig. 8 shows a schematic structural diagram of a terminal provided in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
With the rapid development of terminal technology, a user can install an application program required by the user on a terminal, and a display interface of the terminal can be as shown in fig. 1. When a user needs to use a certain application program, the user can click an icon of the application program on a display interface of the terminal. When the terminal detects that the user clicks the icon, the terminal can start the application program. After the terminal successfully starts the application program, the display interface of the terminal can display the interface of the application program. The operating system of the terminal may be, for example, an android system.
According to some embodiments, the user may send interface display instructions to the terminal. The interface display instructions include, but are not limited to, voice interface display instructions. For example, when the terminal detects that the user clicks an icon of a certain application, the terminal may open an interface corresponding to the application. If various abnormalities occur in the process of opening the application program interface by the terminal, the display screen of the terminal is always in a black screen state. For example, when a user uses a wechat application to perform a voice chat, an icon of the wechat application may be clicked on a display screen of the terminal. And when the terminal detects that the user clicks the icon of the WeChat application program, starting the WeChat application program. When the number of the running applications in the terminal is large and the terminal cannot display the interface of the WeChat application, the display screen of the terminal is always in a black screen state at the moment. When a user worried to use the application program, the display screen of the terminal can not display the interface of the application program, so that the terminal is prevented from being in a black screen state all the time.
Optionally, in the android system, when the terminal displays the interface of the T application, the terminal may start the interface a of the T application by calling the interface startActivity of the system entity management server AMS, and the like. The AMS needs to pull up the process of the T application program corresponding to the interface A. After the process of the T application program is started, the terminal can call the AMS to respond to various life cycles of the T application program and draw an interface of the A interface. When the entity management server AMS finishes drawing the a interface, a window management server WMS of the system may be notified. The terminal can call the window management server WMS to display the interface A on a display screen of the terminal according to the information that the interface A finishes drawing, and at the moment, the display interface of the terminal can display the interface A. If the terminal calls the process of the entity management server AMS in executing the T application program corresponding to the interface A to generate an exception, the entity management server AMS does not finish drawing the interface A, or the terminal calls the window management server WMS to display the interface A and the timeout time of forced switching of the interface is passed, the terminal is always in a black screen state.
It is easy to understand that, in the embodiment of the present application, when it is determined that the time duration of the currently undisplayed interface exceeds the first preset time duration, the interface of the first application program may be displayed, the time duration of the undisplayed interface of the first application program may be reduced, the time for the terminal to display the interface on the terminal on the black screen may be reduced, and then the terminal may be prevented from being in the black screen state all the time.
Fig. 2 is a flowchart illustrating a display method of an application program interface according to an embodiment of the present application.
It should be noted that the display method of the application program interface in the embodiment of the present application may be applied to an unlocking device, and the display method of the application program interface may be configured in a terminal. Wherein the terminal may be various electronic devices having a display screen, including but not limited to a smart phone, a tablet computer, and the like.
As shown in fig. 2, the display method of the application program interface includes:
at S101, an interface display instruction for a first application is received.
According to some embodiments, the first application may refer to any application installed by the terminal. The "first" does not refer to a certain application installed in the terminal, nor does the "first" define the order of the applications. For example, the first application may be a WeChat application and the first application may also be a QQ application.
It is easy to understand that when the user uses the first application program on the terminal, the user can send an interface display instruction for the first application program to the terminal. When the terminal detects an interface display instruction aiming at a first application program sent by a user, the interface display instruction aiming at the first application program is received. The interface display instruction may be, for example, a voice interface display instruction sent by the user for the first application, and the interface display instruction may also be, for example, an interface display instruction of a click or a slide of the user for the first application.
Optionally, when the user needs to use the DDD microblog to watch some entertainment news, the user may send a voice interface display instruction for opening the DDD microblog. The voice interface display instruction may be, for example, "display the top page of the DDD microblog". And when the terminal detects the voice interface display instruction sent by the user, receiving the voice interface display instruction of displaying the home page of the DDD microblog.
At S102, an interface of the first application is drawn in response to the interface display instruction.
According to some embodiments, when the terminal receives an interface display instruction for the first application program, the interface display instruction may be analyzed, and interface display information in the interface display instruction may be acquired. The terminal can display a corresponding interface according to the acquired interface display information. The terminal receives the interface display instruction, for example, the interface display instruction may be a voice interface display instruction of "displaying a top page of a DDD microblog". When the terminal receives the voice interface display instruction, the terminal can recognize interface display information in the voice interface display instruction by adopting a voice recognition algorithm. And the terminal acquires the interface display information in the voice interface display instruction as a home page for displaying the DDD microblog. The terminal can display the home page of the DDD microblog on a display screen of the terminal according to the acquired interface display information, and the display interface of the terminal can be as shown in fig. 3 at this time.
It is easy to understand that, during the process of displaying the first application program interface, the terminal may load the first drawing canvas corresponding to the first application program. And when the first drawing canvas is loaded by the terminal, the first drawing canvas matched with the size of the display screen of the terminal can be loaded. The terminal may set a size of the first drawing canvas according to size information of a display screen of the terminal. The terminal can also set the size of the first drawing canvas based on the interface display information of the first application program. For example, the terminal may set the size of the first drawing canvas to 6 inches when the size information of the display screen of the terminal is 6.39 inches.
Optionally, the terminal may draw the first interface element on the first drawing canvas. The first interface element may be an interface element corresponding to the interface display information. The interface display information may be acquired by the terminal through analyzing the received interface display instruction for the first application program. The first interface element may include, for example, at least one of image information, audio information, video information, and text information. The interface display instruction for the first application program received by the terminal may be, for example, "display the top page of the DDD microblog". After the terminal receives the interface display instruction, the terminal can draw a first interface element liked by the user on the first drawing canvas according to the history of the user. For example, the user's history record includes a browsing record of the user watching a dancing video. The terminal may draw the link information of the dancing video of the first dancer of country B on the first drawing canvas according to the record, and a display interface of the terminal may be as shown in fig. 4.
In S103, if the duration of the currently undisplayed interface exceeds a first preset duration, it is determined whether the interface of the first application is completely drawn.
According to some embodiments, when the terminal receives an interface display instruction of the first application program, the terminal may display the interface of the first application program on a display screen of the terminal based on the interface display instruction. When the terminal starts to display the interface of the first application program, the terminal can detect whether the display interface of the display screen displays the interface of the first application program. And if the terminal detects that the time length of the interface which is not displayed currently exceeds a first preset time length, judging whether the interface of the first application program is drawn or not. Before the terminal detects whether the display interface of the display screen has the interface of the first application program, the terminal can set a first preset duration according to a setting instruction of a user. The first preset duration set by the terminal may be, for example, 2 seconds. When the time for acquiring the interface which is not displayed currently by the terminal exceeds the first preset time for 2 seconds, the terminal can judge whether the interface of the first application program is drawn or not.
It is easy to understand that, in the process of displaying the first application program interface by the terminal, the terminal may load a first drawing canvas corresponding to the first application program and draw the first interface element on the first drawing canvas. When the terminal detects that the duration of the currently undisplayed interface exceeds a first preset duration, the terminal can judge whether the interface of the first application program is drawn or not, and when the terminal detects that the duration of the currently undisplayed interface exceeds the first preset duration, the terminal can judge whether the drawing of the first interface element is finished or not.
Optionally, when the terminal determines whether the first interface element of the first drawing canvas is drawn, the terminal may obtain the preset interface of the first application program from the memory or the server, and determine whether the first interface element of the first drawing canvas is drawn according to the preset interface element in the preset interface. When the terminal judges whether the first interface element of the first drawing canvas is drawn, whether the image information of the first interface element corresponds to a preset interface element can be judged. For example, the preset interface element acquired by the terminal from the memory includes three Q character images. If the terminal detects that the duration of the currently undisplayed interface exceeds a first preset duration, and whether the interface of the first application program is drawn or not is judged, the terminal can judge whether a first interface element of the first drawing canvas corresponds to three Q character images or not.
In S104, if yes, the interface of the first application program is displayed.
According to some embodiments, when the terminal detects that the duration of the undisplayed interface exceeds the preset duration, whether the interface of the first application program is drawn or not can be judged. And if the judgment result of the terminal is that the interface of the first application program is drawn, displaying the interface of the first application program on a display screen of the terminal. For example, the instruction received by the terminal is 'display of the top page of the DDD microblog'. When the terminal detects that the time length of the currently detected interface which is not displayed exceeds a first preset time length, and the interface of the DDD microblog application program is judged to be drawn, the home page of the DDD microblog can be directly displayed.
It is easy to understand that when the terminal determines that the interface of the first application is not completely drawn, the interface of the second application can be directly displayed. The interface of the second application program is an interface displayed before the interface of the first application program, and the interface of the second application program can also be an interface of a program pre-designated by the terminal according to a user instruction.
According to some embodiments, before the terminal receives the interface display instruction for the WeChat application, the display interface of the terminal is displayed as the interface of the QQ application. And when the terminal receives an interface display instruction aiming at the WeChat application program, drawing an interface of the WeChat application program in response to the interface display instruction. If the terminal detects that the time length of the interface which is not displayed currently exceeds a first preset time length, the interface of the QQ application program can be directly displayed when the interface of the WeChat application program is judged not to be drawn.
Alternatively, "first," "second," and the like are used to distinguish between different objects and are not used to describe a particular order. For example, where the first application is a WeChat application, the second application may be a QQ application. For example, when the first application is a QQ application, the second application may be a WeChat application.
The embodiment of the application provides a display method of an application program interface, which comprises the following steps: receiving an interface display instruction aiming at the first application program, drawing an interface of the first application program in response to the interface display instruction, judging whether the drawing of the interface of the first application program is finished or not if the duration of the interface which is not displayed currently exceeds a first preset duration, and displaying the interface of the first application program if the drawing of the interface of the first application program is finished. According to the method and the device, the duration of the current undisplayed interface exceeds the first preset duration, when the interface of the first application program is judged to be drawn, the interface of the first application program can be displayed, the duration of the undisplayed interface of the first application program can be reduced, the black screen time of the display interface of the terminal can be reduced, and the terminal can be prevented from being in the black screen state all the time.
Fig. 5 is a flowchart illustrating a display method of an application program interface according to another embodiment of the present application.
As shown in fig. 5, the display method of the application program interface includes:
at S201, an interface display instruction for a first application is received.
The specific process is as described above, and is not described herein again.
At S202, an interface of the first application is drawn in response to the interface display instruction.
The specific process is as described above, and is not described herein again.
In S203, if the duration of the currently undisplayed interface exceeds a first preset duration, it is determined whether the interface of the first application is completely drawn.
The specific process is as described above, and is not described herein again.
In S204, if the interface of the first application is not completely drawn, the first application is restarted.
According to some embodiments, a Window Manager Service (WMS) is a server for managing window programs. The window management server can obtain the size of a display screen of the terminal, judge whether a status bar exists or not, lock the screen, intercept the screen and the like.
It is easy to understand that the terminal may determine whether the drawing of the interface of the first application is completed through the window management server WMS. When the terminal judges that the interface of the first application program is not drawn through the window management server WMS, the terminal can send an incomplete indication message to the entity management server AMS through the window management server WMS. For example, when the terminal determines that the first interface element of the first drawing canvas of the wechat application is not completely drawn through the window management server WMS, the incomplete indication message sent to the entity management server AMS through the window management server WMS may be, for example, a message that the first interface element of the first drawing canvas of the wechat application is not completely drawn. The unfinished indication message is used for indicating the entity management server AMS to restart the first application program.
Alternatively, the terminal may receive an unfinished indication message from the window management server WMS through the entity management server AMS. When the terminal detects that the entity management server AMS receives the unfinished indication information, the first application may be restarted by the entity management server AMS in response to the unfinished indication information. For example, the uncompleted instruction message, which is sent by the terminal to the entity management server AMS through the window management server WMS, may be, for example, a message that the first interface element of the first drawing canvas of the WeChat application has not been drawn. When the terminal receives an unfinished indication message from the window management server WMS through the entity management server AMS, the terminal may restart the WeChat application in response to the unfinished indication message through the entity management server AMS, based on the received unfinished indication message.
In S205, the first application program is killed when it is detected that the restart duration of the interface of the first application program exceeds a second preset duration.
According to some embodiments, the second preset duration set by the terminal may be consistent with the first preset duration, and the second preset duration set by the terminal may also be inconsistent with the second preset market. For example, when the first preset duration set by the terminal is 2 seconds, the second preset duration set by the terminal may also be 2 seconds. For example, when the first preset duration set by the terminal is 2 seconds, the second preset duration set by the terminal may be 3 seconds.
It is easy to understand that, after the terminal restarts the first application program, it is detected whether the restart duration of the interface of the first application program exceeds a second preset duration. And when the terminal detects that the restarting duration of the interface of the first application program exceeds a second preset duration, killing the first application program. For example, the second preset time period set by the terminal may be 2 seconds. And when the terminal detects that the restarting duration of the interface of the first application program exceeds 2 seconds, the terminal kills the first application program. The terminal killing the first application may be the terminal closing the first application.
At S206, an interface of the second application is displayed.
According to some embodiments, after the terminal kills the first application, the terminal may display an interface of the second application. Wherein the interface of the second application may be an interface displayed before the interface of the first application. Before the terminal does not receive an interface display instruction aiming at the WeChat application program, the display interface of the terminal is displayed as the interface of the QQ application program. And when the terminal receives an interface display instruction aiming at the WeChat application program, drawing an interface of the WeChat application program in response to the interface display instruction. And if the terminal detects that the time length of the interface which is not displayed currently exceeds a first preset time length, the WeChat application program can be restarted when the interface of the WeChat application program is judged not to be drawn. And when the terminal detects that the restart duration of the interface of the WeChat application program exceeds a second preset duration, killing the WeChat application program and displaying the interface of the QQ application program.
It will be readily appreciated that a second drawing canvas corresponding to a second application may be loaded before the terminal kills the first application. And when the terminal finishes loading the second drawing canvas, drawing a second interface element on the second drawing canvas. When the terminal kills the first application and detects that the second interface element is finished being drawn, a second drawing canvas can be displayed. For example, the drawing canvas of the QQ application may be loaded before the terminal kills the WeChat application. When the drawing canvas of the QQ application program is loaded by the terminal, the interface element of the QQ application program can be drawn on the drawing canvas of the QQ application program. And when the terminal kills the WeChat application program and detects that the interface element of the QQ application program is completely drawn, displaying the drawing canvas of the QQ application program.
At S207, a prompt message is issued.
According to some embodiments, when the terminal detects that the restart duration of the interface of the first application exceeds the second preset duration, the first application may be killed, and the interface of the second application may be displayed. At this time, the terminal can send out prompt information, and the prompt information can be the state of the current display screen which is more conveniently seen by the user, so that the user can conveniently operate the application program. The display interface of the terminal at this time may be as shown in fig. 6. The prompt information comprises prompt information of interface display failure of the first application program and prompt information of displaying an interface of the second application program. For example, the prompt message can be a prompt message for displaying the interface display failure of the WeChat application program and a prompt message for displaying the interface of the QQ application program.
The embodiment of the application provides a display method of an application program interface, which comprises the following steps: receiving an interface display instruction aiming at a first application program, drawing an interface of the first application program in response to the interface display instruction, judging whether the drawing of the interface of the first application program is finished if the time length of the interface which is not displayed currently exceeds a first preset time length, restarting the first application program if the drawing of the interface of the first application program is not finished, killing the first application program and displaying the interface of a second application program if the restarting time length of the interface of the first application program exceeds a second preset time length. According to the method and the device, when the situation that the interface of the first application is not drawn is detected, the first application is restarted, the situation that the restarting duration of the interface of the first application exceeds the second preset duration is detected, the first application is killed, the interface of the second application can be displayed, the duration that the interface of the first application is not displayed can be reduced, the black screen time of the display interface of the terminal can be reduced, and the situation that the terminal is in the black screen state all the time can be avoided.
The above description mainly introduces the scheme of the embodiment of the present application from the perspective of executing processes on the method side. It is understood that the terminal and the server include hardware structures and/or software modules for performing the respective functions in order to implement the above functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the server may be divided into the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 7 is a schematic structural diagram illustrating a display device of an application interface according to an embodiment of the present application.
As shown in fig. 7, the control device 700 for the application includes: an instruction receiving unit 701, an interface drawing unit 702, an interface judging unit 703 and an interface display unit 704, wherein:
an instruction receiving unit 701 configured to receive an interface display instruction for a first application;
an interface drawing unit 702 for drawing an interface of the first application in response to the interface display instruction;
an interface determining unit 703, configured to determine whether the interface of the first application is drawn or not if the duration of the currently undisplayed interface exceeds a first preset duration;
and the interface display unit 704 is used for displaying the interface of the first application program if the first application program is the application program.
According to some embodiments, the interface drawing unit 702, when drawing the interface of the first application program in response to the interface display instruction, is specifically configured to:
loading a first drawing canvas corresponding to a first application program;
drawing a first interface element on a first drawing canvas;
the interface determining unit 703 is configured to, if the duration of the currently undisplayed interface exceeds a first preset duration, determine whether the interface of the first application is completely drawn, and specifically:
and judging whether the drawing of the first interface element is finished or not when the time length of the current undisplayed interface is detected to exceed the first preset time length.
According to some embodiments, the display device 700 of the application interface further comprises: a program restarting unit 705, configured to restart the first application program if the interface of the first application program is not finished being drawn;
killing the first application program when detecting that the restarting duration of the interface of the first application program exceeds a second preset duration;
displaying an interface of a second application program;
and the interface of the second application program is the interface displayed before the interface of the first application program.
According to some embodiments, the program restarting unit 705 is further configured to determine, by the window management server WMS, whether the drawing of the interface of the first application program is completed, and if not, send an unfinished indication message to the entity management server AMS by the WMS;
the incomplete indication message is used for indicating the AMS to restart the first application program;
receiving an incomplete indication message from the WMS through an entity management server AMS;
the first application is restarted in response to the incomplete indication message by the AMS.
According to some embodiments, the display device 700 of the application interface further comprises: an information sending unit 706, configured to send a prompt message;
the prompt information comprises prompt information of interface display failure of the first application program and prompt information of displaying an interface of the second application program.
According to some embodiments, the interface display unit 704 is further configured to load a second drawing canvas corresponding to a second application program;
drawing a second interface element on a second drawing canvas;
and displaying the second drawing canvas when the second interface element is detected to be drawn.
According to some embodiments, the interface display unit 704 is further configured to:
when the interface of the first application program is judged not to be drawn, displaying the interface of the second application program;
and the interface of the second application program is the interface displayed before the interface of the first application program.
An embodiment of the present application provides a display device for an application program interface, including: the instruction receiving unit is used for receiving an interface display instruction aiming at the first application program; the interface drawing unit is used for drawing an interface of the first application program in response to the interface display instruction; the interface judging unit is used for judging whether the interface of the first application program is drawn or not if the duration of the currently undisplayed interface exceeds a first preset duration; and the interface display unit is used for displaying the interface of the first application program if the first application program is the interface of the second application program. According to the method and the device, the duration of the current undisplayed interface exceeds the first preset duration, when the interface of the first application program is judged to be drawn, the interface of the first application program can be displayed, the duration of the undisplayed interface of the first application program can be reduced, the black screen time of the display interface of the terminal can be reduced, and the terminal can be prevented from being in the black screen state all the time.
Please refer to fig. 8, which is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
As shown in fig. 8, the terminal 800 may include: at least one processor 801, at least one network interface 804, a user interface 803, a memory 805, at least one communication bus 802.
Wherein a communication bus 802 is used to enable connective communication between these components.
The user interface 803 may include a Display screen (Display) and an antenna, and the optional user interface 803 may also include a standard wired interface and a wireless interface.
The network interface 804 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Processor 801 may include one or more processing cores, among other things. The processor 801 connects various parts within the overall server farm 800 using various interfaces and lines, and performs various functions of the terminal 800 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 805, as well as invoking data stored in the memory 805. Alternatively, the processor 801 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 801 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is to be understood that the modem may not be integrated into the processor 801, but may be implemented by a single chip.
The Memory 805 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 805 includes a non-transitory computer-readable medium. The memory 805 may be used to store instructions, programs, code sets, or instruction sets. The memory 805 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 805 may optionally be at least one memory device located remotely from the processor 801 as previously described. As shown in fig. 8, the memory 805, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a display program for an application program interface.
In the terminal 800 shown in fig. 8, the processor 801 may be configured to call an application program stored in the memory 805, and specifically perform the following operations:
the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
In the terminal 800 shown in fig. 8, the user interface 803 is mainly used for providing an input interface for a user to obtain data input by the user; the processor 801 may be configured to invoke an application program of the display method of the application program interface in the memory 805, and specifically perform the following operations:
receiving an interface display instruction aiming at a first application program;
drawing an interface of the first application program in response to the interface display instruction;
if the duration of the interface which is not displayed currently exceeds a first preset duration, judging whether the interface of the first application program is drawn or not;
if so, displaying the interface of the first application program.
In one embodiment, when the processor executes the interface drawing of the first application program in response to the interface display instruction, the following steps are specifically performed:
loading a first drawing canvas corresponding to a first application program;
drawing a first interface element on a first drawing canvas;
if the duration of the currently undisplayed interface exceeds a first preset duration, judging whether the interface of the first application program is drawn or not comprises the following steps:
and judging whether the drawing of the first interface element is finished or not when the time length of the current undisplayed interface is detected to exceed the first preset time length.
In one embodiment, the processor is further configured to perform the steps of:
if the interface of the first application program is not drawn, restarting the first application program;
killing the first application program when detecting that the restarting duration of the interface of the first application program exceeds a second preset duration;
displaying an interface of a second application program;
and the interface of the second application program is the interface displayed before the interface of the first application program.
In one embodiment, when the processor executes the first application program and restarts the first application program if the interface of the first application program is not completely drawn, the following steps are specifically executed:
judging whether the interface of the first application program is drawn or not through a window management server WMS, and if not, sending an unfinished indication message to an entity management server AMS through the WMS;
the incomplete indication message is used for indicating the AMS to restart the first application program;
receiving an incomplete indication message from the WMS through an entity management server AMS;
the first application is restarted in response to the incomplete indication message by the AMS.
In one embodiment, the processor is further configured to perform the steps of:
sending out prompt information;
the prompt information comprises prompt information of interface display failure of the first application program and prompt information of displaying an interface of the second application program.
In one embodiment, the processor is further configured to perform the steps of:
loading a second drawing canvas corresponding to a second application program;
drawing a second interface element on a second drawing canvas;
and displaying the second drawing canvas when the second interface element is detected to be drawn.
In one embodiment, the processor is further configured to perform the steps of:
when the interface of the first application program is judged not to be drawn, displaying the interface of the second application program;
and the interface of the second application program is the interface displayed before the interface of the first application program.
An embodiment of the present application provides a terminal, including: receiving an interface display instruction aiming at the first application program, drawing an interface of the first application program in response to the interface display instruction, judging whether the drawing of the interface of the first application program is finished or not if the duration of the interface which is not displayed currently exceeds a first preset duration, and displaying the interface of the first application program if the drawing of the interface of the first application program is finished. The terminal of the embodiment of the application can display the interface of the first application program when judging that the drawing of the interface of the first application program is completed through the fact that the duration of the interface which is not displayed at present exceeds the first preset duration, the duration of the interface which is not displayed by the first application program can be reduced, the black screen time of the display interface of the terminal can be reduced, and the terminal can be prevented from being in the black screen state all the time.
Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform part or all of the steps of any one of the application program interface display methods as described in the above method embodiments.
It is clear to a person skilled in the art that the solution of the present application can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, a Field-ProgrammaBLE gate array (FPGA), an Integrated Circuit (IC), or the like.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some microservice interface, and may be an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program, which is stored in a computer-readable memory, and the memory may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above description is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure should not be limited thereby. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure are intended to be included within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A display method of an application program interface is characterized by comprising the following steps:
receiving an interface display instruction aiming at a first application program;
drawing an interface of the first application program in response to the interface display instruction;
if the duration of the interface which is not displayed currently exceeds a first preset duration, judging whether the interface of the first application program is drawn or not;
and if so, displaying the interface of the first application program.
2. The method of claim 1, wherein said rendering the interface of the first application in response to the interface display instruction comprises:
loading a first drawing canvas corresponding to the first application program;
drawing a first interface element on the first drawing canvas;
wherein, if the duration of the currently undisplayed interface exceeds a first preset duration, determining whether the interface of the first application program is completely drawn comprises:
and judging whether the drawing of the first interface element is finished or not when the time length of the current undisplayed interface is detected to exceed a first preset time length.
3. The method of claim 1, wherein the method further comprises:
if the interface of the first application program is not drawn, restarting the first application program;
killing the first application program when detecting that the restarting duration of the interface of the first application program exceeds a second preset duration;
displaying an interface of a second application program;
and the interface of the second application program is an interface displayed before the interface of the first application program.
4. The method of claim 3, wherein the restarting the first application if the interface of the first application is not finished drawing comprises:
judging whether the interface of the first application program is drawn or not through a window management server WMS, and if not, sending an unfinished indication message to an entity management system (AMS) through the WMS;
wherein the incomplete indication message is used to indicate the AMS to restart the first application;
receiving, by the entity management server AMS, an incomplete indication message from the WMS;
restarting, by the AMS, the first application in response to the incomplete indication message.
5. The method of claim 3 or 4, further comprising:
sending out prompt information;
the prompt information comprises prompt information of interface display failure of the first application program and prompt information of displaying an interface of the second application program.
6. The method of claim 4, wherein the method further comprises:
loading a second drawing canvas corresponding to the second application program;
drawing a second interface element on the second drawing canvas;
and displaying the second drawing canvas when the second interface element is detected to be drawn.
7. The method of claim 1, wherein the method further comprises:
when the interface of the first application program is judged not to be drawn, displaying the interface of the second application program;
and the interface of the second application program is an interface displayed before the interface of the first application program.
8. A display device for an application program interface, comprising:
the instruction receiving unit is used for receiving an interface display instruction aiming at the first application program;
the interface drawing unit is used for drawing the interface of the first application program in response to the interface display instruction;
the interface judging unit is used for judging whether the interface of the first application program is drawn or not if the duration of the currently undisplayed interface exceeds a first preset duration;
and the interface display unit is used for displaying the interface of the first application program if the first application program is the application program.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of the preceding claims 1 to 7.
CN201910856424.0A 2019-09-11 2019-09-11 Application program interface display method and device, terminal and storage medium Pending CN110659082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910856424.0A CN110659082A (en) 2019-09-11 2019-09-11 Application program interface display method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910856424.0A CN110659082A (en) 2019-09-11 2019-09-11 Application program interface display method and device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110659082A true CN110659082A (en) 2020-01-07

Family

ID=69036935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910856424.0A Pending CN110659082A (en) 2019-09-11 2019-09-11 Application program interface display method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110659082A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650465A (en) * 2021-01-12 2021-04-13 北京字节跳动网络技术有限公司 Terminal control method and device, terminal and storage medium
CN115344860A (en) * 2022-07-28 2022-11-15 荣耀终端有限公司 Method for managing application program and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120215838A1 (en) * 2011-02-22 2012-08-23 Siemens Aktiengesellschaft Optimization of a software application implemented on a client-server system
CN104639725A (en) * 2013-11-08 2015-05-20 腾讯科技(深圳)有限公司 Interface switching method and device
CN106598783A (en) * 2016-12-06 2017-04-26 广东欧珀移动通信有限公司 Intelligent terminal display control method and device and intelligent terminal
CN107748686A (en) * 2017-11-30 2018-03-02 广东欧珀移动通信有限公司 Starting guide method, apparatus, storage medium and the intelligent terminal of application program
CN108255561A (en) * 2018-01-15 2018-07-06 广东欧珀移动通信有限公司 The processing method of blank screen, device and computer readable storage medium during page layout switch
US20180210567A1 (en) * 2017-01-25 2018-07-26 Microsoft Technology Licensing, Llc Redrawing a user interface based on pen proximity
CN109144631A (en) * 2018-07-19 2019-01-04 Oppo(重庆)智能科技有限公司 Interface method for drafting, electronic device and computer readable storage medium
CN109218824A (en) * 2018-09-29 2019-01-15 视联动力信息技术股份有限公司 A kind of method and apparatus of business processing
CN109522082A (en) * 2018-11-27 2019-03-26 北京微播视界科技有限公司 Interface jump method, device, electronic equipment and the medium of application software
CN110096329A (en) * 2019-05-09 2019-08-06 Oppo广东移动通信有限公司 A kind of display contents controlling method, electronic device and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120215838A1 (en) * 2011-02-22 2012-08-23 Siemens Aktiengesellschaft Optimization of a software application implemented on a client-server system
CN104639725A (en) * 2013-11-08 2015-05-20 腾讯科技(深圳)有限公司 Interface switching method and device
CN106598783A (en) * 2016-12-06 2017-04-26 广东欧珀移动通信有限公司 Intelligent terminal display control method and device and intelligent terminal
US20180210567A1 (en) * 2017-01-25 2018-07-26 Microsoft Technology Licensing, Llc Redrawing a user interface based on pen proximity
CN107748686A (en) * 2017-11-30 2018-03-02 广东欧珀移动通信有限公司 Starting guide method, apparatus, storage medium and the intelligent terminal of application program
CN108255561A (en) * 2018-01-15 2018-07-06 广东欧珀移动通信有限公司 The processing method of blank screen, device and computer readable storage medium during page layout switch
CN109144631A (en) * 2018-07-19 2019-01-04 Oppo(重庆)智能科技有限公司 Interface method for drafting, electronic device and computer readable storage medium
CN109218824A (en) * 2018-09-29 2019-01-15 视联动力信息技术股份有限公司 A kind of method and apparatus of business processing
CN109522082A (en) * 2018-11-27 2019-03-26 北京微播视界科技有限公司 Interface jump method, device, electronic equipment and the medium of application software
CN110096329A (en) * 2019-05-09 2019-08-06 Oppo广东移动通信有限公司 A kind of display contents controlling method, electronic device and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650465A (en) * 2021-01-12 2021-04-13 北京字节跳动网络技术有限公司 Terminal control method and device, terminal and storage medium
CN115344860A (en) * 2022-07-28 2022-11-15 荣耀终端有限公司 Method for managing application program and electronic equipment
CN115344860B (en) * 2022-07-28 2023-10-10 荣耀终端有限公司 Method for managing application program and electronic equipment

Similar Documents

Publication Publication Date Title
CN106201574B (en) Application interface starting method and device
CN106227585B (en) Application program starting method, device and equipment
US11132123B2 (en) Key display method, terminal, and non-transitory computer-readable medium
US10691390B2 (en) Method and device for video rendering
CN104978180B (en) Unprocessed event prompting method and device and mobile terminal
CN109542744A (en) Detect method, apparatus, storage medium and the terminal of terminal booting abnormal problem
CN108174255B (en) Smart television starting method, smart television and computer readable storage medium
CN105160217A (en) Application control method for intelligent watch and intelligent watch
CN108668241B (en) Information reminding method and device, storage medium and electronic equipment
CN110659082A (en) Application program interface display method and device, terminal and storage medium
CN105530232B (en) Account login method and device
CN109213442B (en) File copying method, terminal device and computer readable storage medium
CN107621967B (en) Method and device for realizing system user interface
CN113938733A (en) Shortcut key control method and device for remote control equipment, storage medium and device
CN107920383B (en) Wireless hotspot connection method, mobile terminal and computer-readable storage medium
CN112465497A (en) Payment method, payment device, electronic equipment and medium
CN111194435A (en) Interface switching method, device, terminal and computer readable medium
CN109491655B (en) Input event processing method and device
CN107391267B (en) Process detection method and device, electronic equipment and readable storage medium
CN106681644B (en) Multi-open application method and system thereof
CN107968799B (en) Information acquisition method, terminal equipment and system
CN106302821B (en) Data request method and equipment thereof
CN106775184B (en) APP tab display method and electronic equipment
CN106376096B (en) Wireless network connection method and equipment thereof
CN110704247B (en) Processing method and device for application memory exception, electronic equipment and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200107