CN116700866A - Window drawing method and device and electronic equipment - Google Patents

Window drawing method and device and electronic equipment Download PDF

Info

Publication number
CN116700866A
CN116700866A CN202310622932.9A CN202310622932A CN116700866A CN 116700866 A CN116700866 A CN 116700866A CN 202310622932 A CN202310622932 A CN 202310622932A CN 116700866 A CN116700866 A CN 116700866A
Authority
CN
China
Prior art keywords
application program
window
attribute information
starting
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310622932.9A
Other languages
Chinese (zh)
Inventor
陈文斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310622932.9A priority Critical patent/CN116700866A/en
Publication of CN116700866A publication Critical patent/CN116700866A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application discloses a window drawing method, a window drawing device and electronic equipment, and belongs to the technical field of communication. The window drawing method comprises the following steps: style attribute information of a starting window of each application program is stored in a memory; receiving input for starting a target application program; responding to the input, and reading style attribute information of a starting window of the target application program from the memory; and drawing the starting window of the target application program according to the style attribute information of the starting window of the target application program.

Description

Window drawing method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a window drawing method, a device and electronic equipment.
Background
In the Android system, all resources of some recently used applications are typically cached in memory. When a user starts an application program by clicking a desktop icon, the system acquires some attribute information, such as a theme, according to the resource of the application program, and sets the style and style of a start window. If the resource data of the application program is cached in the memory, the resource data can be directly read from the memory without being loaded from a disk, so that the starting speed and the response speed of the application program are improved. However, the space of the memory is limited, and the memory occupied by all the resources of the application program is relatively large, so that the number of the application programs which can be cached in the memory is limited, usually only a few application programs are required, the probability of hitting the cache when the application program is started is relatively low, and if the cache is not hit, the application programs need to be loaded from a disk, and the efficiency is low.
Disclosure of Invention
The embodiment of the application aims to provide a window drawing method, a window drawing device and electronic equipment, which improve the cache hit rate and improve the efficiency of drawing a starting window of an application program.
In a first aspect, an embodiment of the present application provides a window drawing method, where the method includes:
style attribute information of a starting window of each application program is stored in a memory;
receiving input for starting a target application program;
responding to the input, and reading style attribute information of a starting window of the target application program from the memory;
and drawing the starting window of the target application program according to the style attribute information of the starting window of the target application program.
In a second aspect, an embodiment of the present application provides a window drawing apparatus, including:
the storage module is used for storing style attribute information of the starting window of each application program into the memory;
the receiving module is used for receiving input of starting a target application program;
the reading module is used for responding to the input and reading style attribute information of a starting window of the target application program from the memory;
and the drawing module is used for drawing the starting window of the target application program according to the style attribute information of the starting window of the target application program.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the style attribute information of the starting window of each application program is stored in a memory, the input of the starting target application program is received, the style attribute information of the starting window of the target application program is read from the memory in response to the input, and the starting window of the target application program is drawn according to the style attribute information of the starting window of the target application program. According to the technical scheme, the style attribute information of the starting window of each application program is stored in the memory, and under the condition that the input of the starting target application program is received, the style attribute information of the starting window of the target application program can be quickly read from the memory, and the starting window of the target application program is drawn based on the style attribute information, so that the efficiency of drawing the starting window of the application program is improved; because the memory occupied by the style attribute information of the application program is far smaller than the resource data of the application program, the occupied amount of the memory is reduced, more style attribute information of the application program is stored in the limited cache, and the hit rate of the cache is improved.
Drawings
FIG. 1 is a schematic flow chart of a window drawing method according to an embodiment of the present application;
FIG. 2 is a graph comparing window starting effects of a window drawing method applying an embodiment of the present application with a window drawing method not applying an embodiment of the present application;
fig. 3 is a schematic structural diagram of a window drawing device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic hardware diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The window starting method provided by the embodiment of the application is described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The execution main body of the window drawing method provided by the embodiment of the application can be electronic equipment, or a functional module or a functional entity capable of realizing the window drawing method in the electronic equipment. The electronic device according to the embodiment of the application includes, but is not limited to: smart phones, tablet computers, laptop computers (notebook computers), smart wearable devices, etc. The window drawing method provided by the embodiment of the application is described below by taking the electronic device as an execution body as an example.
Fig. 1 shows a flow chart of a window drawing method according to an embodiment of the application. As shown in fig. 1, the method may include steps S101-S105.
Step S101, style attribute information of a starting window of each application program is stored in a memory.
The style attribute information is used to indicate a style and style of a start window (startingWindow). Alternatively, style attribute information of an application may be determined from resource data (resource file) of the application. Style attribute information may include one or more attribute fields, which may include, for example, but are not limited to: the style of the window, the background of the window, the transparency of the window, etc. Since the style attribute information includes one or more attribute fields, the occupied memory is small (for example, in tens to hundreds of bytes), which is far smaller than the memory occupied by the resource data of the application program, and even if the style attribute information of 100-200 application programs is stored, the memory occupied will not exceed 1MB. Therefore, more style attribute information of the application program can be stored in the memory, namely, more style attribute information is stored with lower storage cost, and the cache utilization rate and the cache hit rate are high. In the memory, the style attribute information may be cached using an identification (e.g., package name) of the application as a key.
The startup window (startingWindow) is an animated magnified window in which an application changes from a desktop icon to an application interface, and is a temporary window that is displayed before the application process is successfully created and initialized. When a user clicks an application icon to start an application program, a starting Window is created, the created starting Window is returned to the desktop, the desktop uses a starting Window to perform animation, after the animation starts, the user perceives that the system responds to the current starting operation (namely touch response is generated), and when the application program loads a first frame page, the starting Window disappears, and an application main interface is displayed. If the interval time from the end of the user starting operation to the beginning of the animation is smaller, the touch response perceived by the user is good, and the following chirality is good. Setting Starting Window can reduce click response time delay and reduce user waiting time. In an alternative implementation scenario, a developer of the application program can customize and configure the resource data of the application program, namely, customize and configure the style attribute information of the application program, so that the style and style of the starting window can be customized. The user clicks the application icon to start the application, and the electronic device pops up the startingWindow customized by the application.
In an alternative embodiment, the window drawing method may store style attribute information of a start window of each application program into the memory when a start operation is detected. For example, style attribute information of a launch window of each application program may be read from a disk and stored in a memory. The style attribute information of the start windows of all application programs installed on the electronic device may be stored in the memory, or style attribute information of the start windows of some application programs may be stored in the memory. Optionally, the electronic device may determine, according to a preset caching policy, an application to be cached under the condition that a startup operation is detected, read resource data of the application to be cached from a memory or a disk, and determine style attribute information of the application to be cached from the resource data; and storing the style attribute information of the starting window of the application program to be cached into a memory. The preset caching policy is used for determining an application program to be cached, which needs to cache style attribute information, from all application programs on the electronic device, and it can be understood that the application program to be cached can be a part of application programs on the electronic device or can be all application programs. The preset cache policy can be flexibly set according to the requirement, and the application is not limited herein. As an example, the preset caching policy may include a commonly used application as an application to be cached, where the commonly used application may include an application that is used for a first period of time greater than or equal to a first threshold, may include an application that is used for a second period of time greater than or equal to a second threshold, and may include a specified number of applications. If the target application program belongs to the application program to be cached, the style attribute information of the starting window of the target application program is stored in the memory, and the target application program can hit the memory when being started. If the target application program does not belong to the application program to be cached, the style attribute information of the target application program is not in the memory, and the target application program cannot hit the memory when being started.
Step S102, receiving input of a starting target application program.
The target application may be any application installed on the electronic device. If the fact that the user starts a certain application program on the electronic equipment is detected, the application program started by the user is the target application program. Alternatively, the input of the user to start the application program on the electronic device may be an operation of clicking a desktop icon of the application program by the user, or an operation of starting the application program by a voice command by the user.
And step S103, responding to the input, and reading the style attribute information of the starting window of the target application program from the memory.
The style attribute information of the start window of the application program can be stored in the memory by taking the identification (such as package name) of the application program as a key word. And under the condition that the input of starting the target application program is received, the style attribute information of the starting window of the target application program is read from the memory according to the identification of the target application program.
Step S104, drawing the starting window of the target application program according to the style attribute information of the starting window of the target application program.
After the style attribute information of the start window of the target application program is read, the start window of the target application program can be drawn according to the style attribute information, namely, the start window of the target application program is drawn according to the style and style indicated by the style attribute information.
According to the window drawing method, style attribute information of the starting windows of all application programs is stored in a memory, input of a starting target application program is received, the style attribute information of the starting windows of the target application program is read from the memory in response to the input, and the starting windows of the target application program are drawn according to the style attribute information of the starting windows of the target application program. According to the technical scheme, the style attribute information of the starting window of each application program is stored in the memory, and under the condition that the input of the starting target application program is received, the style attribute information of the starting window of the target application program can be quickly read from the memory, and the starting window of the target application program is drawn based on the style attribute information, so that the efficiency of drawing the starting window of the application program is improved; because the memory occupied by the style attribute information of the application program is far smaller than the resource data of the application program, the occupied amount of the memory is reduced, more style attribute information of the application program is stored in the limited cache, and the hit rate of the cache is improved.
As a specific example, fig. 2 shows a comparison chart of the startup effects of a plurality of application programs before and after the window drawing method of the embodiment of the present application is applied. As can be seen from fig. 2, after the window drawing method of the embodiment of the present application is applied, the touch response speed of the application program is greatly improved, and the start time is obviously shortened.
In the embodiment of the application, if the style attribute information of the starting window of the target application program does not exist in the memory, the resource data of the target application program can be read from the disk of the electronic equipment, the style attribute information of the starting window of the target application program is determined based on the resource data, the starting window of the target application program is drawn according to the style attribute information, and the style attribute information is stored in the memory, so that the cache space can be hit when the target application program is started later, the touch response speed is improved, and the starting time is reduced.
In an alternative embodiment, the window drawing method further includes: under the condition that the operation of installing the first application program is detected, reading the resource data of the first application program, and determining the style attribute information of a starting window of the first application program according to the resource data; and adding the style attribute information of the starting window of the first application program to the memory.
When a user installs a new application program on the electronic equipment, the resource data of the application program newly installed by the user can be read, the style attribute information of the starting window of the application program is obtained from the resource data, and the style attribute information is added into the memory so as to hit the memory when the application program is started, thereby improving the touch response speed and reducing the starting time. In an alternative embodiment, before adding style attribute information of a launch window of a newly installed application to the memory, it is determined whether the memory is also capable of caching style attribute information of the newly installed application. The method comprises the steps of judging whether the size of the residual available space of the memory is larger than or equal to the size of style attribute information of a starting window of a newly installed application program, if yes, determining that the memory can also cache style attribute information of the starting window of the newly installed application program, and if not, deleting style attribute information of the starting window of one or more application programs stored in the memory, and then writing style attribute information of the starting window of the newly installed application program. As an alternative example, the application to be replaced (i.e., the application to be deleted) in the memory may be determined according to a preset replacement policy. The preset replacement policy may be a least recently used algorithm (Least Recently Used, LRUCache). According to the algorithm, the style attribute information which is not used for a long time can be eliminated each time under the condition that the number of style attribute information stored in the memory is fixed. For example, a cache queue is maintained in the memory, if the cache queue is idle, style attribute information is written into the memory, the newly written style attribute information is inserted into the head of the cache queue, and if the cache queue is full, the style attribute information at the tail of the cache queue is deleted.
In an alternative embodiment, the window starting method further includes:
under the condition that the updated resource data of the second application program is detected, the updated resource data is read;
and updating the style attribute information of the starting window of the second application program stored in the memory according to the updated resource data.
Wherein, the condition that the resource data of the application program is updated comprises that the application program package is updated or the theme of the application program is updated by the user. Therefore, if the application package update operation or the theme update operation is detected, the second application program corresponding to the application package update operation or the theme update operation can be determined, and the updated style attribute information of the second application program is determined according to the updated resource data of the second application program, so that the style attribute information of the start window of the second application program stored in the memory is updated.
According to the window drawing method provided by the embodiment of the application, the execution body can be the window drawing device provided by the embodiment of the application. In the embodiment of the application, a window drawing device is taken as an example to execute a window drawing method.
Fig. 3 shows a schematic structural diagram of a window drawing apparatus according to an embodiment of the present application. As shown in fig. 3, the window drawing apparatus 300 includes:
a storage module 301, configured to store style attribute information of a start window of each application program into a memory;
a receiving module 302, configured to receive an input for starting a target application program;
a reading module 303, configured to read style attribute information of a start window of the target application program from the memory in response to the input;
and the drawing module 304 is configured to draw the start window of the target application according to style attribute information of the start window of the target application.
In an alternative embodiment, the storage module is configured to: and under the condition that the starting operation is detected, storing style attribute information of a starting window of each application program into a memory.
In an alternative embodiment, the storage module is configured to: under the condition that a starting operation is detected, style attribute information of a starting window of each application program is read from a disk; and storing the style attribute information of the starting window of each application program into a memory.
In an alternative embodiment, the storage module is further configured to: under the condition that the operation of installing a first application program is detected, reading the resource data of the first application program, and determining the style attribute information of a starting window of the first application program according to the resource data; and adding the style attribute information of the starting window of the first application program to the memory.
In an alternative embodiment, the apparatus further comprises an update module for: under the condition that the updated resource data of the second application program is detected, the updated resource data is read; and updating the style attribute information of the starting window of the second application program stored in the memory according to the updated resource data.
In an alternative embodiment, the update module is configured to: and in the case that the package updating operation for the second application program is detected or the theme updating operation for the second application program is detected, the updated resource data is read.
In the window drawing device of the embodiment of the application, when the operation of starting the target application program by a user is detected, the style attribute information of the target application program is read from the storage space for storing the style attribute information of a plurality of application programs in response to the starting operation of the target application program, and if the style attribute information of the target application program is read, a starting window of the target application program is created and displayed according to the style attribute information. According to the technical scheme, the memory occupied by the style attribute information of the application program is far smaller than the resource data of the application program, so that more style attribute information of the application program can be stored in the limited cache, the hit rate of the cache is improved, the time from clicking to starting the application to animation is effectively reduced, the touch response speed and the starting time can be ensured, the occupied amount of the memory is reduced, the following handedness of a user is improved, and the user experience is improved.
The window drawing device in the embodiment of the application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The window drawing device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, and may also be other possible operating systems, which are not specifically limited in the embodiments of the present application.
The window drawing device provided by the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 3, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 4, the embodiment of the present application further provides an electronic device 400, including a processor 401 and a memory 402, where the memory 402 stores a program or an instruction that can be executed on the processor 401, and the program or the instruction implements each step of the embodiment of the window drawing method when executed by the processor 401, and the steps achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, and processor 510.
Those skilled in the art will appreciate that the electronic device 500 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 510 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 510 is configured to store style attribute information of a start window of each application program into the memory; receiving input for starting a target application program; responding to the input, and reading style attribute information of a starting window of the target application program from the memory; and drawing the starting window of the target application program according to the style attribute information of the starting window of the target application program.
In the electronic equipment provided by the application, style attribute information of the starting window of each application program is stored in the memory, input for starting the target application program is received, the style attribute information of the starting window of the target application program is read from the memory in response to the input, and the starting window of the target application program is drawn according to the style attribute information of the starting window of the target application program. According to the technical scheme, the style attribute information of the starting window of each application program is stored in the memory, and under the condition that the input of the starting target application program is received, the style attribute information of the starting window of the target application program can be quickly read from the memory, and the starting window of the target application program is drawn based on the style attribute information, so that the efficiency of drawing the starting window of the application program is improved; because the memory occupied by the style attribute information of the application program is far smaller than the resource data of the application program, the occupied amount of the memory is reduced, more style attribute information of the application program is stored in the limited cache, and the hit rate of the cache is improved. Optionally, the processor 510 is further configured to store style attribute information of a launch window of each application program in the memory when the startup operation is detected.
Optionally, the processor 510 is further configured to read style attribute information of a start window of each application program from the disk if a start operation is detected; and storing the style attribute information of the starting window of each application program into a memory.
Optionally, the processor 510 is further configured to, in case that an operation of installing the first application program is detected, read resource data of the first application program, and determine style attribute information of a launch window of the first application program according to the resource data; and adding the style attribute information of the starting window of the first application program to the memory.
Optionally, the processor 510 is further configured to, in a case where an update of the resource data of the second application program is detected, read the updated resource data; and updating the style attribute information of the starting window of the second application program stored in the memory according to the updated resource data.
Optionally, the processor 510 is further configured to, in case a package update operation for the second application is detected or a theme update operation for the second application is detected, read the updated resource data.
It should be appreciated that in embodiments of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, the graphics processor 5041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen. Touch panel 5071 may include two parts, a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 509 may include volatile memory or nonvolatile memory, or the memory 509 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 509 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 510.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above embodiment of the window starting method, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the window starting method, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the processes of the embodiments of the window starting method described above, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (13)

