Application starting method and device, electronic equipment and storage medium
By detecting the startup command of the target application and hiding the first type of small windows on the current screen, the full screen startup of the target application is achieved, solving the problem of the small window occluding the full screen display, and improving user experience and device performance.
Patent Information
- Application Number
- CN202311021824.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2025-02-21
AI Technical Summary
When using large-screen electronic devices, the application software uses small windows to display by default, causing small windows to block the full-screen display and affects the user's user experience.
By detecting the startup command of the target application, we determine whether full screen startup is required, and hide these small windows when the first type of small windows exist on the current screen to achieve full screen startup of the target application. At the same time, when the target application exits the full screen state, the hidden small window is re-displayed.
It provides a larger visual space, reduces interference from small windows, improves user attention concentration, and improves the performance and response speed of the device, providing a more flexible and efficient user experience.
Smart Images

Figure CN119493607A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for starting an application. Background Art
[0002] When using large-screen electronic devices such as large-screen mobile phones and tablets, application software is displayed in a small window by default, but users still have the need to display applications in full screen. Currently, the small window is displayed on the full screen, resulting in the small window blocking the full screen display, affecting user usage. Summary of the invention
[0003] The present application provides an application startup method, device, electronic device, computer-readable storage medium, and computer program product to solve the problem of small windows blocking the full-screen display. The technical solution of the present application is as follows:
[0004] According to a first aspect of an embodiment of the present application, a method for starting an application is provided, comprising: in response to detecting a start-up instruction of a target application, determining whether the target application needs to be started in full screen; in response to determining that the target application needs to be started in full screen, determining whether there is a first type of small window on the current screen; in response to determining that the first type of small window exists on the screen, hiding the first type of small window and starting the target application in full screen; in response to the target application exiting the full-screen state, redisplaying the hidden first type of small window.
[0005] In one embodiment of the present application, the method further includes: in response to determining that the target application does not need to be started in full screen, configuring parameters for starting the target application in a small window, and starting the target application in a small window based on the configured parameters.
[0006] In one embodiment of the present application, the method also includes: in response to determining that the target application does not need to be started in full screen, obtaining transparency attribute information of the target application; if the transparency attribute information indicates that the target application is a transparent and / or semi-transparent application, starting the target application in full screen; if the transparency attribute information indicates that the target application is not the transparent and / or semi-transparent application, starting the target application in a small window.
[0007] In one embodiment of the present application, the method further includes: in response to determining that a second type of small window exists on the screen, maintaining the current display form of the second type of small window, and launching the target application in full screen.
[0008] In one embodiment of the present application, the method further includes: in response to determining that no small window exists on the screen, directly launching the target application in full screen.
[0009] In one embodiment of the present application, the method further includes: detecting a touch operation, and if the touch operation is detected, determining the touch coordinates of the touch operation; if the touch coordinates are within the coordinate range of the target application, determining that a start instruction of the target application is detected.
[0010] In one embodiment of the present application, the method further includes: detecting a current state of the screen, and if the screen returns to a desktop state, determining that the target application exits a full-screen state.
[0011] In one embodiment of the present application, the redisplaying of the hidden first-category small window includes: unhiding the first-category window, and calling the display interface of the first-category window to redisplay the first-category small window.
[0012] In one embodiment of the present application, the determining whether the target application needs to be started in full screen includes: acquiring attribute information of the target application, and determining whether the target application needs to be started in full screen based on the attribute information.
[0013] According to the second aspect of an embodiment of the present application, a device for starting an application is provided, comprising: a first judgment module, for judging whether the target application needs to be started in full screen in response to detecting a startup instruction of the target application; a second judgment module, for judging whether there is a first type of small window on the current screen in response to judging that the target application needs to be started in full screen; a startup module, for hiding the first type of small window and starting the target application in full screen in response to judging that the first type of small window exists on the screen; and a display module, for redisplaying the hidden first type of small window in response to the target application exiting the full screen state.
[0014] In one embodiment of the present application, the device also includes: in response to determining that the target application does not need to be started in full screen, configuring parameters for starting the target application in a small window, and starting the target application in a small window based on the configured parameters.
[0015] In one embodiment of the present application, the device also includes: in response to determining that the target application does not need to be started in full screen, obtaining transparency attribute information of the target application; if the transparency attribute information indicates that the target application is a transparent and / or semi-transparent application, starting the target application in full screen; if the transparency attribute information indicates that the target application is not the transparent and / or semi-transparent application, starting the target application in a small window.
[0016] In one embodiment of the present application, the device further includes: in response to determining that a second type of small window exists on the screen, maintaining the current display form of the second type of small window, and launching the target application in full screen.
[0017] In one embodiment of the present application, the device further includes: in response to determining that no small window exists on the screen, directly launching the target application in full screen.
[0018] In one embodiment of the present application, the device further includes: detecting a touch operation, and if the touch operation is detected, determining the touch coordinates of the touch operation; if the touch coordinates are within the coordinate range of the target application, determining that a start instruction of the target application is detected.
[0019] In one embodiment of the present application, the device further includes: detecting a current state of the screen, and if the screen returns to a desktop state, determining that the target application exits a full-screen state.
[0020] In one embodiment of the present application, the display module is further used to: cancel hiding of the first-type window, and call the display interface of the first-type window to redisplay the first-type small window.
[0021] In one embodiment of the present application, the second determination module is further used to: obtain attribute information of the target application, and determine whether the target application needs to be started in full screen based on the attribute information.
[0022] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the steps of the method of the first aspect of the embodiment of the present application.
[0023] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the method of the first aspect of the embodiment of the present application are implemented.
[0024] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor of an electronic device, the steps of the method of the first aspect of the embodiment of the present application are implemented.
[0025] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects: by judging whether the target application needs to be started in full screen and whether there is a first type of small window on the current screen. When the target application needs to be started in full screen and there is a first type of small window on the current screen, the first type of small window is hidden, and the target application is started in full screen, which can provide a larger visual space, reduce the interference of small windows, and thus improve the user's concentration. It can also reduce the occupation of system resources and improve the performance and response speed of the device. When the target application exits the full-screen state, the hidden first type of small window is redisplayed, providing users with a more flexible and efficient use experience, allowing users to better utilize the screen space of the device, and improving user experience and work efficiency.
[0026] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
[0028] Figure 1 The figure is a flowchart of a method for starting an application according to an exemplary embodiment.
[0029] Figure 2 is a schematic diagram of a small window on a screen according to an exemplary embodiment.
[0030] Figure 3 The figure is a schematic diagram of a method for starting a camera according to an exemplary embodiment.
[0031] Figure 4 is a flow chart of a method for starting an application according to another exemplary embodiment.
[0032] Figure 5 is a flow chart of a method for starting an application according to another exemplary embodiment.
[0033] Figure 6 The invention is a flowchart of starting a transparent and / or semi-transparent application according to an exemplary embodiment.
[0034] Figure 7 The invention is a flowchart of a method for starting an application according to another exemplary embodiment.
[0035] Figure 8 The invention is a flowchart of a method for starting an application according to another exemplary embodiment.
[0036] Fig. 9The invention is a flowchart of a method for starting an application according to another exemplary embodiment.
[0037] Fig.10 The invention is a flowchart of a method for starting an application according to another exemplary embodiment.
[0038] Fig.11 The figure is a flowchart of starting an application according to an exemplary embodiment.
[0039] Fig.12 The figure is a structural block diagram of a device for starting an application according to an exemplary embodiment.
[0040] Fig.13 It is a block diagram of an electronic device according to an exemplary embodiment.
[0041] Fig.14 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0042] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0044] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0045] Figure 1 is a flow chart of a method for starting an application according to an exemplary embodiment. Figure 1 As shown, the method for starting an application in an embodiment of the present application includes the following steps:
[0046] S101 , in response to detecting a start instruction of a target application, determining whether the target application needs to be started in full screen.
[0047] It should be noted that the execution subject of the method for starting the application provided in the embodiment of the present application is an electronic device, and the electronic device may be a terminal device. Optionally, the terminal device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device may be a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc.
[0048] In some implementations, the detection of the start instruction of the target application can be determined based on the operation of clicking the icon of the target application. That is, the start instruction of the target application refers to clicking the icon of the target application. The start instruction of the target application can also be detected based on voice recognition. For example, if words such as "open" and "start" are recognized, it is determined that the start instruction of the target application is detected.
[0049] Furthermore, it is possible to determine whether the target application needs to be started in full screen mode according to the start mode of the target application. If the start mode is full screen start, the target application needs to be started in full screen. If the start mode is small window start, the target application does not need to be started in full screen.
[0050] In some implementations, it may be determined whether the target application needs to be started in full screen based on the type of the target application. For example, target applications such as media playback applications, game applications, and shooting applications need to be started in full screen. For example, the camera application in an electronic device must be started in full screen.
[0051] In some implementations, it is also possible to determine whether the target application needs to be started in full screen based on the identifier of the target application. Optionally, it is possible to determine whether the target application needs to be started in full screen based on the unique identifier of the target application. The unique identifier may be the package name of the target application. Optionally, an identification list of applications may be established based on the identification of the application, and the applications in the identification list must be started in full screen. After obtaining the identification of the target application, by querying the list, if the identification of the target application is in the list, it can be determined that the target application needs to be started in full screen.
[0052] S102: In response to determining that the target application needs to be started in full screen, determine whether there is a small window of the first type on the current screen.
[0053] It is understood that the current screen refers to the page displayed on the electronic device currently in use. For example, if a user opens a web page in a browser, the current screen is the page displaying the web page. A small window in the screen refers to an application or content window displayed in a smaller size on the screen of an electronic device. Small windows usually float above the screen or other applications, allowing users to continue to view, operate or control the content in the small window while performing other tasks.
[0054] In some implementations, it is possible to obtain the small window information on the current screen and determine whether a small window exists on the current screen according to the small window information. The small window information includes but is not limited to: the type of small window, the position of the small window, the size of the small window, etc. The types of small windows can be divided into a first type of small window that affects full-screen display and a second type of small window that does not affect full-screen display.
[0055] It is understandable that small windows can be divided into the first type of small windows and the second type of small windows. The first type of small windows refers to small windows that affect full-screen display and need to be covered by the target application launched in full screen, that is, the first type of small windows need to be hidden. The second type of small windows refers to small windows that do not affect full-screen display, that is, the current state of the second type of small windows on the screen will not block the full-screen display of the target application. For example, the second type of small windows can include but are not limited to mini windows, edge windows, etc. Figure 2 In the small window schematic diagram shown, there are a first type of small window and a second type of small window. The first type of small window is located in the middle of the screen and blocks the screen, and the second type of small window is located at the edge of the screen and does not block the screen.
[0056] Optionally, if the small window information on the current screen is not obtained, it is determined that there is no small window on the current screen. If the position of the small window on the current screen is obtained to be located at the center of the screen, and the small window is a small window that affects the full screen display, it is determined that there is a first type of small window on the current screen.
[0057] S103, in response to determining that there is a first type of small window on the screen, hiding the first type of small window and starting the target application in full screen.
[0058] In some implementations, it is determined that there is a first type of small window on the current screen, which affects the full-screen display of the target application. The first type of small window can be hidden and the target application can be started in full screen. At this time, only the full-screen window of the target application is on the current screen.
[0059] Optionally, the first type of small window can be hidden so that the small window no longer blocks the content of the target application after the target application is started in full screen. In the embodiment of the present disclosure, the hiding interface of the first type of small window can be called to hide the first type of small window in place. For example, the first type of small window can be displayed edge to edge or minimized to hide the first type of small window.
[0060] Optionally, the target application may be controlled to start in full screen by configuring parameters for the target application and configuring parameters for starting the target application in full screen.
[0061] S104: In response to the target application exiting the full-screen state, redisplaying the hidden small window of the first type.
[0062] Optionally, it is possible to determine whether the target application has exited the full-screen state based on a user's gesture operation on the electronic device. If a specific gesture operation is performed on the electronic device, such as sliding inward at the edge of the screen, it is determined that the target application has exited the full-screen state. Optionally, it is possible to determine whether the target application has exited the full-screen state based on the state of the display screen. If information such as a display status bar and a navigation bar appears on the screen, it is determined that the target application has exited the full-screen state.
[0063] In some implementations, when it is detected that the target application exits the full screen state, that is, the target application returns to the background, the target application is not displayed on the current screen, and the first type of small window can be redisplayed. Optionally, the hiding operation of the first type of small window can be changed or canceled, and the hidden first type of small window can be redisplayed.
[0064] In the application startup method provided in the embodiment of the present application, it is determined whether the target application needs to be started in full screen and whether there is a first type of small window on the current screen. When the target application needs to be started in full screen and there is a first type of small window on the current screen, the first type of small window is hidden, and the target application is started in full screen. This can provide a larger visual space, reduce the interference of small windows, and thus improve the user's concentration. It can also reduce the occupation of system resources and improve the performance and response speed of the device. When the target application exits the full-screen state, the hidden first type of small window is redisplayed, providing users with a more flexible and efficient use experience, allowing users to better utilize the screen space of the device, and improving user experience and work efficiency.
[0065] like Figure 3 Schematic diagram of the camera startup method shown. Figure 3a is a screen diagram of an electronic device, which may be a large-screen mobile phone. On the current screen, there are multiple application icons and a first-type small window. The first-type small window blocks application software, including application software 2, application software 3, application software 4, application software B, application software C, and application software D. If the user clicks on the camera in the taskbar below at this time and determines that the camera needs to be started in full screen, the first-type small window will be hidden and the camera will be started in full screen. Figure 3 In the schematic diagram shown in b, only the camera is displayed on the screen of the electronic device, and the first type of small window cannot block the display of the camera.
[0066] Figure 4 is a flow chart of a method for starting an application according to an exemplary embodiment. Figure 4 As shown, the method for starting an application in an embodiment of the present application includes the following steps:
[0067] S401, in response to detecting a start instruction of a target application, determining whether the target application needs to be started in full screen.
[0068] In some implementations, if the electronic device is a touch-type electronic device, it is possible to detect whether there is a start instruction for the target application based on the position of the touch operation on the touch screen.
[0069] Optionally, by detecting the touch operation, if the touch operation is detected, the touch coordinates of the touch operation are determined, and it is judged whether the touch coordinates are within the coordinate range of the target application. If the touch coordinates are within the coordinate range of the target application, it can be determined that the start instruction of the target application is detected.
[0070] In some implementations, it is possible to obtain attribute information of the target application and determine whether the target application needs to be started in full screen based on the attribute information, wherein the attribute information includes but is not limited to: the type, identification, configuration parameters, etc. of the target application.
[0071] For example, if the target application is a full-screen display application, it indicates that the target application needs to be started in full screen, for example, the camera needs to be started in full screen. If the target application is a full-screen display application and the parameters for starting in a small window are configured, it indicates that the target application does not need to be started in full screen.
[0072] S402 , in response to determining that the target application does not need to be started in full screen, configuring parameters for starting the target application in a small window, and starting the target application in a small window based on the configured parameters.
[0073] In some implementations, when it is determined that the target application does not need to be started in full screen, the parameters of the target application can be configured so that the target application is started in a small window. Optionally, by obtaining the configuration parameters of the target application and determining that the target application supports small window startup, the parameters for small window startup are configured for the target application, and then based on the configured parameters, the target application is controlled to be started in a small window.
[0074] In the application startup method provided in the embodiment of the present application, by determining that the target application does not need to be started in full screen, the parameters for starting in a small window are configured to start the target application in a small window. In the case of processing multiple tasks, the small window can be used to display the application for quick switching, thereby improving the efficiency of processing multiple tasks. Starting the target application in a small window can also save screen space, and other applications can be accessed at any time, providing a flexible and efficient user experience.
[0075] Figure 5 is a flow chart of a method for starting an application according to an exemplary embodiment. Figure 5 As shown, the method for starting an application in an embodiment of the present application includes the following steps:
[0076] S501 , in response to detecting a start instruction of a target application, determining whether the target application needs to be started in full screen.
[0077] In the embodiment of the present application, the implementation method of step S501 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0078] S502: In response to determining that the target application does not need to be started in full screen, obtain transparency attribute information of the target application.
[0079] In some implementations, if it is determined that the target application does not need to be started in full screen, it is possible to determine whether the target application is a transparent and / or semi-transparent application, and further determine the method for starting the target application. Optionally, it is possible to determine whether the target application is a transparent and / or semi-transparent application based on the transparency attribute information of the target application. The transparency attribute information is used to indicate whether the target application is a transparent and / or semi-transparent application.
[0080] It is understood that transparent and / or semi-transparent applications refer to applications where the interface elements (such as windows, panels, etc.) of the application have different degrees of transparency or semi-transparency on the display screen. This effect allows the background content to be displayed through the interface of the application, creating an immersive user experience.
[0081] Optionally, the transparency attribute value of the target application may be determined by acquiring the transparency attribute information of the target application, and then, according to the transparency attribute value, it may be determined whether the target application is a transparent and / or semi-transparent application.
[0082] S503: If the transparency attribute information indicates that the target application is a transparent and / or semi-transparent application, the target application is started in full screen.
[0083] In some implementations, whether the target application is a transparent and / or semi-transparent application can be indicated based on a transparency attribute threshold. If the transparency attribute value of the target application is less than or equal to the transparency attribute threshold, the display type of the target application is determined to be a transparent and / or semi-transparent application. Among them, a transparency attribute value of 100% indicates complete opacity. For example, if the transparency attribute threshold is 75%, if the transparency attribute value of the target application is 48%, which is less than 75%, the display type of the target application is determined to be a transparent and / or semi-transparent application.
[0084] In some implementations, in order to avoid the problem of screen interface elements interfering with each other and affecting the user's visual experience when a transparent and / or semi-transparent application small window is started, the transparent and / or semi-transparent application can be started in full screen.
[0085] Optionally, it is determined that the target application is a transparent and / or semi-transparent application, parameters for full-screen startup are configured for the target application, and the target application is started in full-screen based on the configured parameters.
[0086] S504: If the transparency attribute information indicates that the target application is not a transparent and / or semi-transparent application, a small window is started for the target application.
[0087] In some implementations, if the transparency attribute value of the target application is greater than the transparency attribute threshold, it is determined that the target application is not a transparent and / or semi-transparent application. Wherein, a transparency attribute value of 100% indicates complete opacity. For example, assuming that the transparency attribute threshold is 75%, if the transparency attribute value of the target application is 98%, which is greater than 75%, it is determined that the display type of the target application is not a transparent and / or semi-transparent application.
[0088] Further, it is determined that the target application is not a transparent and / or semi-transparent application, parameters for starting the target application in a small window are configured, and the target application is started in a small window based on the configured parameters.
[0089] In the application startup method provided in the embodiment of the present application, the startup method of the target application is determined by judging whether the target application is a transparent and / or semi-transparent application. By configuring the parameters for full-screen startup, the target application is started in full screen, which avoids the transparent and / or semi-transparent application small window startup affecting the user's readability. Starting a transparent and / or semi-transparent application in full screen can avoid interference between screen pages, help users concentrate, and enhance the user's interactive experience.
[0090] like Figure 6The flowchart of starting a transparent and / or semi-transparent application is shown. By clicking the icon of the target application, the start instruction of the target application is determined. If the target application does not need to be started in full screen, by obtaining the transparency attribute information of the target application, it is determined whether the target application is a transparent and / or semi-transparent application. If the transparency attribute information indicates that the target application is a transparent and / or semi-transparent application, the parameters for starting the target application in full screen are configured, and the target application is controlled to start in full screen. If the transparency attribute information indicates that the target application is not a transparent and / or semi-transparent application, the parameters for starting the target application in a small window are configured, and the target application is controlled to start in a small window.
[0091] Figure 7 is a flow chart of a method for starting an application according to an exemplary embodiment. Figure 7 As shown, the method for starting an application in an embodiment of the present application includes the following steps:
[0092] S701 , in response to detecting a start instruction of a target application, determining whether the target application needs to be started in full screen.
[0093] S702 , in response to determining that the target application does not need to be started in full screen, configure parameters for starting the target application in a small window, and start the target application in a small window based on the configured parameters.
[0094] S703 : In response to determining that the target application does not need to be started in full screen, obtain transparency attribute information of the target application.
[0095] S704: If the transparency attribute information indicates that the target application is a transparent and / or semi-transparent application, the target application is started in full screen.
[0096] S705: If the transparency attribute information indicates that the target application is not a transparent and / or semi-transparent application, start the target application in a small window.
[0097] S706 , in response to determining that the target application needs to be started in full screen, starting the target application in full screen.
[0098] In the embodiment of the present application, the implementation method of step S701 to step S706 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0099] It is understandable that step S702, step S703 and step S706 are three different implementations of starting the target application, and any implementation can be used to control the start of the target application. Step S702, step S703 and step S706 are in parallel, and their order in the embodiment of the present application is not too limited.
[0100] In the application startup method provided in the embodiment of the present application, when it is determined that the target application does not need to be started in full screen, the target application can be directly started in a small window, and the startup method of the target application can be determined by judging whether the target application is a transparent and / or semi-transparent application. By configuring the parameters for full-screen startup, the target application is started in full screen, which avoids the impact of transparent and / or semi-transparent application small window startup on user readability. Starting transparent and / or semi-transparent applications in full screen can avoid interference between screen pages, help users concentrate, and enhance the user's interactive experience. When it is determined that the target application needs to be started in full screen, the target application can be directly started in full screen, which can provide a larger visual space, reduce the interference of small windows, and thus improve the user's concentration.
[0101] Figure 8 is a flow chart of a method for starting an application according to an exemplary embodiment. Figure 8 As shown, the method for starting an application in an embodiment of the present application includes the following steps:
[0102] S801, in response to detecting a start instruction of a target application, determining whether the target application needs to be started in full screen.
[0103] In the embodiment of the present application, the implementation method of step S801 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0104] S802: In response to determining that the target application needs to be started in full screen, determine whether there is a small window on the current screen.
[0105] In the embodiment of the present application, the implementation method of step S802 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0106] S803, in response to determining that there is a first type of small window on the screen, hiding the first type of small window and starting the target application in full screen.
[0107] In the embodiment of the present application, the implementation method of step S803 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0108] S804: In response to the target application exiting the full-screen state, redisplaying the hidden small window of the first type.
[0109] In some implementations, the current state of the screen may be detected, and if the screen returns to the desktop state, it is determined that the target application exits the full screen state. Optionally, it may be determined that the screen returns to the desktop state based on the characteristics of the desktop state. If the screen currently displays the taskbar or icons of multiple applications, it is determined that the screen returns to the desktop state.
[0110] Furthermore, the first type of small window can be redisplayed by unhiding the first type of window and calling the display interface of the first type of window.
[0111] Optionally, by calling the display interface of the first type of window and controlling the display of the first type of small window, the hidden first type of small window can be awakened to realize the redisplay of the first type of small window.
[0112] S805 , in response to determining that there is a second type of small window on the screen, maintaining the current display form of the second type of small window, and starting the target application in full screen.
[0113] In some implementations, it is possible to obtain the small window information on the current screen and determine whether there is a second type of small window on the current screen according to the small window information. The second type of small window refers to a small window that does not affect the full screen display, and the second type of small window does not need to be hidden, that is, the current display form of the second type of small window is maintained.
[0114] In some implementations, the small window information includes but is not limited to: the type of small window, the position of the small window, the size of the small window, etc. Optionally, if the position of the small window on the current screen is obtained to be at the edge of the screen, and the size of the small window is small and does not affect the full-screen display of the target application, it can be determined that the small window is a second-type small window, that is, it is determined that a second-type small window exists on the current screen. For example, a mini window and an edge window are second-type small windows that do not affect the full-screen display.
[0115] Furthermore, the second type of small window is controlled to maintain the current display form, that is, the second type of small window is controlled to continue to be displayed on the current screen, and parameters of the target application are configured, parameters of the target application are configured to start in full screen, and the target application is controlled to start in full screen.
[0116] In the application startup method provided in the embodiment of the present application, by judging that the target application needs to be started in full screen and there is a first type of small window on the current screen, the first type of small window can be hidden, and the target application can be started in full screen, which can provide a larger visual space, reduce the interference of small windows, and thus improve the user's concentration. When the target application exits the full-screen state, the hidden first type of small window is redisplayed, allowing the user to better utilize the screen space of the device. If it is determined that there is a second type of small window on the screen that does not affect the full-screen startup, the current display form of the second type of small window is maintained, and the target application is started in full screen, providing users with a more flexible and efficient use experience, and improving user experience and work efficiency.
[0117] Fig. 9 is a flow chart of a method for starting an application according to an exemplary embodiment. Fig. 9 As shown, the method for starting an application in an embodiment of the present application includes the following steps:
[0118] S901 , in response to detecting a start instruction of a target application, determining whether the target application needs to be started in full screen.
[0119] In the embodiment of the present application, the implementation method of step S901 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0120] S902: In response to determining that the target application needs to be started in full screen, determine whether there is a small window on the current screen.
[0121] In the embodiment of the present application, the implementation method of step S902 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.
[0122] S903: In response to determining that there is no small window on the screen, directly starting the target application in full screen.
[0123] In some implementations, by obtaining the small window information on the current screen, determining that there is no small window on the current screen according to the small window information, the target application is directly started in full screen. Optionally, the target application can be controlled to start in full screen by configuring parameters for the target application to start in full screen.
[0124] Furthermore, the current state of the screen can be detected. If the screen returns to the desktop state, that is, the screen displays the desktop state, it is determined that the target application has exited the full-screen state. Then, it is detected whether there is a hidden first-category small window in the desktop state. If there is a hidden first-category small window, the hidden first-category small window can be redisplayed by calling the display interface of the first-category window.
[0125] In the application startup method provided in the embodiment of the present application, by determining that the target application needs to be started in full screen and there is no small window on the current screen, the target application is started in full screen. This can provide a larger visual space, fully display the content of the target application, reduce the interference of other information to the user, improve the user's concentration, and enhance the user experience and work efficiency.
[0126] Fig.10 is a flow chart of a method for starting an application according to an exemplary embodiment. Fig.10 As shown, the method for starting an application in an embodiment of the present application includes the following steps:
[0127] S1001, in response to detecting a start instruction of a target application, determining whether the target application needs to be started in full screen.
[0128] S1002: In response to determining that the target application does not need to be started in full screen, configure parameters for starting the target application in a small window, and start the target application in a small window based on the configured parameters.
[0129] S1003: In response to determining that the target application needs to be started in full screen, determine whether there is a small window on the current screen.
[0130] S1004, in response to determining that there is a first type of small window on the screen, the first type of small window is hidden, and the target application is started in full screen.
[0131] S1005 , in response to determining that there is a second type of small window on the screen, maintaining the current display form of the second type of small window, and starting the target application in full screen.
[0132] S1006: In response to determining that no small window exists on the screen, directly starting the target application in full screen.
[0133] S1007: In response to the target application exiting the full screen state and there being a hidden small window of the first type, redisplaying the hidden small window of the first type.
[0134] In the application startup method provided in the embodiment of the present application, it is determined whether the target application needs to be started in full screen and whether there is a first type of small window on the current screen. When the target application needs to be started in full screen and there is a first type of small window on the current screen, the first type of small window is hidden, and the target application is started in full screen. This can provide a larger visual space, reduce the interference of small windows, and thus improve the user's concentration. It can also reduce the occupation of system resources and improve the performance and response speed of the device. When the target application exits the full-screen state, the hidden first type of small window is redisplayed, providing users with a more flexible and efficient use experience, allowing users to better utilize the screen space of the device, and improving user experience and work efficiency.
[0135] Fig.11 What is shown is a flow chart for starting the target application. By clicking the icon of the target application, the start instruction of the target application is determined. First, determine whether the target application needs to be started in full screen. If it does not need to be started in full screen, configure the parameters for the target application to start in a small window, and control the target application to start in a small window. If the target application needs to be started in full screen, further determine whether there is a small window on the current screen. If there is a small window of the first category, hide the first category and control the target application to start in full screen. If there is no small window, or there is a small window of the second category, directly start the target application in full screen. Then detect whether the target application exits the full screen state. If the target application exits the full screen state and there is a hidden small window of the first category, call the display interface of the first category window to redisplay the hidden small window of the first category.
[0136] This application Fig.12 FIG. 1 is a structural block diagram of a device for starting an application according to an exemplary embodiment. Fig.12 The application startup device 1200 of the embodiment of the present application includes: a first judgment module 1201 , a second judgment module 1202 , a startup module 1203 and a display module 1204 .
[0137] The first determination module 1201 is configured to determine whether the target application needs to be started in full screen in response to detecting a start instruction of the target application.
[0138] The second determination module 1202 is configured to determine whether there is a small window of the first type on the current screen in response to determining that the target application needs to be started in full screen.
[0139] The starting module 1203 is used for hiding the first type of small window in response to determining that the first type of small window exists on the screen, and starting the target application in full screen.
[0140] The display module 1204 is configured to redisplay the hidden first-type small window in response to the target application exiting the full-screen state.
[0141] In one embodiment of the present application, the device also includes: in response to determining that the target application does not need to be started in full screen, configuring parameters for starting the target application in a small window, and starting the target application in a small window based on the configured parameters.
[0142] In one embodiment of the present application, the device also includes: in response to determining that the target application does not need to be started in full screen, obtaining transparency attribute information of the target application; if the transparency attribute information indicates that the target application is a transparent and / or semi-transparent application, starting the target application in full screen; if the transparency attribute information indicates that the target application is not the transparent and / or semi-transparent application, starting the target application in a small window.
[0143] In one embodiment of the present application, the device further includes: in response to determining that a second type of small window exists on the screen, maintaining the current display form of the second type of small window, and launching the target application in full screen.
[0144] In one embodiment of the present application, the device further includes: in response to determining that no small window exists on the screen, directly launching the target application in full screen.
[0145] In one embodiment of the present application, the device further includes: detecting a touch operation, and if the touch operation is detected, determining the touch coordinates of the touch operation; if the touch coordinates are within the coordinate range of the target application, determining that a start instruction of the target application is detected.
[0146] In one embodiment of the present application, the device further includes: detecting a current state of the screen, and if the screen returns to a desktop state, determining that the target application exits a full-screen state.
[0147] In one embodiment of the present application, the display module 1204 is further used to: cancel hiding of the first-type window, and call the display interface of the first-type window to redisplay the first-type small window.
[0148] In one embodiment of the present application, the second determination module 1202 is further configured to: obtain attribute information of the target application, and determine whether the target application needs to be started in full screen based on the attribute information.
[0149] In the application startup method provided in the embodiment of the present application, it is determined whether the target application needs to be started in full screen and whether there is a first type of small window on the current screen. When the target application needs to be started in full screen and there is a first type of small window on the current screen, the first type of small window is hidden, and the target application is started in full screen. This can provide a larger visual space, reduce the interference of small windows, and thus improve the user's concentration. It can also reduce the occupation of system resources and improve the performance and response speed of the device. When the target application exits the full-screen state, the hidden first type of small window is redisplayed, providing users with a more flexible and efficient use experience, allowing users to better utilize the screen space of the device, and improving user experience and work efficiency.
[0150] Fig.13 It is a block diagram of an electronic device according to an exemplary embodiment. Fig.13 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0151] like Fig.13 As shown, the electronic device 1300 includes a processor 1301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1302 or a program loaded from a memory 1306 to a random access memory (RAM) 1303. In the RAM 1303, various programs and data required for the operation of the electronic device 1300 are also stored. The processor 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.
[0152] The following components are connected to the I / O interface 1305: a memory 1306 including a hard disk, etc.; and a communication part 1307 including a network interface card such as a Local Area Network (LAN) card, a modem, etc., and the communication part 1307 performs communication processing via a network such as the Internet; a drive 13013 is also connected to the I / O interface 1305 as needed.
[0153] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1307. When the computer program is executed by the processor 1301, the above-mentioned functions defined in the method of the present application are executed.
[0154] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by the processor 1301 of the electronic device 1300 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0155] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0156] Fig.14 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. Fig.14 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present application. Fig.14 As shown, the electronic device 1400 includes a processor 1401 and a memory 1402. The memory 1402 is used to store program codes, and the processor 1401 is connected to the memory 1402 to read the program codes from the memory 1402 to implement the application startup method in the above embodiment.
[0157] Optionally, the number of processors 1401 may be one or more.
[0158] Optionally, the electronic device may further include an interface 1403, and the number of the interface 1403 may be multiple. The interface 1403 may be connected to an application program and may receive data from an external device such as a sensor.
[0159] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0160] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for starting an application, characterized in that: The method comprises: In response to detecting a start instruction of a target application, determining whether the target application needs to be started in full screen; In response to determining that the target application needs to be started in full screen, determining whether there is a small window of the first type on the current screen; In response to determining that the first type of small window exists on the screen, hiding the first type of small window and launching the target application in full screen; In response to the target application exiting the full-screen state, the hidden small window of the first type is redisplayed.
2. The method according to claim 1, characterized in that The method further comprises: In response to determining that the target application does not need to be started in full screen, parameters for starting the target application in a small window are configured, and the target application is started in a small window based on the configured parameters.
3. The method according to claim 1, characterized in that The method further comprises: In response to determining that the target application does not need to be started in full screen, obtaining transparency attribute information of the target application; If the transparency attribute information indicates that the target application is a transparent and / or semi-transparent application, starting the target application in full screen; If the transparency attribute information indicates that the target application is not the transparent and / or semi-transparent application, a small window is started for the target application.
4. The method according to claim 1, characterized in that: The method further comprises: In response to determining that there is a second type of small window on the screen, the current display form of the second type of small window is maintained, and the target application is started in full screen.
5. The method according to claim 1, characterized in that The method further comprises: In response to determining that no small window exists on the screen, the target application is directly started in full screen.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: detecting a touch operation, and if the touch operation is detected, determining touch coordinates of the touch operation; If the touch coordinates are within the coordinate range of the target application, it is determined that a start instruction of the target application is detected.
7. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The current state of the screen is detected, and if the screen returns to the desktop state, it is determined that the target application exits the full-screen state.
8. The method according to any one of claims 1 to 5, characterized in that The redisplaying of the hidden small window of the first type comprises: The hiding of the first-type window is cancelled, and the display interface of the first-type window is called to redisplay the first-type small window.
9. The method according to any one of claims 1 to 5, characterized in that The determining whether the target application needs to be started in full screen includes: Acquire attribute information of the target application, and determine whether the target application needs to be started in full screen based on the attribute information.
10. A device for starting an application, characterized in that: The device comprises: A first determination module, configured to determine whether the target application needs to be started in full screen in response to detecting a start instruction of the target application; A second determination module is configured to determine whether there is a small window of the first type on the current screen in response to determining that the target application needs to be started in full screen; a starting module, configured to, in response to determining that the first type of small window exists on the screen, hide the first type of small window and start the target application in full screen; The display module is used for redisplaying the hidden small window of the first type in response to the target application exiting the full-screen state.
11. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.
Citation Information
Cited By
Small window interaction method and device of vehicle-mounted equipment, electronic equipment and storage medium
CN121300659A