CN116679999B - Method for displaying bullet frame, electronic device and readable medium - Google Patents

Method for displaying bullet frame, electronic device and readable medium Download PDF

Info

Publication number
CN116679999B
CN116679999B CN202211334899.1A CN202211334899A CN116679999B CN 116679999 B CN116679999 B CN 116679999B CN 202211334899 A CN202211334899 A CN 202211334899A CN 116679999 B CN116679999 B CN 116679999B
Authority
CN
China
Prior art keywords
page
frame
application
application program
displaying
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.)
Active
Application number
CN202211334899.1A
Other languages
Chinese (zh)
Other versions
CN116679999A (en
Inventor
刘鹏
李兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211334899.1A priority Critical patent/CN116679999B/en
Publication of CN116679999A publication Critical patent/CN116679999A/en
Application granted granted Critical
Publication of CN116679999B publication Critical patent/CN116679999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a display method of a popup frame, electronic equipment and a readable medium, wherein in the display method of the popup frame, a user inputs a first operation on a page of a first application program to start the operation of the first application program, when the first application program detects that the system-level popup frame of the user needs to be popped up for display, the first operation belongs to the operation in the page of the first application program, the first popup frame is displayed in the page of the first application program, the first permission of the first application program can be ensured to be not opened, and when the system-level popup frame of the first application program cannot be popped up for display, the content of the system-level popup frame is displayed by displaying the form of the page popup frame on the page of the first application program, so that the probability that the system-level popup frame of the application program cannot be popped up for display under the condition that the first permission of the application program is not opened is reduced.

Description

Method for displaying bullet frame, electronic device and readable medium
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method for displaying a frame, an electronic device, a computer program product, and a computer readable storage medium.
Background
The electronic equipment such as the mobile phone is provided with various application programs, some application programs are provided with a system level popup frame, the display window of the system level popup frame is not limited, and the display window can be displayed on a desktop of the electronic equipment or an interface of any application program installed on the electronic equipment. For example, software update applications installed by electronic devices have a variety of system level boxes. The software updating application detects that an updating version exists in the operating system of the electronic device, and the software updating application can execute the upgrading flow of the operating system. In the process that the software updating application executes the upgrading flow of the operating system, the software updating application can display the system level popup frame to remind the user according to the state of the electronic equipment, and then the software updating application continues to execute the upgrading flow of the operating system according to the operation of the user on the system level popup frame.
In some scenarios, during the process of executing the upgrade procedure of the operating system of the electronic device by the software update application, it is detected that the state of the electronic device meets the display condition of the system-level popup frame of the software update application, but the system-level popup frame of the software update application is not popup displayed, and the upgrade procedure of the operating system of the electronic device by the software update application is forced to be interrupted. The inventor finds out the reason: one of the rights of the software update application, which may be referred to as the first right, is unopened, belonging to the right that allows the application to display the system level box on top of the other applications currently in use.
Disclosure of Invention
The application provides a method for displaying a popup frame, electronic equipment, a program product and a computer readable storage medium, and aims to reduce the probability that a system-level popup frame of an application program cannot be popup displayed under the condition that a first authority of the application program is not opened.
In order to achieve the above object, the present application provides the following technical solutions:
In a first aspect, the present application provides a method for displaying a frame applied to an electronic device, where the electronic device is installed with a first application, and the first application is configured with at least a first system-level frame, where the method for displaying a frame includes: displaying a first page; responding to a first operation of a first page, and starting a first application program to run; in the running process of the first application program, detecting that the electronic equipment meets the display condition of the first system-level popup frame, and detecting that the first operation belongs to the operation in the page of the first application program, displaying the first popup frame in the page of the first application program; the content of the first bullet frame is the same as that of the bullet frame of the first system-level bullet frame.
From the above, it can be seen that: when the first application detects that the system level popup frame of the first application needs to be popped up and displayed, the first operation belongs to the operation in the page of the first application, and the first popup frame is displayed in the page of the first application, so that the first authority of the first application is ensured not to be opened, and when the system level popup frame of the first application cannot be popped up and displayed, the content of the system level popup frame is displayed by displaying the form of the page popup frame on the page of the first application, and the probability that the system level popup frame of the application cannot be popped up and displayed when the first authority of the application is not opened is reduced.
In one possible implementation manner, the method for displaying the bullet frame further includes: in the running process of the first application program, detecting that the electronic equipment meets the display condition of the first system-level popup frame, and detecting that the first operation does not belong to the operation in the page of the first application program; and if the first application program is judged to belong to the foreground running state, displaying a page of the first application program, wherein a first popup frame is displayed on the page of the first application program.
In this possible implementation manner, in the running process of the first application program, it is detected that the electronic device meets the display condition of the first system level frame, and it is detected that the first operation does not belong to an operation in a page of the first application program, but the first application program currently belongs to a foreground running state, so that the first frame may be displayed on the page of the first application program, and the probability that the system level frame of the application program cannot be popped up for display in the case that the first authority of the application program is not opened may be further reduced.
In one possible implementation, detecting the manner in which the first operation belongs to an operation in a page of the first application program includes: acquiring a context of a first page; if the context of the first page indicates that the first page belongs to the page of the first application program, detecting that a first operation belongs to an operation in the page of the first application program; if the context of the first page indicates that the first page does not belong to the page of the first application, detecting that the first operation does not belong to an operation in the page of the first application.
In one possible implementation manner, detecting a manner that the electronic device meets a display condition of the first system-level frame includes: detecting that the electronic equipment is not in a network environment of the wireless local area network, detecting that the battery electric quantity of the electronic equipment does not reach a threshold value, detecting that the storage space of the electronic equipment is insufficient for storing an update installation package of an operating system of the electronic equipment, or detecting that the electronic equipment downloads and installs the update installation package of the operating system of the electronic equipment.
In one possible implementation, after displaying the first frame in the page of the first application program, the method further includes: receiving closing operation of the first elastic frame; and responding to the closing operation of the first popup frame, and displaying the page of the first application program.
In one possible embodiment, receiving a closing operation on the first sabot includes: and receiving left and right sliding operations input by a user on a page of the first application program or clicking operations on a specific control of the first popup frame, wherein the specific control is used for controlling to close the first popup frame.
In one possible implementation, after displaying the first frame in the page of the first application program, the method further includes: receiving a sliding operation input by a user at the lower edge of a page of a first application program; and responding to the upward sliding operation input by the user at the lower edge of the page of the first application program, displaying a second page, wherein the second page is a multi-task management interface. The multi-task management interface is used for displaying the interfaces of the applications of the opened electronic equipment, and each interface of the applications of the opened electronic equipment has an independent preview picture. The user can quickly enter the interface of the application by clicking on the separate preview screen.
In one possible implementation, before displaying the first frame in the page of the first application program, the method further includes: a first frame is created, the first frame being a non-system frame, typically a business frame.
In one possible implementation, an application framework layer of an electronic device includes a window management service, wherein: creating a first bullet box, comprising: the window management service creates a first box.
In a second aspect, the present application provides an electronic device comprising: one or more processors, memory, batteries, and a display screen; the memory, battery, and display screen are coupled to one or more processors, the memory is configured to store computer program code, the computer program code comprises computer instructions, and when the one or more processors execute the computer instructions, the electronic device performs the method of displaying a bullet box of any of the first aspects.
In a third aspect, the present application provides a computer-readable storage medium storing a computer program, which when executed is specifically configured to implement a method for displaying a frame according to any one of the first aspects.
In a fourth aspect, the present application provides a computer program product for, when run on a computer, causing the computer to perform the method of displaying a frame as claimed in any one of the first aspects.
Drawings
FIG. 1 is an interface diagram of a system level cartridge provided by an embodiment of the present application;
FIG. 2 is an interface diagram for searching an update installation package of an operating system of an electronic device according to an embodiment of the present application;
FIG. 3 is an interface diagram for looking up a first privilege of a software update application provided by an embodiment of the present application;
fig. 4 is a hardware structure diagram of an electronic device according to an embodiment of the present application;
FIG. 5 is a software framework diagram of an electronic device according to an embodiment of the present application;
FIG. 6 is an interface diagram of two types of bullet frames displayed on a software update application interface according to an embodiment of the present application;
Fig. 7 is a signaling diagram of a method for displaying a frame according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include, for example, "one or more" such forms of expression, unless the context clearly indicates to the contrary. It should also be understood that in embodiments of the present application, "one or more" means one, two, or more than two; "and/or", describes an association relationship of the association object, indicating that three relationships may exist; for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The plurality of the embodiments of the present application is greater than or equal to two. It should be noted that, in the description of the embodiments of the present application, the terms "first," "second," and the like are used for distinguishing between the descriptions and not necessarily for indicating or implying a relative importance, or alternatively, for indicating or implying a sequential order.
Before describing embodiments of the present application, some terms or concepts related to the embodiments of the present application will be explained first. It is to be understood that the terminology which follows is not intended to be limiting. Other designations are possible for the following terms. The renamed terms still satisfy the following related term explanations.
1) System level popup frames (dialogs), also known as system level popups, system popup frames, or system popups.
The system-level bullet belongs to a dialog box displayed on a window, and the dialog box can comprise data such as characters, icons and the like; the display window of the system-level bullet frame is not limited, and can be displayed on a desktop or an interface of any application installed on the device. It is to be briefly understood that the system level box may be displayed at the top level of other applications.
2) Business popup (dialogs), also known as business popup, page popup, or page popup.
The service bullet also belongs to a dialog box displayed on the window, and the dialog box can also comprise data such as characters, icons and the like. The service bullet frame is different from the system level bullet frame in that: the service bullet frame is an application bullet frame and can only be displayed on the interface of the application to which the service bullet frame belongs. In the scenario where the service bullet frame and the system-level bullet frame are displayed in a superimposed manner, the system-level bullet frame is typically displayed at an upper layer of the service bullet frame.
Fig. 1 illustrates two system level popup boxes for a mobile phone installed software update application. The software update can detect whether the operating system installed on the mobile phone has an updated version, and when the operating system installed on the mobile phone is detected to have the updated version, the operating system can be updated by using the updated version.
The software update detects that an update version exists in the operating system installed on the mobile phone, and the software update application responds to the authorization operation input by the user and can download and install an update installation package of the operating system. In general, in the process of downloading and installing the update installation package of the operating system by the software update application, it is required to ensure that the electric quantity of the mobile phone battery is sufficient to support the completion of the update of the operating system, that is, the electric quantity of the mobile phone battery reaches a threshold value, which may be, for example, 20% of the full electric quantity of the battery. Therefore, before the software update application downloads the update installation package of the operating system, a first system level popup frame needs to be generated to remind the user of paying attention to the electric quantity of the mobile phone. Illustratively, fig. 1 (a) shows a first system level spring box. As shown in fig. 1 (a), the display screen of the mobile phone displays a first system-level bezel 101, where the first system-level bezel 101 includes prompt information and controls, and the prompt information is used to remind the user that the electric quantity of the mobile phone needs to be ensured to be sufficient. The control is a 'determination' control, and a user can control the software update application to continuously execute the update installation package flow of downloading and installing the operating system by clicking the 'determination' control.
If the mobile phone is in a mobile network environment, the software update application downloads an update installation package of the operating system, which may bring about consumption of mobile traffic and generate traffic cost. Thus, the software update application should also generate a second system level box to alert the user to the generation of the traffic tariff. Illustratively, fig. 1 (b) shows a second system level spring box. As shown in fig. 1 (b), the display screen of the mobile phone displays a second system-level frame 102, where the second system-level frame 102 includes prompt information and controls, and the prompt information is used to remind the user that the mobile network environment downloads the update installation package to generate a traffic tariff. The controls comprise a 'continue' control and a 'cancel' control, a user can control the software update application to continuously execute the update installation package flow of downloading and installing the operating system by clicking the 'continue' control, and the user can control the software update application to cancel downloading and installing the update installation package of the operating system by clicking the 'cancel' control.
Fig. 1 illustrates two system level popups for a desktop display software update application of a mobile phone. Of course, the two system level boxes of the software update application may be displayed on other interfaces of the mobile phone, or on interfaces of any application in the mobile phone. It will be appreciated that the application of the handset is launched and the display displays the interface of the application. The software updating application of the mobile phone detects whether an operating system of the mobile phone has an updated version in parallel, if the software updating application detects that the operating system of the mobile phone has the updated version, the software updating application downloads and installs the updated version, and in the process of downloading and installing the updated version, the software updating application determines that the electronic equipment meets the display conditions of the two system level popup frames, and then the system level popup frames are displayed on an interface of an application program operated by the mobile phone. Of course, if the mobile phone does not run the application program, two system level popup frames of the software update application may be displayed on the interface where the mobile phone is currently turned on.
The software update application may also include other system level boxes, such as a box that alerts the user to a reboot of the cell phone, a box that alerts the user to insufficient storage space of the cell phone, and so on. Other system level boxes of the software update application, like the two system level boxes illustrated in fig. 1, are displayed when the software update application determines that the display conditions of the system level boxes are met.
It should be noted that, the system level popup frame of the software update application is displayed on the interface of the mobile phone, the user can only input clicking operation to the control in the system level popup frame of the software application, and input clicking operation to the interface of the mobile phone in the area outside the system level popup frame, and the mobile phone cannot respond to the clicking operation of the user. For example, as shown in fig. 1 (a) and (b), the user may input a click operation only to the controls in the system level box 101 and the system level box 102, and the mobile phone may respond to the click operation of the user and perform a corresponding procedure. The user clicks an icon of an application program displayed on an interface of the mobile phone, and the mobile phone does not respond to the clicking operation.
In some embodiments, the user may input a left-sliding operation or a right-sliding operation on the interface of the mobile phone, and the mobile phone may control the system-level bezel to disappear, i.e., close the system-level bezel, in response to the left-sliding operation or the right-sliding operation input by the user.
In the actual use process of the mobile phone, the user finds that: the software updating application of the mobile phone detects that an updated version exists in the operating system of the mobile phone, but the system-level popup frame generated by the software updating application is not popped up and displayed on the interface of the mobile phone. Illustratively, as shown in fig. 2 (a), a superscript ① appears on the icon 201 of the setup application on the interface of the mobile phone, where the superscript indicates that the software update application of the mobile phone detects that an updated version exists in the operating system of the mobile phone. As shown in fig. 2 (a) to (c), the user clicks the system and update control 202 on the interface of the setting application of the mobile phone and the software update control 203 on the interface of the system and update, respectively, so as to find the updated version of the operating system of the mobile phone.
The software updating application of the mobile phone detects that an updating version exists in the operating system of the mobile phone, a system level popup frame generated by the software updating application is not popped up and displayed, the mobile phone cannot receive the operation input by a user on a control in the system level popup frame, the mobile phone cannot respond to the operation input by the user to execute the updating flow of the operating system, and the operating system of the mobile phone cannot be updated correspondingly.
The inventor researches find that: for application programs on the mobile phone, the mobile phone is configured with a first authority, and the first authority can be called as an authority of displaying on the upper layer of other applications or an authority of displaying on the upper layer of other applications. The first authority is as follows: allowing the application to display its own popup frame at the top of other applications currently in use. The first authority is usually a system level popup frame for an application program, and if the first authority of an application program is opened, the system level popup frame of the application program can be displayed on interfaces of other applications of the mobile phone or interfaces of the mobile phone; if the first authority of the first application program is closed, the system level popup frame of the application program cannot be displayed on interfaces of other applications of the mobile phone or interfaces of the mobile phone, and cannot be displayed on interfaces of the application program.
Based on the above, the software updating application of the mobile phone detects that the operating system of the mobile phone has an updated version, and the system level popup frame generated by the software updating application is not popped up for display, so that the first authority of the software updating application is closed.
Illustratively, FIG. 3 is an interface diagram illustrating a first authority of a software update application. A control in the following is understood to be a button, which is an icon that can be operated by a user and displayed on an interface.
As shown in fig. 3 (a), the user clicks the "privacy" control 301 on the interface of the setup application, and the mobile phone displays the interface of privacy in response to the clicking operation of the user. The user clicks on the "rights management" control 302 on the privacy interface as shown in fig. 3 (b), and the handset displays the rights management interface in response to the clicking operation of the user. The user clicks on the control 303 of the hidden item, and the mobile phone displays a box 304 of the hidden item on the rights management interface in response to the clicking operation of the user, as shown in fig. 3 (c).
The user clicks the "special access right" control included in the bullet box 304 of the hidden item as shown in (d) of fig. 3, and the mobile phone displays an interface of the special access right as shown in (e) of fig. 3 in response to the clicking operation of the user. The interface of the special access right displays the right of the upper layer displayed on other applications, namely the first right. The user clicks the "display on top of other applications" right control 305 as shown in fig. 3 (e), and the mobile phone displays an interface of "display on top of other applications" right in response to the clicking operation of the user, and the interface of "display on top of other applications" right displays a plurality of application programs installed by the mobile phone configured with the first right as shown in fig. 3 (f).
Of course, the user may also use other ways to control the mobile phone to display the interface of the "display on top of other applications" right shown in fig. 3 (f). The embodiment of the present application is not particularly limited in this regard. For example, the user may also control the mobile phone to display the interface of the application by clicking the "application" control shown in fig. 3 (a), then click "rights management" on the interface of the application, control the mobile phone to display the rights management interface shown in fig. 3 (c), and then control the mobile phone to display the rights interface "displayed on the upper layer" of other applications by operating as shown in fig. 3 (c) to 3 (e).
The plurality of application programs displayed on the interface of the "upper layer displayed on other applications" authority include a software update application. The user clicks on a control 306 of the software update application, and the mobile phone displays a control interface of the first authority of the software update application in response to the clicking operation of the user, as shown in (f) of fig. 3. The control interface for the first right of the software update application is shown in fig. 3 (g), and the user can control the opening or closing of the first right by clicking the control 307.
It should also be noted that, on the control interface of the first authority of the software update application shown in (g) in fig. 3, the control 307 may be operated by the user. In some embodiments, the control 307 may also be a control that cannot be operated by the user, the control 307 defaults to an off state, i.e., the first authority of the software application defaults to off.
From the above, it can be seen that: if the first authority of the application program is closed, the system level popup frame of the application program cannot be popped up and displayed, so that the execution of the functions of the application program is affected.
Based on the above, the embodiment of the application provides a display method of a bullet frame. In addition, the display method of the bullet frame provided by the embodiment of the application can be applied to electronic equipment such as mobile phones, tablet computers, personal digital assistants (Personal DIGITAL ASSISTANT, PDA), desktop, laptop, notebook computers, ultra-mobile Personal Computer (UMPC), handheld computers, netbooks, wearable equipment and the like.
Taking a mobile phone as an example, fig. 4 is a composition example of an electronic device according to an embodiment of the present application. As shown in fig. 4, the electronic device 400 may include a processor 410, an internal memory 420, a sensor module 430, a mobile communication module 440, a wireless communication module 450, a display 460, and the like.
It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 400. In other embodiments, electronic device 400 may include more or fewer components than shown, or may combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 410 may include one or more processing units, such as: the processor 410 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, a smart sensor hub (sensor hub) and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
A memory may also be provided in the processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may hold instructions or data that the processor 410 has just used or recycled. If the processor 410 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided, reducing the latency of the processor 410 and thus improving the efficiency of the system.
The internal memory 420 may be used to store computer-executable program code that includes instructions. The processor 410 executes instructions stored in the internal memory 420 to thereby perform various functional applications and data processing of the electronic device 400. The internal memory 420 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 400 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 410 performs various functional applications and data processing of the electronic device 400 by executing instructions stored in the internal memory 420 and/or instructions stored in a memory provided in the processor.
In some embodiments, internal memory 420 stores instructions for executing the generation and display of a box. The processor 410 may implement control electronics to generate a frame by executing instructions stored in the internal memory 420 and display the frame on a display screen.
The electronic device implements display functions through the GPU, the display screen 460, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 460 and the application processor. GPUs are used for image rendering by performing mathematical and geometric calculations. Processor 410 may include one or more GPUs that execute program instructions to generate or change display information.
The display 460 is used to display images, video interfaces, etc. The display 460 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) screen (liquid CRYSTAL DISPLAY), an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (flex), miniled, microLed, micro-OLED, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device may include 1 or N displays 460, N being a positive integer greater than 1.
The wireless communication function of the electronic device 400 may be implemented by the antenna 1, the antenna 2, the mobile communication module 440, the wireless communication module 450, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in electronic device 400 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 440 may provide a solution for wireless communication, including 2G/3G/4G/5G, as applied to the electronic device 400. The mobile communication module 440 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 440 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, etc., on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 440 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves to radiate the electromagnetic waves through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 440 may be disposed in the processor 410. In some embodiments, at least some of the functional modules of the mobile communication module 440 may be disposed in the same device as at least some of the modules of the processor 410.
The wireless communication module 450 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., as applied to the electronic device 400. The wireless communication module 450 may be one or more devices that integrate at least one communication processing module. The wireless communication module 450 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 410. The wireless communication module 450 may also receive a signal to be transmitted from the processor 410, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In the sensor module 430, the pressure sensor 430A is configured to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 430A may be disposed on display screen 460. The pressure sensor 430A is of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 430A, the capacitance between the electrodes changes. The electronics determine the strength of the pressure from the change in capacitance. When a touch operation is applied to the display 460, the electronic apparatus detects the touch operation intensity according to the pressure sensor 430A. The electronic device may also calculate the location of the touch based on the detection signal of the pressure sensor 430A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions.
Touch sensor 430B, also referred to as a "touch device". The touch sensor 430B may be disposed on the display 460, and the touch sensor 430B and the display 460 form a touch screen, which is also referred to as a "touch screen". The touch sensor 430B is used to detect a touch operation acting on or near it. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 460. In other embodiments, the touch sensor 430B may also be disposed on the surface of the electronic device at a different location than the display 460.
In addition, above the above components, the electronic device runs an operating system. For exampleOperating System,/>Operating System,/>An operating system, etc. Running applications may be installed on the operating system.
Fig. 5 is a schematic software structure of an electronic device according to an embodiment of the present application.
The layered architecture divides the operating system of the electronic device into several layers, each layer having distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the operating system of the electronic device is an Android system. The Android system can be divided into four layers, namely an Application (APP) layer, an application framework layer (abbreviated as FWK), a system library and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 5, the application packages may include applications such as gallery, map, calendar, talk, camera, software update applications, and the like.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 5, the application framework layer may include a window management service (WindowManagerService, WMS), a content provider, a telephony manager, and a resource manager, among others.
The window management service is used to manage window programs. The window management service can realize the addition, deletion, display, hiding control and the like of the window.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
Android run time includes a core library and virtual machines. Android runtime is responsible for scheduling and management of the android system. In some embodiments of the present application, the application cold start may run in Android runtime, android runtime obtains the optimized file state parameter of the application from this, and Android runtime may determine whether the optimized file is outdated due to the system upgrade by using the optimized file state parameter, and return the determination result to the application management and control module.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The two-dimensional graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer contains at least display driver, sensor driver, etc. In some embodiments, the display driver is used to control the display screen to display an image; the sensor drive is used to control operation of a plurality of sensors, such as control operation of a pressure sensor and a touch sensor.
Under the four-layer architecture, the receiving device is further provided with a hardware layer, and the hardware layer may include the aforementioned hardware components of the electronic device. By way of example, fig. 3 illustrates a display screen.
It should be noted that although the embodiments of the present application are described in the followingThe system is described by way of example, but the basic principle is equally applicable to/>And the like operating the electronic device of the system.
In the following, referring to fig. 6, a mobile phone is taken as an example, and an interface in a process of executing the method for displaying a bullet frame provided by the embodiment of the application by the mobile phone is described.
For example, the user may instruct the mobile phone to open the software update application by inputting voice, a blank gesture, or the like, as shown in fig. 2, and the mobile phone displays a page of the software update application in response to an operation of opening the software update application by the user. Illustratively, (a) in fig. 6 detects for the software update application that an updated version of the operating system of the handset is present.
As shown in (a) of fig. 6, the page of the software update application includes: information of updated version of the operating system of the handset, and "download and install" control 601; the "download and install" control 601 is used to control the software update application to download and install an updated version of the operating system to complete the upgrade of the operating system of the handset.
The user clicks on the "download and install" control 601 as shown in fig. 6 (a) to initiate the flow of the software update application to perform the update installation package that downloads and installs the operating system. And in the process of executing the process of downloading and installing the update installation package of the operating system by the software update application, judging that the mobile phone meets the display condition of the system-level bullet frame of the software update application, and displaying the bullet frame content of the system-level bullet frame of the software update application by adopting the bullet frame display method provided by the embodiment of the application.
For example, (c) and (d) in fig. 6 show a method for displaying a box of a mobile phone according to an embodiment of the present application, where box contents of two system-level boxes of the software update application shown in fig. 1 are displayed on a page of the software update application.
Specifically, (c) in fig. 6 shows a box 603 on a page of the software update application, where the box content of the box 603 is the box content of the first system-level box of the software update application. As shown in fig. 6 (c), the bullet box 603 includes a prompt message for reminding the user that the electric quantity of the mobile phone needs to be ensured to be sufficient, and a "determination" control for controlling the software update application to continue to execute the process of downloading and installing the update installation package of the operating system.
Fig. 6 (d) shows a box 604 on a page of the software update application, where the box content of the box 604 is the box content of the second system level box of the software update application. As shown in fig. 6 (d), the bullet box 604 includes prompt information and a control, where the prompt information is used to remind the user that downloading the update package in the mobile network environment will generate a traffic tariff. The controls comprise a 'continue' control and a 'cancel' control, a user can control the software update application to continuously execute the flow of downloading and installing the update installation package of the operating system by clicking the 'continue' control, and the user can control the software update application to cancel downloading and installing the update installation package of the operating system by clicking the 'cancel' control.
The software updating application detects that the operating system of the mobile phone has an updated version, and the mobile phone can display reminding information in a notification bar so as to remind a user that the operating system of the mobile phone has the updated version. For example, as shown in fig. 6 (a), the user may input a pull-down operation along the upper edge of the page of the software update application, and the mobile phone displays a notification bar of the mobile phone in response to the pull-down operation input by the user. The notification bar of the mobile phone comprises: information of an updated version of the operating system of the handset and an "update immediately" control 602; an "immediate update" control 602 is associated with the software update application for controlling the software update application to download and install an updated version of the operating system to complete the upgrade of the operating system of the handset.
The user clicks on the "update immediately" control 602 as shown in fig. 6 (b) to initiate the flow of the software update application to download and install the update installation package for the operating system. And in the process of executing the process of downloading and installing the update installation package of the operating system by the software update application, judging that the mobile phone meets the display condition of the system-level bullet frame of the software update application, and displaying the bullet frame content of the system-level bullet frame of the software update application by adopting the bullet frame display method provided by the embodiment of the application. Illustratively, the box content of two system level boxes for the software update application may be as shown in fig. 6 (c) and (d).
It will be appreciated that (c) and (d) in fig. 6 are shown as: and displaying the popup frame contents of the two system-level popup frames on the page of the software updating application. Of course, the page of the software updating application also comprises other system level popup frames, and when the mobile phone meets the display conditions of other system level popup frames in the upgrading process of executing the operating system, the mobile phone can also display the popup frame contents of other system level popup frames on the page of the software updating application by adopting the popup frame display method provided by the embodiment of the application.
The popup frame content of the display system-level popup frame on the page of the software update application means that: the mobile phone generates a page popup frame, and displays the page popup frame on a page of the software updating application, wherein the content of the page popup frame is the content contained in a system-level popup frame of the software updating application.
It should be noted that, after the page of the software update application displays the popup frame, the user may only input a click operation to the control in the popup frame of the page of the software update application. The user inputs clicking operation to the area of the interface of the mobile phone outside the popup frame, and the mobile phone cannot respond to the clicking operation of the user. In some embodiments, the user may enter a left-slide, right-slide, or up-slide operation on a page of the software update application, and the cell phone may control the bezel to disappear in response to the left-slide or right-slide operation entered by the user. The mobile phone responds to the up-sliding operation input by the user, controls the flick frame to disappear, controls and displays a multi-service management interface, wherein the multi-service management interface is used for displaying the interface of the application of the opened electronic equipment, and each interface of the application of the opened electronic equipment is provided with an independent preview picture. The user can quickly enter the interface of the application by clicking on the separate preview screen.
In other embodiments, the user may only input a sliding operation on a page of the software update application, and the machine may control the frame to disappear and control the multi-service management interface to be displayed in response to the sliding operation input by the user.
Illustratively, as shown in fig. 6 (c) and (d), a box 603 or a box 604 is displayed on the page of the software update application. The user may enter a left, right, or up-slide operation on a page of the software update application, although a click operation may also be entered on a control in box 603 or box 604.
The following describes a method for displaying a frame in accordance with an embodiment of the present application, taking a software update application as an example, in conjunction with a functional module in a software structure of an electronic device shown in fig. 5. Of course, for other applications installed on the electronic device, the method for displaying a frame of the application provided in the following embodiment may also be used to display a frame of the application.
Fig. 7 illustrates a signaling diagram of a method for displaying a frame according to an embodiment of the present application.
As shown in fig. 7, a method for displaying a frame according to an embodiment of the present application includes:
s701, the software update application receives a first operation input by a user on a first page.
The first operation is the authorization operation of the user for updating the operating system and is used for triggering the electronic equipment to finish the upgrading of the operating system.
In some embodiments, the software update application detects that a new version exists in the operating system, a page of the software update application may be updated, and the page of the updated software update application may display version information of the new version and a control, where the control is used to control the electronic device to complete upgrading of the operating system. Illustratively, the software update application detects that a new version of the page exists for the operating system, as shown in (a) of FIG. 6.
In other embodiments, the software update application detects that a new version of the operating system exists, and the software update application may also display, via the notification bar, reminder information and controls that are also used to control the electronic device to complete an upgrade of the operating system. Illustratively, the reminder bar of the mobile phone reminds the software update application that a new version of the operating system is present on the page, as shown in fig. 6 (b).
Based on this, the user may click on a control on a page of the software update application or on a notification bar page to enable the input of the first operation. I.e. the first page of the user input first operation may be a page of a software update application or a notification bar page.
S702, the software updating application responds to a first operation of a user and executes an upgrading process of the operating system. The software update application detects that the electronic device is in a first state during an upgrade process executing the operating system.
Because the first operation input by the user is an authorized operation of the user for updating the operating system, the software update application can download and install the update installation package of the operating system in response to the first operation. The software update application downloads and installs an update installation package of the operating system, which can be understood as the update process of the operating system executed by the software update application.
In some embodiments, the user enters a first operation on a first page, in response to which the software update application may send a broadcast message indicating that the software update application is to update the operating system of the electronic device. The software update application may also receive the broadcast message, after which the software update application may execute an upgrade procedure of the operating system. Of course, the following step S703 may also be performed.
In the process of executing the upgrading process of the operating system by the software updating application, the state of the electronic equipment can be synchronously detected, and whether the electronic equipment is in a first state is detected, wherein the first state can be understood that the electronic equipment meets the display condition of the system-level popup frame of the software updating application.
In some embodiments, the software update application includes a plurality of system level boxes, which may include: two system-level popup frames shown in fig. 1, a popup frame for reminding a user of restarting a mobile phone, a popup frame for reminding a user of insufficient storage space of the mobile phone, and the like.
The software updating application can detect whether the electronic equipment meets the display condition of any system-level popup frame of the software updating application. The software updating application detects that the electronic device meets the display condition of any system-level popup frame of the software updating application, and the software updating application detects that the electronic device is in a first state.
The software updating application detects the running state of the electronic equipment and obtains the running parameters of the electronic equipment. The software update application may determine whether the electronic device is in the first state using the operating parameters of the electronic device.
In some embodiments, if the operation parameter of the electronic device indicates that the electronic device is in a network environment of the wireless local area network, the electric quantity of the battery does not reach the threshold value, the storage space of the electronic device can support storing the update installation package, and the software update application detects that the electronic device meets the display condition of the first system-level frame, that is, the generation requirement of the frame for reminding the user of focusing on the electric quantity of the electronic device.
If the operation parameters of the electronic equipment indicate that the electronic equipment is not in the network environment of the wireless local area network, the electric quantity of the battery reaches a threshold value, and the storage space of the electronic equipment can support storing and updating installation packages, the software updating application detects that the electronic equipment meets the display condition of the second system-level bullet frame, namely the generation requirement of the bullet frame for reminding the user of the generation of the flow tariffs.
If the operation parameters of the electronic equipment indicate that the electronic equipment is in a network environment of the wireless local area network, the electric quantity of the battery reaches a threshold value, and the storage space of the electronic equipment is insufficient to support storing the update installation package, the software update application detects that the electronic equipment meets the display condition of the bullet frame for reminding the user that the storage space of the mobile phone is insufficient.
If the operation parameters of the electronic equipment indicate the electronic equipment to download and install the update installation package of the operating system, the software update application detects that the electronic equipment meets the display condition of the bullet frame for reminding the user of restarting the mobile phone.
S703, the software updating application responds to a first operation of a user to acquire the context of the first page.
The context (context) of the first page includes information of the first page, such as an identifier, a name or a type of the first page. The information user of the first page indicates the identity of the first page.
S704, the software updating application judges whether the first operation belongs to the operation in the page of the software updating application by utilizing the context of the first page.
As in the previous step S703, the context of the first page includes information of the first page, which may indicate the identity of the first page. Accordingly, the software update application determines whether the first page is a page (Activity) using the context of the first page, and determines whether the first page belongs to a page of the software update application.
If the context of the first page indicates that: the first page is a page (Activity) and indicates that the first page also belongs to a page of the software update application. The software update application may determine that the first operation belongs to an operation in a page of the software update application. Otherwise, the software update application determines that the first operation does not belong to an operation in a page of the software update application.
It should be noted that, after any one application program of the electronic device is started, during the running process of the application program, the page name (or called the identifier or the type of the page ACTIVITYNAME) of the opened page of the application program is saved in the map (map) of the application program. Based on this, the software update application may utilize the page information of the first page to find from the map of the software update application. If the page information of the first page can be found in the map of the software updating application, the first page is indicated to belong to the page of the software updating application.
In some embodiments, the context of the first page may further include: and indication information for indicating whether the context does not belong to the invalid information. When the indication information indicates that the context does not belong to the invalid information and the first page is a page (Activity), and indicates that the first page also belongs to a page of the software update application, the software update application may determine that the first operation belongs to an operation in the page of the software update application. Otherwise, the software update application determines that the first operation does not belong to an operation in a page of the software update application.
If the software update application uses the context of the first page to determine that the first operation belongs to an operation in the page of the software update application, executing step S705 and step S706; the software update application uses the context, and if it is determined that the first operation does not belong to an operation in a page of the software update application, step S707 and step S711 are performed.
Referring to fig. 6, the first page is the software update application page shown in (a) in fig. 6, and the user inputs the first operation on the software update application page, and step S704 may determine that the first operation belongs to the operation in the page of the software update application by using the context of the first page.
The first page is a notification bar page shown in fig. 6 (b), and the user inputs a first operation on the notification bar page, and step S704 may determine that the first operation does not belong to an operation in the page of the software update application by using the context of the first page.
It should be noted that fig. 7 shows an execution sequence of the steps S702, S703 and S704. The software update application may execute step S702 in parallel with both steps S703 and S704 using different processes. The software update application may execute step S705 or step S707 using the execution result of step S702 and the execution result of step S704.
S705, the software update application sends a control instruction to the window management service to control creation of the page box, where the control instruction carries the box type.
The window management server is a module of the application framework layer, and can implement addition, deletion, display, hiding control and the like of the window. Thus, the window management service has the function of generating a box, and the software update application sends the box type of the box to the window management service (dialogType).
The software update application may detect that the electronic device is in the first state and determine a frame type of the system level frame corresponding to the first state using the foregoing step S702. Typically, the types of the bullet frame include: the content and format of the bullet frame are prompt information and controls included in the bullet frame, and the format of the bullet frame can be understood as the size of the bullet frame.
S706, the window management service creates a page popup frame corresponding to the popup frame type, and controls the page popup frame to be displayed on the page of the software updating application.
And the window management service receives the control instruction, and creates a page popup frame corresponding to the popup frame type by utilizing the popup frame type. The page popup frame is a page popup frame of the software update application and can only be displayed on a page of the software update application.
Illustratively, fig. 6 (c) shows: the box 603 is displayed on a page of the software update application, and the box content of the box 603 is the box content of the first system-level box of the software update application set forth above.
Fig. 6 (d) shows: the box 604 is displayed on the page of the software update application, and the box content of the box 604 is the box content of the second system-level box of the proposed software update application.
In the embodiment of the application, when the user inputs the first operation on the page of the software updating application to start the upgrade of the operating system, and the software updating application detects that the system level popup frame of the user needs to be popped up for display, the context of the page of the software updating application is utilized to judge that the first operation belongs to the operation in the page of the software updating application, then the window management service is controlled to create the page popup frame, and the page popup frame is controlled to be displayed on the page of the software updating application, so that the first authority of the software updating application is ensured to be unopened, and when the system level popup frame of the software updating application cannot be popped up for display, the content of the system level popup frame is displayed by displaying the page popup frame on the page of the software updating application, thereby realizing that the first authority of the software updating application is unopened, and the system level popup frame of the software updating application can also be popped up for display.
S707, the software updating application judges whether the software updating application is in a foreground running state.
The software updating application judges whether the software updating application runs in the foreground or not, and if the software updating application judges that the software updating application runs in the foreground, the software updating application is in a foreground running state.
In the foregoing step S704, the software updating application uses the context of the first page to determine that the first operation does not belong to an operation in the page of the software updating application, and if the user inputs the first operation in the page of the notification bar shown in (b) in fig. 6, the first operation does not belong to an operation in the page of the software updating application.
In order to enable the user to input the first operation on the notification bar page of the electronic device, in the process of triggering the software update application to execute the upgrade procedure of the operating system, the frame content of the system-level frame of the software update application may also be displayed. When the software update application determines that the first operation does not belong to an operation in the page of the software update application by using the context of the first page, the software update application executes step S707 to determine whether the software update application is in a foreground running state, and when the software update application is in the foreground running state, the system level popup frame content is displayed on the page of the software update application by using steps S708 and S709 described below.
In some embodiments, the software update application may utilize its own processes to determine whether the pages of the software update application include pages that are interactable with the user, i.e., pages that are visible to the user and operable by the user, to determine whether themselves are in a foreground running state.
The software updating application judges that the software updating application is in a foreground running state, and then step S707 and step S708 are executed; the software updating application judges that the software updating application is not in the foreground running state, and then step S709 and step S710 are executed.
S708, the software update application sends a control instruction to the window management service to control creation of the page box, where the control instruction carries the box type.
The specific implementation manner of step S708 can be referred to the content of step S705, and will not be described herein.
S709, the window management service creates a page popup frame corresponding to the popup frame type, and controls the page popup frame to be displayed on the page of the software updating application.
The specific implementation manner of step S709 can be seen in the content of step S706, and will not be described herein.
It should be noted that, the window management service control displays a page box on a page of the software update application, which can be understood as: the window management service sets the display position of the page popup frame as the page of the software update application. Thus, when the user closes the notification bar and the electronic device displays the page of the software update application, the page popup is synchronously displayed in the page of the software update application.
S710, the software updating application sends a control instruction to the window management service to control the creation of the system-level popup, wherein the control instruction carries the popup type.
If the software updating application judges that the software updating application is in the background running state, the page of the software updating application is invisible to the user. The interface currently displayed by the display screen of the electronic device can only display the system level popup, and based on the interface, the software updating application control window management service creates the system level popup.
S711, the window management service creates a system-level bullet frame corresponding to the bullet frame type, and controls the display of the system-level bullet frame.
The window management service receives the control instruction and can generate a system level box by using the box type in response to the control instruction. And after the window management service creates the system-level bullet frame, the display screen can be controlled to display the system-level bullet frame. Of course, the window management service may display the system level frame through the display driver control display screen, and display the system level frame at an upper layer of an interface of other applications displayed on the display screen.
In some embodiments, the window management service creates a SYSTEM level box corresponding to the box type, which may be referred to as windowmanager. The window management service may create a box corresponding to the box type, and set the created box to be at a SYSTEM level, that is, set the created box to be a SYSTEM, so as to implement creation of the SYSTEM-level box.
It should be noted that, if the first authority of the software update application is not opened, the window management service creates a system level frame that cannot be popped up for display, and the upgrade process of the operating system is forced to be interrupted until the first authority is opened again.
Another embodiment of the application also provides a computer-readable storage medium having instructions stored therein, which when run on a computer or processor, cause the computer or processor to perform one or more steps of any of the methods described above.
The computer readable storage medium may be a non-transitory computer readable storage medium, for example, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Another embodiment of the application also provides a computer program product containing instructions. The computer program product, when run on a computer or processor, causes the computer or processor to perform one or more steps of any of the methods described above.