1. A window drawing method, characterized by comprising:
style attribute information of a starting window of each application program is stored in a memory;
receiving input for starting a target application program;
responding to the input, and reading style attribute information of a starting window of the target application program from the memory;
and drawing the starting window of the target application program according to the style attribute information of the starting window of the target application program.
2. The method of claim 1, wherein storing style attribute information of a launch window of each application in the memory comprises:
and under the condition that the starting operation is detected, storing style attribute information of a starting window of each application program into a memory.
3. The method according to claim 2, wherein storing style attribute information of a start window of each application program in the memory in the case of detecting a start operation includes:
under the condition that a starting operation is detected, style attribute information of a starting window of each application program is read from a disk;
and storing the style attribute information of the starting window of each application program into a memory.
4. The method according to claim 1, wherein the method further comprises:
under the condition that the operation of installing a first application program is detected, reading the resource data of the first application program, and determining the style attribute information of a starting window of the first application program according to the resource data;
and adding the style attribute information of the starting window of the first application program to the memory.
5. The method according to claim 1, wherein the method further comprises:
under the condition that the updated resource data of the second application program is detected, the updated resource data is read;
and updating the style attribute information of the starting window of the second application program stored in the memory according to the updated resource data.
6. The method of claim 5, wherein, in the event that an update of the resource data of the second application is detected, the reading the updated resource data comprises:
and in the case that the package updating operation for the second application program is detected or the theme updating operation for the second application program is detected, the updated resource data is read.
7. A window drawing apparatus, comprising:
the storage module is used for storing style attribute information of the starting window of each application program into the memory;
the receiving module is used for receiving input of starting a target application program;
the reading module is used for responding to the input and reading style attribute information of a starting window of the target application program from the memory;
and the drawing module is used for drawing the starting window of the target application program according to the style attribute information of the starting window of the target application program.
8. The apparatus of claim 7, wherein the memory module is configured to: and under the condition that the starting operation is detected, storing style attribute information of a starting window of each application program into a memory.
9. The apparatus of claim 8, wherein the storage module is to: under the condition that a starting operation is detected, style attribute information of a starting window of each application program is read from a disk; and storing the style attribute information of the starting window of each application program into a memory.
10. The apparatus of claim 7, wherein the memory module is further configured to:
under the condition that the operation of installing a first application program is detected, reading the resource data of the first application program, and determining the style attribute information of a starting window of the first application program according to the resource data;
and adding the style attribute information of the starting window of the first application program to the memory.
11. The apparatus of claim 7, further comprising an update module configured to:
under the condition that the updated resource data of the second application program is detected, the updated resource data is read;
and updating the style attribute information of the starting window of the second application program stored in the memory according to the updated resource data.
12. The apparatus of claim 11, wherein the update module is configured to:
and in the case that the package updating operation for the second application program is detected or the theme updating operation for the second application program is detected, the updated resource data is read.
13. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the window drawing method of any one of claims 1 to 6.
CN202310622932.9A 2023-05-29 2023-05-29 Window drawing method and device and electronic equipment Pending CN116700866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310622932.9A CN116700866A (en) 2023-05-29 2023-05-29 Window drawing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310622932.9A CN116700866A (en) 2023-05-29 2023-05-29 Window drawing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116700866A true CN116700866A (en) 2023-09-05

