CN112789595A - Interface display method and device, computer storage medium and electronic equipment - Google Patents

Interface display method and device, computer storage medium and electronic equipment Download PDF

Info

Publication number
CN112789595A
CN112789595A CN201880098204.XA CN201880098204A CN112789595A CN 112789595 A CN112789595 A CN 112789595A CN 201880098204 A CN201880098204 A CN 201880098204A CN 112789595 A CN112789595 A CN 112789595A
Authority
CN
China
Prior art keywords
target interface
drawing time
interface
application program
time
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
CN201880098204.XA
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai 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 Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN112789595A publication Critical patent/CN112789595A/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

Landscapes

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

Abstract

An interface display method, an interface display device, a computer-readable storage medium and an electronic device are provided, wherein the interface display method comprises the following steps: receiving a starting instruction of an application program, wherein the starting instruction is used for starting and drawing a target interface (102) to be displayed by the application program; acquiring window information to be drawn in a target interface according to a starting instruction (104); adjusting a preset drawing time (106) for drawing the target interface according to the window information; and drawing the target interface of the application program within the adjusted preset drawing time, and opening the target interface (108).

Description

Interface display method and device, computer storage medium and electronic equipment Technical Field
The present application relates to the field of computer technologies, and in particular, to an interface display method and apparatus, a computer-readable storage medium, and an electronic device.
Background
When using an Application (APP), a user of an electronic device usually needs to start the APP and display a target interface of the APP, or needs to switch from a target interface of one APP to a target interface of another APP. Based on the android system of the electronic equipment, window management can be responsible for displaying, destroying and the like of interface windows.
In the process of using the electronic device, when an application program needs to be started, if the starting of the application program is time-consuming, the drawing of a target interface of the application program is failed, and under certain conditions, window management can force interface switching to cause that the target interface cannot be displayed and a screen is blacked.
Disclosure of Invention
The embodiment of the application provides an interface display method, an interface display device, a computer storage medium and electronic equipment, which can reduce the probability of black screen and improve the display stability of a target interface.
An interface display method, the method comprising:
receiving a starting instruction of the application program, wherein the starting instruction is used for starting and drawing a target interface to be displayed of the application program;
acquiring window information to be drawn in a target interface according to a starting instruction;
adjusting preset drawing time for drawing the target interface according to the window information;
and drawing the target interface of the application program within the adjusted preset drawing time, and opening the target interface.
In addition, still provide an interface display device, the operation obtains the module, includes:
the instruction receiving module is used for receiving a starting instruction of the application program, and the starting instruction is used for starting and drawing a target interface to be displayed of the application program;
the window acquisition module is used for acquiring window information to be drawn in the target interface according to the starting instruction;
the time adjusting module is used for adjusting the preset drawing time for drawing the target interface according to the window information;
and the interface drawing module is used for drawing the target interface of the application program within the adjusted preset drawing time and opening the target interface.
Further, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the interface display method described above.
In addition, an electronic device is also provided, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the interface display method when executing the program.
The interface display method can receive a starting instruction of the application program, and the starting instruction is used for starting and drawing a target interface to be displayed of the application program; acquiring window information to be drawn in a target interface according to a starting instruction; adjusting preset drawing time for drawing the target interface according to the window information; and drawing a target interface of the application program within the adjusted preset drawing time, opening the target interface, reducing the probability of flashing a black screen by adjusting the preset drawing time, improving the display stability of the target interface and improving the user experience.
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, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain drawings of other embodiments based on these drawings without creative efforts.
FIG. 1 is a flow diagram of a method for displaying an interface in one embodiment;
FIG. 2 is a flowchart illustrating drawing a target interface of an application within an adjusted preset drawing time and opening the target interface in one embodiment;
FIG. 3 is a flowchart illustrating drawing of a target interface of an application within an adjusted preset drawing time and opening of the target interface in another embodiment;
FIG. 4 is a flowchart of an interface display method in another embodiment;
FIG. 5 is a block diagram of an exemplary interface display apparatus;
fig. 6 is a block diagram of a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
FIG. 1 is a flowchart of an interface display method in one embodiment. In the embodiment of the application, an interface display method is provided and comprises steps 102-108. Wherein the content of the first and second substances,
and 102, receiving a starting instruction of the application program, wherein the starting instruction is used for starting and drawing a target interface to be displayed of the application program.
The starting instruction is used for drawing a target interface to be displayed by the application program into a display interface which needs to be loaded and displayed in the starting operation aiming at the application program. A display Interface may be understood to mean a Graphical User Interface (GUI) that refers to a User Interface that is displayed graphically. Wherein the generation of the graphical user interface brings better visual enjoyment to the user. A graphical user interface is presented on a screen that includes a parent window and a plurality of child windows drawn within the parent window according to a display scheme.
When the electronic device receives a start instruction for an application program, the start instruction may be a touch operation of a user for an application program icon, requesting to start the application program, or may be a touch operation for a notification message, requesting to start an application program associated with the notification message and drawing a target interface to be displayed by the application program, and the like, which is not limited herein.
Executing the starting operation for the application program according to the starting instruction includes starting a plurality of processes and services corresponding to the application program, drawing and loading a target interface (target display interface) corresponding to the application program, and the like. The starting instruction is used for drawing a target interface to be displayed by the application program into a display interface which needs to be loaded and displayed in the starting operation aiming at the application program.
The application program refers to a system application program and a third-party application program installed in the electronic device, the third-party application program may be, for example, a game application, a photo application, an instant messaging application, a video application, and the like, and the third-party application program may be installed by a user, or may be pre-installed by a developer before the mobile terminal leaves a factory, which is not limited herein.
And 104, acquiring information of a window to be drawn in the target interface according to the starting instruction.
For example, in the android system framework layer, a window management module is responsible for interface, window display and destruction, and the like, and window management is implemented by wms (windows manager service). A window is a rectangular area on a screen that can display a UI and interact with a user. A window is actually a Surface (canvas). A target display interface of one screen may include a parent window and a plurality of child windows drawn within the parent window according to a display scheme, and the layout and order of the parent window and the plurality of child windows and the animation of the windows are managed by the WMS and then mixed and displayed with a plurality of canvas contents by a service called surface flickers.
Only one window may be included in the target interface, or multiple windows may be included. Wherein, a plurality is greater than or equal to 2. The window may be a transparent window, a hidden window, a pop-up window, etc. The electronic device can display the target interface according to the starting instruction, and the electronic device can acquire window information to be drawn in the target interface based on the monitoring thread while displaying the target interface. Specifically, the window information may include information of the number of windows, the position of the window, the type of the window, and the like.
And step 106, adjusting preset drawing time for drawing the target interface according to the window information.
The preset drawing time is the system default time set by the window management module. When the application program A receives the starting instruction, the target interface of the application program A realizes the display of the interface (interface switching display) according to the preset drawing time. If the target interface of the application program is drawn within the preset drawing time, the drawn target interface can be normally displayed; if the application program is started within the preset drawing time, the time is particularly consumed, the target interface is not drawn completely, if the preset drawing time is exceeded, the window management module can forcibly display the interface, and the target interface of the application program cannot be normally displayed due to the fact that the drawing of the target interface is completed, so that the black screen is caused.
The electronic device may adjust a preset drawing time for drawing the target interface according to the window information. The preset drawing time may be generally set to 5 seconds, for example, the electronic device may adjust the preset drawing time according to the window information, and the preset drawing time may be increased and adjusted to be a time that is greater than 5 seconds, such as 6 seconds, 7 seconds, 8 seconds, or 10 seconds, and does not affect the user experience. The electronic device can also maintain the preset drawing time unchanged according to the window information, keep the preset drawing time at 5 seconds and the like.
And step 108, drawing the target interface of the application program within the adjusted preset drawing time, and opening the target interface.
The electronic device may adjust a preset drawing time for drawing the target interface according to the window information. For example, the preset drawing time is 5 seconds, the electronic device may increase the preset drawing time appropriately to make the adjusted preset drawing time 10 seconds, and the electronic device may draw the target interface of the application program according to the adjusted preset drawing time (10 seconds) and display the target interface.
In this embodiment, the interface display method may receive a start instruction of an application program, where the start instruction is used to start and draw a target interface to be displayed by the application program; acquiring window information to be drawn in a target interface according to a starting instruction; adjusting preset drawing time for drawing the target interface according to the window information; and drawing a target interface of the application program within the adjusted preset drawing time, opening the target interface, reducing the probability of flashing a black screen by adjusting the preset drawing time, improving the display stability of the target interface and improving the user experience.
The window information may include information on the number of windows, the position of the window, the type of the window, and the like. Adjusting the preset drawing time for drawing the target interface according to the window information may specifically include: and adjusting the preset drawing time for drawing the target interface according to the number of the windows.
In one embodiment, when the number of windows is one, the preset drawing time is increased. That is, if the number of windows to be displayed in the target interface is one, the preset drawing time may be doubled, so that the preset drawing time is changed from 5 seconds to 10 seconds. That is, by increasing the preset drawing time, the application program can have more time to draw the target interface, so that the application program can normally display the target interface.
It should be noted that the adjusted preset drawing time is greater than the default preset drawing time of the system, so that the adjusted preset drawing time is within the range of 6 to 15 seconds, and the normal time and experience of the user using the electronic device are not affected.
In one embodiment, when the number of windows is multiple, the preset drawing time is maintained. When a plurality of windows exist, the electronic equipment can maintain the default preset drawing time of the system, if only one window is drawn successfully within the default preset drawing time of the system, the window which is drawn successfully is correspondingly displayed, and the window which is not drawn successfully is not displayed or the window area which is not drawn successfully is displayed in a black screen mode.
As shown in fig. 2, in one embodiment, when the number of windows is one, the preset drawing time is increased. Wherein, drawing the target interface of the application program within the adjusted preset drawing time, and opening the target interface, including step 202-step 206. Wherein the content of the first and second substances,
and step 202, drawing the target interface within the adjusted preset drawing time according to the starting instruction.
In an embodiment, the electronic device can achieve the drawing of the target interface within the adjusted preset drawing time based on the window management in the android system. The windows management system comprises a plurality of modules, and in addition to the WindowManagerService, the windows management system also comprises a SurfaceFlinger service, a Linux shared memory and a tmpfs file system, Binder communication, InputManagerService, animation, VSYNC synchronization technology and the like. Wherein, what finishes the drawing of the image is the application program end, and what finishes the composition of the layer is the SurfaceFlinger service. The electronic equipment can enable the application program to add a window to the Windows manager service through the agent of the Windows manager service according to the starting instruction, and applies for a Surface canvas to the Surface Flinger service, a memory corresponds to the back of the canvas, and after the memory application is successful, the application program end has a drawing target. Wherein, the memory is shared by the application program and the process between the SurfaceFlingers. And then, transmitting related information of the internal memory of the shared memory based on Linux, namely a MAP + tmpfs file system, to an application program end through a binder, drawing contents in the internal memory according to the adjusted preset drawing time by the application program end, informing an SF layer to perform mixed arrangement after the drawing is finished, and then rendering the data to a screen by the SF.
Optionally, the electronic device may invoke a Main Thread (Main Thread) according to the start instruction, where the Main Thread may be a Thread responsible for drawing a target interface of an application program that needs to be displayed, and the Main Thread uses a Main loop (Main loop) to be responsible for a target interface drawing task. The main thread can continuously take out the messages from the message queue and call the bound Handler to execute the task drawn by the target interface in the main thread.
And 204, acquiring the actual drawing time of the target interface, and monitoring whether the actual drawing time exceeds the preset drawing time by using the monitoring thread.
In one embodiment, when the target interface starts drawing, the electronic device triggers the callback interface to interact with the window management module (service). Therefore, the electronic device can create a monitoring thread, the monitoring thread can draw the actual drawing time of the target interface, and the monitoring thread can monitor whether the actual drawing time exceeds the preset drawing time in the process of drawing the target interface.
And step 206, when the actual drawing time does not exceed the adjusted preset drawing time, opening the target interface when the drawing of the target interface is finished.
In an embodiment, the adjusted preset drawing time may be set to t1, and the actual drawing time may be set to t 2. The electronic device may obtain an actual drawing time t2 for drawing the target interface according to the monitoring thread, compare the monitored actual drawing time t2 with the adjusted preset drawing time t1, and open the target interface when the drawing of the target interface is completed if the actual drawing time t2 does not exceed the adjusted preset drawing time t 1. For example, the actual drawing time t2 is 3 seconds, the adjusted preset drawing time t1 is 8 seconds, and when the application B starts and finishes drawing the target interface within 3 seconds according to the start instruction, the display of the target interface can be realized at the end of the 3 rd second, and the drawn target interface does not need to be displayed until the moment when the adjusted preset drawing time (8 seconds) ends, so that the display efficiency can be improved.
It should be noted that, in this embodiment, the adjusted preset drawing time is greater than the default preset drawing time of the system.
In one embodiment, opening the target interface when the drawing of the target interface is completed comprises: and when the drawing of the target interface is completed, opening the target interface based on the pre-created active window stack.
Specifically, the electronic device may create a task stack corresponding to the application program in a pre-created active window stack; starting an active window corresponding to the application program in the task stack; and drawing and displaying a starting interface corresponding to the application program based on the started active window. Subsequently, a new active window can be started under the task stack, and the target interface is drawn and displayed based on the new active window.
In particular, an active window may be understood as a separate interface that directly provides interaction and operation to a user, and different names may be used in different operating systems to name the interface. The following description will be made taking an Android operating system as an example. In the Android system, the active window is called Activity. Activity is a component responsible for interacting with a user that provides a screen (which may be understood as a screen interface, rather than a display screen of an entity) for the user to interact to accomplish a task. In an android application, an Activity is usually a separate screen on which controls can be displayed and events of the user can be monitored and processed.
In one embodiment, the interface display method further includes step 208, when the actual drawing time exceeds the adjusted preset drawing time and the drawing of the target interface is not completed, displaying the target interface in a black screen.
Specifically, the electronic device may obtain an actual drawing time t2 for drawing the target interface according to the monitoring thread, compare the monitored actual drawing time t2 with the adjusted preset drawing time t1, and control the target interface to display in a black screen if the actual drawing time t2 exceeds the adjusted preset drawing time t1 but the target interface is not yet drawn. For example, the adjusted preset drawing time t1 is 8 seconds, and when the application program B is within 8 seconds according to the start instruction, the drawing of the target interface is still not completed, that is, the target interface can be controlled to be displayed in a black screen at the end of the 8 th second. If the application program B is not drawn within the adjusted preset drawing time, it is indicated that the starting of the application program B is blocked, the target interface of the application program can never be drawn successfully, the user can be informed that the electronic equipment can start the application program by controlling the black screen display of the target interface, the application program feeds back the starting operation of the user, and the user can be prevented from always starting the operation of starting the application program.
It should be noted that, in this embodiment, the adjusted preset drawing time is greater than the default preset drawing time of the system.
In an embodiment, the interface display method further includes step 210, when the actual drawing time exceeds the preset drawing time and the drawing of the target interface is not completed, displaying information of the application program exception.
Specifically, the electronic device may obtain an actual drawing time t2 for drawing the target interface according to the monitoring thread, compare the monitored actual drawing time t2 with the adjusted preset drawing time t1, and control the target interface to display in a black screen if the actual drawing time t2 exceeds the adjusted preset drawing time t1 but the target interface is not yet drawn. For example, the adjusted preset drawing time t1 is 8 seconds, and when the application program B is within 8 seconds according to the start instruction, the drawing of the target interface is still not completed, that is, the target interface can be controlled to be displayed in a black screen at the end of the 8 th second. If the application program B does not finish drawing within the adjusted preset drawing time, it is indicated that the starting of the application program B is locked, the target interface of the application program is never drawn successfully, which indicates that the starting of the application program B is abnormal, and a prompt of the application program abnormality can be popped up, such as prompt words or prompt voice of "APP detects abnormality, please restart APP", and the like.
Optionally, before displaying the application exception information, the exception application may be forcibly closed, for example, all processes of the application are closed.
It should be noted that, in this embodiment, the adjusted preset drawing time is greater than the default preset drawing time of the system.
In the embodiment, the user can be informed that the electronic equipment is not in a problem but the starting of the application program is abnormal by displaying the information of the application program abnormity, so that the user can not have a good impression on manufacturers of the electronic equipment.
In one embodiment, the number of the windows is multiple, the drawing of the target interface of the application program within the adjusted preset drawing time and the opening of the target interface include:
and 302, drawing a plurality of windows of the target interface within the adjusted preset drawing time according to the starting instruction.
Step 302 is the same as the step 202 of drawing the target interface within the adjusted preset drawing time according to the start instruction, and is not described herein again.
And step 304, opening the target interface when at least one window is finished within the adjusted preset drawing time.
In one embodiment, when multiple windows of the target interface begin to draw, the electronic device triggers the callback interface to interact with the window management module (service). Therefore, the electronic device can create a monitoring thread, the monitoring thread can draw the actual drawing time of each window of the target interface, and in the process of drawing the target interface, the monitoring thread can monitor whether at least one window is drawn within the adjusted preset drawing time.
And if the number of the windows needing to be drawn in the target interface is 2, the windows are respectively represented by a window A and a window B, wherein when the drawing of the window A is finished within the adjusted preset drawing time and the drawing of the window B is not finished within the adjusted preset drawing time, the electronic equipment can control the target interface to be opened and the window A to be displayed normally, and the other areas except the window A are displayed in black.
It should be noted that, in this embodiment, the adjusted preset drawing time is the same as the default preset drawing time of the system.
Further, the interface display method further comprises the following steps: and step 306, when no window is finished within the preset drawing time, displaying the target interface in a black screen.
And if the number of the windows needing to be drawn in the target interface is 2, respectively representing the windows by using the window A and the window B, wherein when the windows A and B are not drawn within the adjusted preset drawing time, the electronic equipment can control the target interface to display in a black screen mode. If the target interface is not drawn within the adjusted preset drawing time, it is indicated that the starting of the application program is blocked, the target interface of the application program never can be drawn successfully, the user can be informed that the electronic equipment can start the application program by controlling the black screen display of the target interface, the application program feeds back the starting operation of the user, and only the starting operation is not successful, so that the user can be prevented from always starting the operation of starting the application program.
It should be noted that, in this embodiment, the adjusted preset drawing time is the same as the default preset drawing time of the system.
Optionally, when no window is completed within the preset drawing time, displaying abnormal information of the application program. For example, if the drawing of the application program is not completed within the adjusted preset drawing time, it is indicated that the start of the application program is stuck, the target interface of the application program will never be drawn successfully, which indicates that the start of the application program is abnormal, and a prompt for the application program abnormality may be popped up, such as a prompt text or a prompt voice, for example, "APP detects abnormality, please restart APP", and the like. By displaying the abnormal information of the application program, the user can be informed that the electronic equipment is not in a problem but the starting of the application program is abnormal, so that the user can not have a bad impression on the manufacturer of the electronic equipment.
It should be noted that, in this embodiment, the adjusted preset drawing time is the same as the default preset drawing time of the system.
In one embodiment, the interface display method comprises steps 402-416. Wherein the content of the first and second substances,
step 402, receiving a starting instruction of an application program, wherein the starting instruction is used for starting and drawing a target interface to be displayed of the application program;
step 404, obtaining window information to be drawn in the target interface according to the starting instruction, wherein the window information comprises the number of windows;
in step 405, when the number of windows is one, the preset drawing time is increased.
And step 407, drawing the target interface within the adjusted preset drawing time according to the starting instruction.
And 409, acquiring the actual drawing time of the target interface, and monitoring whether the actual drawing time exceeds the preset drawing time by using the monitoring thread.
And 411, opening the target interface when the target interface is drawn completely when the actual drawing time does not exceed the preset drawing time.
And 413, when the actual drawing time exceeds the preset drawing time and the drawing of the target interface is not completed, displaying the target interface in a black screen.
Step 406, when the number of the windows is multiple, maintaining the preset drawing time;
step 408, calling the main thread to draw a plurality of windows of the target interface within preset drawing time according to the starting instruction;
and step 410, opening the target interface when at least one window is finished within the preset drawing time.
And step 412, when no window is finished within the preset drawing time, displaying the target interface in a black screen.
In this embodiment, the interface display method may receive a start instruction of an application program, and obtain information of a window to be drawn in a target interface according to the start instruction; the window information comprises the number of windows, and the preset drawing time for drawing the target interface is adjusted according to the number of the windows. The probability of flashing a black screen is reduced by adjusting the preset drawing time, the display stability of the target interface is improved, and the user experience is improved.
When the number of the windows is one, increasing preset drawing time, drawing the target interface within the adjusted preset drawing time according to the starting instruction, acquiring the actual drawing time of the target interface, and monitoring whether the actual drawing time exceeds the preset drawing time by using the monitoring thread. When the actual drawing time does not exceed the preset drawing time, the target interface is opened when the drawing of the target interface is completed, the electronic equipment can be started quickly and finish the drawing of the target interface, the target interface is displayed immediately when the drawing is completed, the drawn target interface does not need to be displayed at the moment when the adjusted preset drawing time is finished, and the display efficiency of the electronic equipment can be improved. When the actual drawing time exceeds the preset drawing time and the target interface is not drawn completely, the target interface is displayed in a black screen mode, the user can be informed that the electronic equipment can start the application program, the application program feeds back the starting operation of the user and only fails to start, and therefore the user can be prevented from always starting the operation of starting the application program.
In addition, when the number of the windows is multiple, maintaining the preset drawing time, and drawing the multiple windows of the target interface within the preset drawing time according to the starting instruction; and when at least one window is finished within the preset drawing time, opening the target interface and displaying the drawn window. When no window is finished within the preset drawing time, the target interface is displayed in a black screen mode, the user can be informed that the electronic equipment can start the application program, the application program feeds back the starting operation of the user and is only not started successfully, and therefore the user can be prevented from starting the operation of starting the application program all the time.
It should be understood that although the various steps in the flow charts of fig. 1-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
An embodiment of the present application further provides an interface display apparatus, and fig. 5 is a schematic structural diagram of the interface display apparatus in one embodiment. The interface display apparatus includes an instruction receiving module 510, a window acquiring module 520, a time adjusting module 530, and an interface drawing module 540. Wherein the content of the first and second substances,
an instruction receiving module 510, configured to receive a start instruction of an application, where the start instruction is used to start and draw a target interface to be displayed by the application;
a window obtaining module 520, configured to obtain information of a window to be drawn in a target interface according to a start instruction;
a time adjusting module 530, configured to adjust a preset drawing time for drawing the target interface according to the window information; and
and the interface drawing module 540 is configured to draw a target interface of the application within the adjusted preset drawing time, and open the target interface.
The interface display device can receive a starting instruction of the application program, and the starting instruction is used for starting and drawing a target interface to be displayed of the application program; acquiring window information to be drawn in a target interface according to a starting instruction; adjusting preset drawing time for drawing the target interface according to the window information; and drawing a target interface of the application program within the adjusted preset drawing time, opening the target interface, reducing the probability of flashing a black screen by adjusting the preset drawing time, improving the display stability of the target interface and improving the user experience.
In one embodiment, the window information includes a number of windows; the time adjusting module 530 is further configured to adjust a preset drawing time for drawing the target interface according to the number of windows.
In one embodiment, when the number of windows is one, the preset drawing time is increased.
In one embodiment, when the number of windows is multiple, the preset drawing time is maintained.
In one embodiment, when the number of windows is one, the interface drawing module 540 includes:
the drawing unit is used for drawing the target interface within preset drawing time according to the starting instruction;
the monitoring unit is used for acquiring the actual drawing time of the target interface and monitoring whether the actual drawing time exceeds the adjusted preset drawing time or not by using a monitoring thread;
and the interface unit is used for opening the target interface when the actual drawing time does not exceed the adjusted preset drawing time and the drawing of the target interface is finished.
In this embodiment, the electronic device may obtain the actual drawing time t2 for drawing the target interface according to the monitoring thread, compare the monitored actual drawing time t2 with the adjusted preset drawing time t1, and open the target interface when the drawing of the target interface is completed if the actual drawing time t2 does not exceed the adjusted preset drawing time t 1. For example, the actual drawing time t2 is 3 seconds, the adjusted preset drawing time t1 is 8 seconds, and when the application B starts and finishes drawing the target interface within 3 seconds according to the start instruction, the display of the target interface can be realized at the end of the 3 rd second, and the drawn target interface does not need to be displayed until the moment when the adjusted preset drawing time (8 seconds) ends, so that the display efficiency can be improved.
In an embodiment, the interface unit is further configured to cause the target interface to be displayed in a black screen when the actual drawing time exceeds the adjusted preset drawing time and the drawing of the target interface is not completed.
In this embodiment, if the application program B is not yet drawn within the adjusted preset drawing time, it is indicated that the start of the application program B is blocked, the target interface of the application program will never be drawn successfully, and the user can be informed that the electronic device can start the application program by controlling the black screen display of the target interface, where the application program feeds back the start operation of the user and is only not started successfully, so that the user can be prevented from initiating the operation of starting the application program all the time.
In an embodiment, the interface unit is further configured to display the abnormal information of the application program when the actual drawing time exceeds the adjusted preset drawing time and the drawing of the target interface is not completed.
In the embodiment, the user can be informed that the electronic equipment is not in a problem but the starting of the application program is abnormal by displaying the information of the application program abnormity, so that the user can not have a good impression on manufacturers of the electronic equipment.
In an embodiment, the monitoring unit is further configured to draw a plurality of windows of the target interface within the adjusted preset drawing time according to the start instruction.
In an embodiment, the interface unit is further configured to open the target interface based on the pre-created active window stack when the drawing of the target interface is completed.
In an embodiment, the interface unit is further configured to open the target interface when the at least one window is completed within the adjusted preset drawing time.
In an embodiment, the interface unit is further configured to cause the target interface to be displayed in a black screen when no window is completed within the adjusted preset drawing time.
In this embodiment, when no window is completed within the preset drawing time, the target interface is displayed in a black screen, so that the user can be informed that the electronic device can start the application program, the application program feeds back the start operation of the user, and only the application program is not started successfully, so that the user can be prevented from always starting the operation of starting the application program.
The division of each module in the interface display device is only used for illustration, and in other embodiments, the interface display device may be divided into different modules as needed to complete all or part of the functions of the interface display device.
The modules in the interface display device can be implemented in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the electronic device, or can be stored in a memory in the electronic device in a software form, so that the processor can call and execute operations corresponding to the modules.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the following interface display method:
receiving a starting instruction of the application program, wherein the starting instruction is used for starting and drawing a target interface to be displayed of the application program;
acquiring window information to be drawn in a target interface according to a starting instruction;
adjusting preset drawing time for drawing the target interface according to the window information;
and drawing the target interface of the application program within the adjusted preset drawing time, and opening the target interface.
It should be noted that one or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, further cause the processors to perform the interface display method of any of the above embodiments.
A computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the interface display method of:
receiving a starting instruction of the application program, wherein the starting instruction is used for starting and drawing a target interface to be displayed of the application program;
acquiring window information to be drawn in a target interface according to a starting instruction;
adjusting preset drawing time for drawing the target interface according to the window information;
and drawing the target interface of the application program within the adjusted preset drawing time, and opening the target interface.
It should be noted that a computer program product containing instructions, when running on a computer, causes the computer to execute the interface display method in any of the above embodiments.
The embodiment of the application also provides the electronic equipment. As shown in fig. 6, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The electronic device may be any terminal device having a voice call function and a speaker, including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the electronic device as the mobile phone as an example:
fig. 6 is a block diagram of a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuit 660, wireless fidelity (WiFi) module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 610 may be used for receiving and transmitting signals during information transmission or communication, and may receive downlink information of the base station and then process the downlink information to the processor 680; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 600. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, which may also be referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 631 (e.g., operations performed by the user on or near the touch panel 631 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 641. In one embodiment, the Display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in fig. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the mobile phone.
The handset 600 may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and a cell phone. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, which is then processed by the audio data output processor 680 and then transmitted to another mobile phone via the RF circuit 610, or the audio data is output to the memory 620 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 6 shows WiFi module 670, it is understood that it is not an essential component of handset 600 and may be omitted as desired.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. In one embodiment, processor 680 may include one or more processing units. In one embodiment, processor 680 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset 600 also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In one embodiment, the handset 600 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, the processor 680 included in the electronic device implements the following steps when executing the computer program stored in the memory:
receiving a starting instruction of the application program, wherein the starting instruction is used for starting and drawing a target interface to be displayed of the application program;
acquiring window information to be drawn in a target interface according to a starting instruction;
adjusting preset drawing time for drawing the target interface according to the window information;
and drawing the target interface of the application program within the adjusted preset drawing time, and opening the target interface.
It should be noted that the interface display method in any of the above embodiments is implemented when the processor 680 included in the electronic device executes the computer program stored in the memory.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The above examples represent only a few embodiments of the present application, which are described in more detail and detail, but are not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (17)

  1. An interface display method, comprising:
    receiving a starting instruction of an application program, wherein the starting instruction is used for starting and drawing a target interface to be displayed of the application program;
    acquiring window information to be drawn in the target interface according to the starting instruction;
    adjusting preset drawing time for drawing the target interface according to the window information;
    and drawing the target interface of the application program within the adjusted preset drawing time, and opening the target interface.
  2. The method of claim 1, wherein the window information includes a number of windows; the adjusting of the preset drawing time for drawing the target interface according to the window information includes:
    and adjusting the preset drawing time for drawing the target interface according to the number of the windows.
  3. The method of claim 2, wherein said adjusting a preset drawing time for drawing the target interface according to the number of windows comprises:
    and when the number of the windows is one, increasing the preset drawing time.
  4. The method of claim 2, wherein said adjusting a preset drawing time for drawing the target interface according to the number of windows comprises:
    and when the number of the windows is multiple, maintaining the preset drawing time.
  5. The method of claim 3, wherein the drawing the target interface of the application program within the adjusted preset drawing time and opening the target interface comprises:
    drawing the target interface within the adjusted preset drawing time according to the starting instruction;
    acquiring the actual drawing time of the target interface, and monitoring whether the actual drawing time exceeds the adjusted preset drawing time by using a monitoring thread;
    and when the actual drawing time does not exceed the adjusted preset drawing time, opening the target interface when the drawing of the target interface is finished.
  6. The method of claim 5, wherein said opening the target interface upon completion of the drawing of the target interface comprises:
    and when the drawing of the target interface is completed, opening the target interface based on the pre-created active window stack.
  7. The method of claim 5, further comprising: and when the actual drawing time exceeds the adjusted preset drawing time and the drawing of the target interface is not completed, displaying the target interface in a black screen mode.
  8. The interface display method of claim 5, further comprising: and when the actual drawing time exceeds the adjusted preset drawing time and the target interface is not drawn completely, displaying abnormal information of the application program.
  9. The method of claim 4, wherein the drawing the target interface of the application program within the adjusted preset drawing time and opening the target interface comprises:
    drawing a plurality of windows of the target interface within the preset drawing time according to the starting instruction;
    and when at least one window is finished within the adjusted preset drawing time, opening the target interface.
  10. The method of claim 9, further comprising:
    and when the window is not finished in the adjusted preset drawing time, enabling the target interface to be displayed in a black screen.
  11. An interface display device comprising:
    the instruction receiving module is used for receiving a starting instruction of an application program, and the starting instruction is used for starting and drawing a target interface to be displayed of the application program;
    the window acquisition module is used for acquiring window information to be drawn in the target interface according to the starting instruction;
    the time adjusting module is used for adjusting preset drawing time for drawing the target interface according to the window information;
    and the interface drawing module is used for drawing the target interface of the application program within the adjusted preset drawing time and opening the target interface.
  12. The apparatus of claim 11, wherein the window information comprises a number of windows; the time adjusting module is further used for adjusting preset drawing time for drawing the target interface according to the number of the windows.
  13. The apparatus of claim 11, wherein the interface rendering module comprises:
    the drawing unit is used for drawing the target interface within the preset drawing time according to the starting instruction;
    the monitoring unit is used for acquiring the actual drawing time of the target interface and monitoring whether the actual drawing time exceeds the adjusted preset drawing time or not by using a monitoring thread;
    and the interface unit is used for opening the target interface when the target interface is drawn when the actual drawing time does not exceed the adjusted preset drawing time.
  14. The apparatus of claim 13, wherein the interface unit is further configured to cause the target interface to be displayed in a black screen when the actual drawing time exceeds the adjusted preset drawing time and the target interface is not drawn completely, or to display exception information of the application program when the actual drawing time exceeds the adjusted preset drawing time and the target interface is not drawn completely.
  15. The device of claim 13, wherein the monitoring unit is further configured to draw a plurality of windows of the target interface within the adjusted preset drawing time according to the start instruction;
    the interface unit is further configured to open the target interface when at least one of the windows is completed within the adjusted preset drawing time, or further configured to cause the target interface to be displayed in a black screen when no window is completed within the adjusted preset drawing time.
  16. A computer-readable storage medium on which a computer program is stored, which program, when executed by a processor, implements the interface display method according to any one of claims 1 to 10.
  17. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the interface display method of any one of claims 1 to 10 when executing the program.
CN201880098204.XA 2018-11-20 2018-11-20 Interface display method and device, computer storage medium and electronic equipment Pending CN112789595A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/116292 WO2020102956A1 (en) 2018-11-20 2018-11-20 Interface display method and apparatus, and computer storable medium and electronic device

Publications (1)

Publication Number Publication Date
CN112789595A true CN112789595A (en) 2021-05-11

Family

ID=70773715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880098204.XA Pending CN112789595A (en) 2018-11-20 2018-11-20 Interface display method and device, computer storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN112789595A (en)
WO (1) WO2020102956A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610699A (en) * 2021-07-19 2021-11-05 广州致远电子有限公司 Hardware layer rendering scheduling method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050246659A1 (en) * 2004-04-30 2005-11-03 Matthew Mengerink Method and system to display a pop-up window when a user leaves a website
CN107589977A (en) * 2017-09-06 2018-01-16 广东欧珀移动通信有限公司 Resource allocation method and related product
CN107748686A (en) * 2017-11-30 2018-03-02 广东欧珀移动通信有限公司 Starting guide method, apparatus, storage medium and the intelligent terminal of application program
CN107995977A (en) * 2017-09-07 2018-05-04 深圳市云中飞网络科技有限公司 Interface processing method, device, computer-readable storage medium and electronic equipment
CN108762881A (en) * 2018-06-21 2018-11-06 广州酷狗计算机科技有限公司 Interface method for drafting, device, terminal and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639725B (en) * 2013-11-08 2017-12-15 腾讯科技(深圳)有限公司 interface switching method and device
CN104951386B (en) * 2014-03-28 2019-04-05 腾讯科技(深圳)有限公司 A kind of method and apparatus that content load progress is shown

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050246659A1 (en) * 2004-04-30 2005-11-03 Matthew Mengerink Method and system to display a pop-up window when a user leaves a website
CN107589977A (en) * 2017-09-06 2018-01-16 广东欧珀移动通信有限公司 Resource allocation method and related product
CN107995977A (en) * 2017-09-07 2018-05-04 深圳市云中飞网络科技有限公司 Interface processing method, device, computer-readable storage medium and electronic equipment
CN107748686A (en) * 2017-11-30 2018-03-02 广东欧珀移动通信有限公司 Starting guide method, apparatus, storage medium and the intelligent terminal of application program
CN108762881A (en) * 2018-06-21 2018-11-06 广州酷狗计算机科技有限公司 Interface method for drafting, device, terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610699A (en) * 2021-07-19 2021-11-05 广州致远电子有限公司 Hardware layer rendering scheduling method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2020102956A1 (en) 2020-05-28

Similar Documents

Publication Publication Date Title
US10853979B2 (en) Electronic device and method for displaying screen thereof
US11137876B2 (en) Information display method, device and terminal for displaying progress on application icon
EP3342172B1 (en) Method of controlling the sharing of videos and electronic device adapted thereto
EP3073379A1 (en) Firmware recovery method, device and terminal
US11023296B2 (en) Method for managing multiple operating systems in a terminal
CN110837327B (en) Message viewing method and terminal
KR102496058B1 (en) Scan method in wireless local area network and electronic device implementing the same
CN106371964B (en) Method and device for prompting message
US10171640B2 (en) Method, apparatus, and system for displaying message in mobile terminal
JP6492184B2 (en) Method, device, and system for managing information recommendations
CN107967153B (en) Application program management method and mobile terminal
KR102475230B1 (en) Method for controlling communication network connection, storage medium and electronic device therefor
US20200168166A1 (en) Method for controlling brightness in mobile terminal display, mobile terminal and storage device
CN110825474B (en) Interface display method and device and electronic equipment
WO2014166307A1 (en) Method for determining performance of process of application and computer system
CN111314548A (en) Double-screen display method and device, storage medium and terminal
EP3129883B1 (en) Method and apparatus for repairing dynamic link library file
CN107770449B (en) Continuous shooting method, electronic device and storage medium
US11150913B2 (en) Method, device, and terminal for accelerating startup of application
CN111694537B (en) Audio playing method, electronic equipment and readable storage medium
CN106598656B (en) Mobile terminal and forbidden application starting method and device thereof
CN112997507B (en) Audio system control method, device, terminal and computer readable storage medium
CN108108207B (en) Advertisement display method and device
CN112789595A (en) Interface display method and device, computer storage medium and electronic equipment
CN107277113B (en) Method and equipment for realizing file downloading processing

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