Claims (14)

1. The display method of the popup frame is characterized by being applied to electronic equipment, wherein a first application program is installed on the electronic equipment, the first application program is at least configured with a first system-level popup frame, and the display method of the popup frame comprises the following steps:
Displaying a first page;
Responding to a first operation of the first page, and starting the first application program to run;
In the running process of the first application program, detecting that the electronic equipment meets the display condition of the first system-level popup frame, detecting that the first operation belongs to the operation in the page of the first application program, and further determining that the first authority of the first application program is not opened, and displaying the first popup frame in the page of the first application program; the first system level popup frame is the same as the popup frame in content, and the first authority of the first application program is not allowed to be displayed under the condition that the first authority of the first application program is not opened.
2. The method of displaying a sabot of claim 1, further comprising:
In the running process of the first application program, detecting that the electronic equipment meets the display condition of the first system-level frame and detecting that the first operation does not belong to the operation in the page of the first application program;
And if the first application program is judged to belong to the foreground running state, displaying a page of the first application program, wherein the page of the first application program is displayed with the first popup frame.
3. The method for displaying a frame according to claim 1 or 2, wherein the detecting that the first operation belongs to an operation in a page of the first application program includes:
acquiring the context of the first page;
if the context of the first page indicates that the first page belongs to the page of the first application program, detecting that the first operation belongs to an operation in the page of the first application program; and if the context of the first page indicates that the first page does not belong to the page of the first application program, detecting that the first operation does not belong to the operation in the page of the first application program.
4. The method for displaying a frame according to claim 1 or 2, wherein the detecting the manner in which the electronic device satisfies the display condition of the first system-level frame includes:
Detecting that the electronic equipment is not in a network environment of a wireless local area network, detecting that the battery electric quantity of the electronic equipment does not reach a threshold value, detecting that the storage space of the electronic equipment is insufficient for storing an update installation package of an operating system of the electronic equipment, or detecting that the electronic equipment downloads and installs the update installation package of the operating system of the electronic equipment.
5. The method for displaying a frame according to claim 1, further comprising, after displaying a first frame in a page of the first application:
receiving a closing operation of the first elastic frame;
And responding to the closing operation of the first popup frame, and displaying the page of the first application program.
6. The method of claim 5, wherein receiving a closing operation of the first frame comprises:
and receiving left and right sliding operations input by a user on a page of the first application program or clicking operations on a specific control of the first popup frame, wherein the specific control is used for controlling to close the first popup frame.
7. The method of claim 5, further comprising, after displaying the first frame in the page of the first application:
receiving a sliding operation input by a user at the lower edge of a page of the first application program;
and responding to the upward sliding operation input by the user at the lower edge of the page of the first application program, displaying a second page, wherein the second page is a multi-task management interface.
8. The method of displaying a frame according to claim 1,2, 5, 6, or 7, further comprising, before displaying a first frame in a page of the first application:
and creating the first bullet frame.
9. The method of claim 8, wherein the application framework layer of the electronic device includes a window management service, wherein:
the creating the first bullet frame includes: the window management service creates the first box.
10. The method for displaying a frame according to claim 3, wherein the detecting the manner in which the electronic device satisfies the display condition of the first system-level frame includes:
Detecting that the electronic equipment is not in a network environment of a wireless local area network, detecting that the battery electric quantity of the electronic equipment does not reach a threshold value, detecting that the storage space of the electronic equipment is insufficient for storing an update installation package of an operating system of the electronic equipment, or detecting that the electronic equipment downloads and installs the update installation package of the operating system of the electronic equipment.
11. The method of claim 3, further comprising, prior to displaying the first frame in the page of the first application:
and creating the first bullet frame.
12. The method of claim 4, further comprising, prior to displaying the first frame in the page of the first application:
and creating the first bullet frame.
13. An electronic device, comprising:
one or more processors, memory, batteries, and a display screen;
the memory, the battery, and the display screen being coupled to the one or more processors, the memory being for storing computer program code comprising computer instructions that, when executed by the one or more processors, perform the method of displaying a bezel as recited in any of claims 1 to 12.
14. A computer readable storage medium for storing a computer program, which, when executed, is adapted to carry out the method of displaying a frame according to any one of claims 1 to 12.
CN202211334899.1A 2022-10-28 2022-10-28 Method for displaying bullet frame, electronic device and readable medium Active CN116679999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211334899.1A CN116679999B (en) 2022-10-28 2022-10-28 Method for displaying bullet frame, electronic device and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211334899.1A CN116679999B (en) 2022-10-28 2022-10-28 Method for displaying bullet frame, electronic device and readable medium