Family

ID=87835079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310622932.9A Pending CN116700866A (en) 2023-05-29 2023-05-29 Window drawing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116700866A (en)

Similar Documents

Publication Publication Date Title
US11799984B2 (en) Installable web applications
EP2950203B1 (en) Application scenario identification method, power consumption management method and apparatus and terminal device
US9851865B2 (en) Method for managing application and electronic device thereof
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
CN107925749B (en) Method and apparatus for adjusting resolution of electronic device
US20180032259A1 (en) Method of displaying content and electronic device adapted to the same
CN108984225A (en) The method and apparatus of quick start boarding application
US9804767B2 (en) Light dismiss manager
US11455075B2 (en) Display method when application is exited and terminal
US20150186179A1 (en) Method for efficiently managing application and electronic device implementing the method
US20180181999A1 (en) Electronic device and method for displaying web page using the same
CN109117153B (en) Application processing method, device, terminal and storage medium
CN108334330B (en) Application unloading method and device, storage medium and electronic equipment
CN108563476B (en) Application program running method and device, storage medium and electronic equipment
CN113032290B (en) Flash memory configuration method, flash memory configuration device, electronic equipment and storage medium
CN113568748B (en) Application process processing method and device, storage medium and electronic equipment
CN116700866A (en) Window drawing method and device and electronic equipment
CN112241303B (en) Image processing method and system, electronic device and storage medium
US20190243515A1 (en) Invoke a Service in an Electronic Document Using a Trigger Entry
WO2021073549A1 (en) Screen rotation picture display method and apparatus, computer device, and storage medium
CN114595017B (en) Data display method and device, electronic equipment and computer readable storage medium
CN116382722A (en) Application program updating method, device and equipment
CN116756056A (en) Memory recycling method and device, electronic equipment and storage medium
CN114140154A (en) Advertisement display method, device, medium and electronic equipment
CN116627566A (en) Theme application method, theme application device, electronic equipment and readable storage 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