Publications (2)

Publication Number Publication Date
CN116679999A CN116679999A (en) 2023-09-01
CN116679999B true CN116679999B (en) 2024-05-03

Family

ID=87789651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211334899.1A Active CN116679999B (en) 2022-10-28 2022-10-28 Method for displaying bullet frame, electronic device and readable medium

Country Status (1)

Country Link
CN (1) CN116679999B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993084A (en) * 2017-02-28 2017-07-28 努比亚技术有限公司 The method, device and mobile terminal that a kind of control information is shown
CN107463396A (en) * 2017-06-21 2017-12-12 北京珠穆朗玛移动通信有限公司 Method, mobile terminal and the device with store function of application program update
CN109032730A (en) * 2018-07-09 2018-12-18 武汉斗鱼网络科技有限公司 A kind of bullet frame methods of exhibiting, terminal installation and storage medium
CN109634609A (en) * 2018-12-21 2019-04-16 江苏满运软件科技有限公司 Display methods, system, equipment and the storage medium of dynamic pop-up
CN115033317A (en) * 2021-11-10 2022-09-09 荣耀终端有限公司 Bullet frame processing method and device, electronic equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993084A (en) * 2017-02-28 2017-07-28 努比亚技术有限公司 The method, device and mobile terminal that a kind of control information is shown
CN107463396A (en) * 2017-06-21 2017-12-12 北京珠穆朗玛移动通信有限公司 Method, mobile terminal and the device with store function of application program update
CN109032730A (en) * 2018-07-09 2018-12-18 武汉斗鱼网络科技有限公司 A kind of bullet frame methods of exhibiting, terminal installation and storage medium
CN109634609A (en) * 2018-12-21 2019-04-16 江苏满运软件科技有限公司 Display methods, system, equipment and the storage medium of dynamic pop-up
CN115033317A (en) * 2021-11-10 2022-09-09 荣耀终端有限公司 Bullet frame processing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN116679999A (en) 2023-09-01

Similar Documents

Publication Publication Date Title
WO2020181988A1 (en) Speech control method and electronic device
CN113434288B (en) Memory management method and electronic equipment
CN111459715A (en) Application exception recovery
US20180121067A1 (en) Electronic device having hole area and method of controlling hole area thereof
CN113791850B (en) Information display method and electronic equipment
CN113805744A (en) Window display method and electronic equipment
EP4373062A1 (en) Display method, electronic device, and storage medium
EP4170476A1 (en) Translation method and electronic device
CN110995917A (en) Screen locking and unlocking method and mobile terminal
CN108780400B (en) Data processing method and electronic equipment
CN115794361A (en) Method for managing memory and electronic equipment
CN114115618A (en) Application window display method and electronic equipment
CN116431044A (en) Method and device for starting application program and terminal equipment
US20230300240A1 (en) Lock Screen Display Method for Electronic Device and Electronic Device
CN116679999B (en) Method for displaying bullet frame, electronic device and readable medium
CN116048830B (en) Method for reminding of software version upgrade, electronic equipment and readable storage medium
CN116680000B (en) Method for displaying bullet frame, electronic device and readable medium
CN115835135A (en) CELL fence matching method and electronic equipment
WO2021197242A1 (en) Copying and pasting method, electronic device and system
CN115033193A (en) Screen rotation processing method, screen rotation processing device, screen rotation processing medium and electronic equipment
CN116048317B (en) Display method and device
WO2024114280A1 (en) Application permission activation method, medium, and electronic device
CN116055611B (en) Execution method of drawing operation, electronic device and readable medium
CN116672707B (en) Method and electronic device for generating game prediction frame
CN117632211A (en) Application program updating method, electronic device and readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant