WO2023245368A1 - Application control method and apparatus, electronic device, and storage medium - Google Patents
Application control method and apparatus, electronic device, and storage medium Download PDFInfo
- Publication number
- WO2023245368A1 WO2023245368A1 PCT/CN2022/099932 CN2022099932W WO2023245368A1 WO 2023245368 A1 WO2023245368 A1 WO 2023245368A1 CN 2022099932 W CN2022099932 W CN 2022099932W WO 2023245368 A1 WO2023245368 A1 WO 2023245368A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- page
- page object
- configuration data
- application
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
Definitions
- the present disclosure relates to the technical field of application control, and specifically relates to an application control method, device, electronic device and storage medium.
- an application can often include multiple page objects, and each page object includes multiple component resources, such as background images, widgets and other components.
- embodiments of the present disclosure provide an application control method, device, electronic device and storage medium.
- an application control method including:
- the first page object is generated according to the configuration data.
- the process of pre-caching the configuration data of the first page object includes:
- the current configuration data of the first page object is cached in the application program memory.
- the process of controlling page object jumps in the application program includes:
- the page identifier determine whether the configuration data of the page object to be jumped is cached in the current application memory
- the page object to be jumped is generated according to the configuration data.
- the method described in the embodiments of the present disclosure further includes:
- the page to be jumped is initialized and configured according to the obtained initialization data of the page to be jumped, and the page to be jumped is generated. object.
- the process of pre-caching the configuration data of the first page object includes:
- the configuration data of the earliest cached page object is deleted, and the current configuration data of the first page object is cached in the application. in memory.
- caching the current configuration data of the first page object in the application memory includes:
- the configuration data of the previous page object located at the top of the routing stack is replaced with the configuration data of the first page object.
- an application control device including:
- An acquisition module configured to acquire the pre-cached configuration data of the first page object in response to detecting a jump from the current page object to the first page object in the application;
- a generating module configured to generate the first page object according to the configuration data.
- the device described in the embodiments of the present disclosure further includes a cache module, and the cache module is configured to:
- the current configuration data of the first page object is cached in the application program memory.
- the device described in the embodiments of the present disclosure also includes a page jump module, and the page jump module is configured to:
- the page identifier determine whether the configuration data of the page object to be jumped is cached in the current application memory
- the page object to be jumped is generated according to the configuration data.
- the page jump module is configured to:
- the page to be jumped is initialized and configured according to the obtained initialization data of the page to be jumped, and the page to be jumped is generated. object.
- the cache module is configured to:
- the configuration data of the earliest cached page object is deleted, and the current configuration data of the first page object is cached in the application. in memory.
- the cache module is configured to:
- the configuration data of the previous page object located at the top of the routing stack is replaced with the configuration data of the first page object.
- an electronic device including:
- a memory stores computer instructions for causing the processor to execute the method according to any implementation manner of the first aspect.
- an embodiment of the present disclosure provides a storage medium that stores computer instructions, and the computer instructions are used to cause a computer to execute the method according to any embodiment of the first aspect.
- the application control method in the embodiment of the present disclosure includes, in response to detecting a jump from the current page object to the first page object in the application program, obtaining the pre-cached configuration data of the first page object, and generating the first page object according to the configuration data. .
- the page object when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices without re-initialization.
- Historical page objects enable fast jumps to page objects, improve application fluency, and improve user experience.
- FIG. 1 is an architectural diagram of an operating system of an electronic device according to some embodiments of the present disclosure.
- Figure 2 is a flowchart of an application control method in some embodiments of the present disclosure.
- FIG. 3 is a flowchart of an application control method in some embodiments of the present disclosure.
- Figure 4 is a schematic diagram of an application control method in some embodiments of the present disclosure.
- Figure 5 is a schematic diagram of an application control method according to some embodiments of the present disclosure.
- Figure 6 is a structural block diagram of an application control device according to some embodiments of the present disclosure.
- Figure 7 is a structural block diagram of an electronic device according to some embodiments of the present disclosure.
- mobile phone applications may include shopping applications, instant messaging applications, map navigation applications, audio and video playback applications, etc.
- An application often includes multiple page objects. Users can automatically jump to another page by clicking a button on a page, return to historical pages by pressing the return button, etc.
- the page objects of applications also include more and more component resources, such as background images, links, widgets and other component resources.
- the hardware performance and memory space are relatively good.
- the page objects that have been visited in the history can be completely cached in the memory, so that the user can return from the current page.
- the history page can be displayed directly without waiting for initial configuration and rendering.
- the processing performance and memory space of the device are poor.
- the wearable device starts an application, if it caches the rendered page objects that have been visited in the past in the memory , the memory space allocated to the application by the wearable device is limited, and it may only be able to cache the page object most recently accessed in history. If the user wants to return an earlier page object, he needs to re-initialize, configure and render the page object, causing the application to use the lag. Pause, reducing user experience.
- embodiments of the present disclosure provide an application control method, device, electronic device and storage medium, aiming to manage and control the page objects of the application, realize rapid jump of multiple page objects, and improve the application running effect.
- Figure 1 shows a schematic architectural diagram of an operating system of an electronic device in some embodiments of the present disclosure.
- system software architecture can be divided into four layers, namely the Applications layer, Application Framework layer, Libraries layer and Linux Kernel layer.
- the application layer is the layer in the Android system that interacts with users.
- the application layer includes various applications of the mobile phone, such as system applications such as settings, contacts, text messages, calls, gallery, calendar, browser, or third-party applications such as WeChat.
- the application layer can access the services provided by the application framework layer according to different applications.
- applications are developed using the Java language and are completed by calling the application programming interface (application programming interface, API) provided by the application framework layer. For example, when a developer sets a page jump task, he or she can access the interface management service provided by the application framework layer at the application layer for setting a page jump task.
- API application programming interface
- the application framework layer mainly provides developers with access to various APIs used by applications. For different applications, the application framework layer provides different APIs and services to the application layer. For example, when setting page object management tasks, the application framework layer can provide the application layer with an API for setting page jump tasks, and provide relevant interface management services for the application layer to achieve management control of page objects.
- the application framework can be a series of services and management systems of the operating system.
- the application framework mainly includes the following basic services:
- Page management (Window Manager) module used to manage graphical user page resources used on the screen, specifically including: creation and destruction of page objects, display and hiding of page objects, page layout, focus management, and input methods and wallpapers Management etc.
- Activity Manager used to manage the life cycle of each application. Applications usually run in the operating system in the form of Activity. For each Activity, there will be a corresponding application record (Activity Record) in the activity manager. This Activity Record records the status of the application's Activity. The activity manager can use this Activity Record as an identifier to schedule the application's Activity process.
- a rich and extensible view collection that can be used to build an application, including List, Grid, TextBox, Button, and embeddable web browser device.
- Notification Manager module used to control applications to display prompt information (such as Alerts, Notifications, etc.) to users in the status bar, lock screen interface, etc.
- the function library layer is the support of the application framework and an important link between the application framework layer and the Linux kernel layer.
- the function library layer includes some function libraries compiled from the computer program C language or C++ language. These function libraries can be used by different components in the operating system. They provide services to developers through the application framework layer.
- the function library can include the libc function library, which is specially customized for embedded Linux-based devices; the function library can also include the multimedia library (Media Framework), which supports the playback and recording of audio or video in multiple encoding formats. , while supporting still image files, as well as common audio or video encoding formats.
- the function library also includes the interface management library (Surface Manager), which is mainly responsible for managing access to the display system. It is specifically used to manage the interaction between display and access operations when executing multiple applications. It is also responsible for 2D drawing and 3D Drawing for display composition.
- the function library layer can also include other function libraries used to implement various functions of electronic devices, such as: scalable graphics library (SGL): 2D graphics based on extensible markup language (XML) files Image processing engine; secure sockets layer (SSL): located between TVP/IP protocol and various application layer protocols, providing support for data communication; 3D graphics processing library (OpenGL/ES): support for 3D effects; Lightweight database (SQLite): relational database engine; Webkit: Web browser engine; FreeType: bitmap and vector font support; etc.
- SGL scalable graphics library
- XML extensible markup language
- SSL secure sockets layer
- 3D graphics processing library OpenGL/ES
- SQL Lightweight database
- Webkit Web browser engine
- FreeType bitmap and vector font support
- Android Runtime is a running environment on the operating system and a new virtual machine used by the operating system.
- AOT Ahead-Of-Time
- the bytecode of the application will be pre-compiled into machine code, making the application a truly local application. , and then run it again, the compilation step will be omitted, and startup and execution will become faster.
- Android Runtime can also be replaced by Core Libraries and Dalvik Virtual Machine.
- the core function library provides most functions in the Java language API, mainly through the Java native interface (java native interface, JNI) to provide the application framework layer with an interface for calling the underlying program library. It also includes some core APIs of the operating system, such as android.os, android.net, android.media, etc.
- JNI Java native interface
- the Dalvik virtual machine uses a JIT (Just-in-Time) runtime compilation mechanism. Every time a process is started, the virtual machine needs to recompile the bytecode in the background, which will have a certain impact on the startup speed.
- Each application runs in an instance of the Dalvik virtual machine, and each Dalvik virtual machine instance is an independent process space.
- the Dalvik virtual machine is designed to efficiently run multiple virtual machines on a single device.
- the Dalvik virtual machine executable file format is .dex.
- the dex format is a compression format specially designed for Dalvik and is suitable for systems with limited memory and processor speed. What needs to be mentioned is that the Dalvik virtual machine relies on the Linux kernel to provide basic functions (threads, underlying memory management). It can be understood that Android Runtime and Dalvik belong to different types of virtual machines, and those skilled in the art can choose different forms of virtual machines in different situations.
- the Linux kernel layer provides core system services of the operating system, such as security, memory management, process management, network protocol stack and driver model, all based on the Linux kernel.
- the Linux kernel also serves as an abstraction layer between the hardware and software stacks. This layer has many drivers related to electronic devices.
- the main drivers are: display driver; Linux-based frame buffer driver; keyboard driver as an input device; Flash driver based on memory technology equipment; camera driver; audio driver; Bluetooth driver ; Wi-Fi driver, etc.
- the electronic device can be any device type suitable for implementation, such as smart phones, tablet computers, wearable devices, etc.
- the method of the embodiments of the present disclosure is more effective for electronic devices with small memory.
- Electronic devices with small memory can be, for example, wearable devices such as smart watches, smart bracelets, and smart glasses, which are not limited in this disclosure.
- the application described in the present disclosure can be any application type suitable for deployment in electronic devices, such as instant messaging applications, map navigation applications, audio and video playback applications, etc., and the present disclosure is not limited to this.
- the application control method of the present disclosure includes:
- the application may include multiple page objects, and the user can jump between each page object through operations such as touching or pressing keys.
- the application is a music playing application.
- the application program may be an application in a lightweight electronic device.
- the lightweight electronic device may be a smart watch, a smart bracelet, etc.
- the memory space of the lightweight electronic device is small and the hardware performance is limited. , often only one process can exist at the same time.
- the page object to be jumped and displayed can be defined as the first page object. That is, the first page object can be any page object in the application program and is not limited to a fixed page object.
- the current page object refers to the page object currently being displayed in the application, that is, the current page object can be any page object except the first page object, and is not limited to a fixed page object.
- the current page object When it is detected that the current page object jumps to the first page object in the application, it means that the currently displayed current page object needs to be hidden in the background, and the first page object needs to be displayed and switched in the foreground.
- the user jumps to the first page object from the second page object currently running in the application through touch or click operations. At this time, the second page object will be hidden in the background, and the first page object will be in the background. Foreground rendering display.
- the first page object may be a page object that has been started before the second page object is displayed, that is, the first page object is switched to running in the background.
- the system will cache the configuration data of the first page object in the application memory, so that when the first page object is switched to the foreground again, the configuration data will be cached in the application memory.
- the configuration data of the first page object has been cached in advance.
- the rendering interface of the first page object does not need to be presented to the user, and therefore there is no need to display all the data of the first page object. are cached in memory. Therefore, in the embodiment of the present disclosure, the component resources in the first page object can be deleted, thereby freeing up memory space, and only the configuration data of the first page object is cached in the application memory.
- component resources may include background images, button icons, layer widgets, etc. These component resources will occupy a large amount of memory space.
- the application environment needs to be configured based on the configuration data of the page object.
- the configuration data may include, for example, the global variable information required to configure the application, such as system capability interface information, application timer information, etc. Therefore, in the embodiment of the present disclosure, when the first page object is hidden in the background, the component resources of the first page object can be deleted, thereby freeing up memory space, and only the configuration data is cached in the memory.
- the component resources of the first page object can be cleared, including the background images, button icons and other data required for rendering the first page object. Cleared from memory. The relevant configuration data required to initialize the first page object is cached in the application memory.
- the configuration data of the page object since the component resources of the first page object are not cached, compared with the component resource data, the configuration data of the page object only occupies a small amount of memory space. Therefore, caching of the first page object can be achieved by occupying only a small amount of memory space. Especially for low-memory devices such as wearable devices, multiple page objects can be cached at the same time.
- the configuration of the first page object can be read directly from the memory. data, render the page according to the configuration data, obtain the first page object, and realize the jump from the current page object to the first page object.
- the device when jumping from the current page object back to the first page object, since there is no need to re-initialize the configuration of the first page object, that is, the first page object does not need to be restarted, saving the initialization process of the first page object.
- the device can quickly return to the first page object from the current page object, improving the smoothness of the application and the efficiency of page jumps.
- the first page object in the embodiment of the present disclosure is not specifically limited to a certain page object in the application program. That is, for each page object, when the current page object is jumped to other page objects, The configuration data of the current page object can be cached in the memory of the application in sequence. Since only configuration data is cached, it takes up very little memory space. Compared with the solution of caching all data of page objects, a larger number of page objects can be cached in the same memory space.
- the system jumps from the first page object to the second page object, and the configuration data of the first page object can be cached in the application memory. Then the system jumps from the second page object to the third page object, and the configuration data of the second page object can also be cached in the application memory.
- the configuration data of the second page object can be read from the memory and rendered to generate the second page object in real time.
- the configuration data of the first page object can be read from the memory and rendered in real time to generate the first page object.
- the page object when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices. , there is no need to re-initialize the configuration of historical page objects, realize rapid jump of page objects, improve the smoothness of application use, and improve user experience.
- the process of controlling page object jump includes:
- the page object to be jumped refers to the target page object that is expected to be jumped to.
- the currently displayed page is the first page object
- the page object that needs to be jumped is the second page object
- the second page object is the page object to be jumped.
- Jump instructions refer to instruction data that trigger page object jumps, which can be set in advance when developing applications. For example, in one example, in a scene where a first page object jumps to a second page object, the first page object has preset function keys, and the user can trigger the preset function keys in the first page object through touch operations. Thus, a jump instruction for jumping from the first page object to the second page object can be generated.
- the jump instruction may include the application identifier of the page object to be jumped, the page identifier of the page object to be jumped, and related page parameters.
- the application identifier of the page object to be jumped refers to the identifier of the application program to which the page object to be jumped belongs. For example, for two different page objects using one application, the application identifiers of the two should be the same.
- the page identifier of the page object to be jumped refers to the unique identification information of the page object, such as page name, etc. Different page objects of the same application have different page identifiers, so the page that needs to be jumped can be determined by identifying the page identifier.
- Page parameters refer to the relevant configuration parameters of the page to be jumped, such as system capability interface, page plug-in initialization parameters, language setting parameters, etc. This parameter is not required.
- a jump instruction of the page object to be jumped can be generated, so that the system can obtain by parsing the jump instruction.
- the page identifier of the page object to be jumped can be generated, so that the system can obtain by parsing the jump instruction.
- the configuration data of the page object may have been cached in the application memory. Therefore, based on the page identifier of the page to be jumped, it is determined whether the configuration data corresponding to the page identifier has been cached in the current application memory. If the configuration data of the page object to be jumped has been cached in the application memory, S330 is executed; conversely, if the configuration data of the page object to be jumped is not cached in the application memory, S340 is executed.
- the configuration data of the page object to be jumped has been cached in the application memory, it means that the page object to be jumped is a page object that has been visited in history, and the page object is currently in the background retention state. This You can directly read the configuration data of the page object from the memory, and render and generate the page to be jumped corresponding to the page object to be jumped based on the configuration data. There is no need to re-initialize the page object, which improves the page jump efficiency of the application.
- the page object to be jumped is not a page object that has been visited in history.
- the configuration folder of the page object to be jumped can be read to obtain the initialization data of the page object to be jumped, and initialization configuration and rendering are performed based on the initialization data.
- the page to be jumped corresponding to the page object to be jumped can be generated.
- Initialization data refers to the data required when the page object to be jumped is started for the first time, which includes the above-mentioned component resources and configuration data required to render the page object.
- the page object to be jumped is a page object that has been visited in history, due to limited memory space, the configuration data of the page to be jumped has been overwritten and deleted. At this time, the page object to be jumped can also be read.
- the configuration folder obtains the initialization data of the page object to be jumped, and performs initial configuration and rendering based on the initialization data to generate the page to be jumped corresponding to the page object to be jumped. This will be described in the following embodiments of the present disclosure and will not be described in detail here.
- the page object when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices. , there is no need to re-initialize the configuration of historical page objects, realize rapid jump of page objects, improve the smoothness of application use, and improve user experience.
- the application framework layer can provide developers with three APIs for page object management, which are push interface, replace interface and back interface.
- routing is the abstraction of the page object of the application.
- the routing stack can be understood as the rules for managing page objects. It enables each page object to jump and switch to each other according to predetermined rules. The principle is shown below in conjunction with Figure 4. Be explained.
- the push interface is the API interface for creating a new page object.
- the push interface can be called to push the page data of the page object into the routing stack and notify the underlying rendering to display the page object.
- Page object The page data of the page object includes the above-mentioned configuration data of the page object and the component resources for rendering the page object.
- the page data of the newly created page object page1 is pushed into the stack.
- the page of page1 is displayed on the wearable device.
- the developer calls the push interface to create a new page object page2.
- the page data of page2 is pushed into the routing stack and is located at the top level of page1.
- the page of page2 is rendered and displayed through the page data of page2.
- the developer calls the push interface to create a new page object page3.
- the page data of page3 is pushed into the routing stack and is located on the top level of page2.
- the page of page3 is rendered and displayed through the page data of page3.
- the back interface refers to the API interface for going back to the previous historical page.
- the back interface can be called to delete the page data from the top of the stack until it reaches the page that needs to be rolled back. object.
- the replace interface refers to the API interface for replacing the page object on the top of the stack.
- the replace interface can be called to push the page data of the page object into the routing stack and replace the page data on the top of the current stack. , and at the same time render the replaced page object.
- the developer calls the replace interface, pushes the page 4 data to the top of the routing stack to overwrite the page 3 data, and renders and displays the page 4 through the page data of page 4.
- the configuration data of the current page object needs to be cached.
- the configuration data of the current page object can be cached on the top layer of the routing stack of the configuration data of the previous page object in sequence.
- the configuration data of the previous page object located at the top of the routing stack can be replaced with the configuration data of the current page object according to the principle shown in Figure 5 . This disclosure does not limit this.
- the application program when caching the configuration data of the first page object, the application program has limited memory space and cannot cache the configuration data of all historical pages. Therefore, in some implementations, the amount of cacheable configuration data can be preset according to the memory space of the application program, and this data is also the preset threshold described in this disclosure.
- the number of preset thresholds can be selected according to specific scenarios. For example, the preset threshold can be any value such as 4, 6, 8, 10, etc.
- the configuration data of up to four page objects can be cached in the application memory. Therefore, when caching the configuration data of the first page object, the configuration of the cached page object in the current application memory can first be determined. Whether the amount of data reaches the preset threshold 4.
- the number of cached configuration data in the current application is 4, it means that the cached configuration data in the current application memory has reached the upper limit, so the earliest cached configuration data can be deleted, and then the configuration data of the first page object can be deleted.
- the cache is at the top of the routing stack.
- the page object when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices. , there is no need to re-initialize the configuration of historical page objects, realize rapid jump of page objects, improve the smoothness of application use, and improve user experience.
- the cached data When the cached data reaches the upper memory limit, the cached data can be dynamically updated, which is beneficial to the deployment of low-memory wearable devices.
- examples of the present disclosure provide an application control device, which can be applied to wearable devices.
- the wearable device can be any suitable type for implementation, such as smart watches, smart bracelets, smart glasses, etc., and the present disclosure is not limited to this.
- the application program described in the present disclosure can be any application type suitable for deployment in wearable devices, such as instant messaging applications, map navigation applications, audio and video playback applications, etc., and the present disclosure is not limited to this.
- the application control device of the example of the present disclosure includes:
- the acquisition module 10 is configured to acquire the pre-cached configuration data of the first page object in response to detecting a jump from the current page object to the first page object in the application;
- the generation module 20 is configured to generate the first page object according to the configuration data.
- the page object when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices. , there is no need to re-initialize the configuration of historical page objects, realize quick jump of page objects, improve the smoothness of application use, and improve user experience.
- the device described in the embodiments of the present disclosure further includes a cache module, and the cache module is configured to:
- the current configuration data of the first page object is cached in the application program memory.
- the device described in the embodiments of the present disclosure also includes a page jump module, and the page jump module is configured to:
- the page identifier determine whether the configuration data of the page object to be jumped is cached in the current application memory
- the page object to be jumped is generated according to the configuration data.
- the page jump module is configured to:
- the page to be jumped is initialized and configured according to the obtained initialization data of the page to be jumped, and the page to be jumped is generated. object.
- the cache module is configured to:
- the configuration data of the earliest cached page object is deleted, and the current configuration data of the first page object is cached in the application. in memory.
- the cache module is configured to:
- the configuration data of the previous page object located at the top of the routing stack is replaced with the configuration data of the first page object.
- the page object when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices. , there is no need to re-initialize the configuration of historical page objects, realize quick jump of page objects, improve the smoothness of application use, and improve user experience.
- the cached data When the cached data reaches the upper memory limit, the cached data can be dynamically updated, which is beneficial to the deployment of low-memory wearable devices.
- embodiments of the present disclosure provide an electronic device, including:
- the memory stores computer instructions, and the computer instructions are used to cause the processor to execute the method according to any of the above embodiments.
- the embodiments of the present disclosure do not limit the type of electronic equipment, and it can be any type of equipment suitable for implementation.
- the implementation method of the present disclosure can also implement caching of multiple page objects for small memory devices, thereby having better implementation effects for small memory devices such as wearable devices.
- embodiments of the present disclosure provide a storage medium storing computer instructions.
- the computer instructions are used to cause the computer to execute the method of any of the above embodiments.
- Figure 7 shows a structural block diagram of an electronic device in some embodiments of the present disclosure. The relevant principles of electronic devices and storage media in some embodiments of the present disclosure will be described below with reference to Fig. 7 .
- electronic device 1800 may include one or more of the following components: processing component 1802, memory 1804, power supply component 1806, multimedia component 1808, audio component 1810, input/output (I/O) interface 1812, sensor component 1816, and Communication component 1818.
- Processing component 1802 generally controls the overall operations of electronic device 1800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
- Processing component 1802 may include one or more processors 1820 to execute instructions.
- processing component 1802 may include one or more modules that facilitate interaction between processing component 1802 and other components.
- processing component 1802 may include a multimedia module to facilitate interaction between multimedia component 1808 and processing component 1802.
- the processing component 1802 can read executable instructions from the memory to implement electronic device-related functions.
- Memory 1804 is configured to store various types of data to support operations at electronic device 1800 . Examples of such data include instructions for any application or method operating on electronic device 1800, contact data, phonebook data, messages, pictures, videos, etc.
- Memory 1804 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
- SRAM static random access memory
- EEPROM electrically erasable programmable read-only memory
- EEPROM erasable programmable read-only memory
- EPROM Programmable read-only memory
- PROM programmable read-only memory
- ROM read-only memory
- magnetic memory flash memory, magnetic or optical disk.
- Power supply component 1806 provides power to various components of electronic device 1800 .
- Power supply components 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 1800 .
- Multimedia component 1808 includes a display screen that provides an output interface between the electronic device 1800 and the user.
- multimedia component 1808 includes a front-facing camera and/or a rear-facing camera.
- the front camera and/or the rear camera may receive external multimedia data.
- Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
- Audio component 1810 is configured to output and/or input audio signals.
- audio component 1810 includes a microphone (MIC) configured to receive external audio signals when electronic device 1800 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1804 or sent via communications component 1818 .
- audio component 1810 includes a speaker for outputting audio signals.
- the I/O interface 1812 provides an interface between the processing component 1802 and a peripheral interface module.
- the peripheral interface module may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
- Sensor component 1816 includes one or more sensors for providing various aspects of status assessment for electronic device 1800 .
- the sensor component 1816 can detect the open/closed state of the electronic device 1800, the relative positioning of components, such as the display and keypad of the electronic device 1800, the sensor component 1816 can detect the electronic device 1800 or a component of the electronic device 1800. changes in position, the presence or absence of user contact with the electronic device 1800 , the orientation or acceleration/deceleration of the electronic device 1800 and changes in the temperature of the electronic device 1800 .
- Sensor component 1816 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
- Sensor component 1816 may include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
- the sensor component 1816 may include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- Communication component 1818 is configured to facilitate wired or wireless communication between electronic device 1800 and other devices.
- the electronic device 1800 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G, 5G or 6G, or a combination thereof.
- communication component 1818 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel.
- the communications component 1818 includes a near field communications (NFC) module to facilitate short-range communications.
- the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- electronic device 1800 may be configured by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Programmed gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation.
- ASICs application specific integrated circuits
- DSPs digital signal processors
- DSPDs digital signal processing devices
- PLDs programmable logic devices
- FPGA field programmable Programmed gate array
- controller microcontroller, microprocessor or other electronic component implementation.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
本公开涉及应用程序控制技术领域,具体涉及一种应用控制方法、装置、电子设备以及存储介质。The present disclosure relates to the technical field of application control, and specifically relates to an application control method, device, electronic device and storage medium.
随着计算机应用技术的发展,各种电子设备越来越普及,基于电子设备的应用(Application)也越来越丰富。相关技术中,一个应用往往可以包括多个页面对象,每个页面对象包括多种组件资源,例如背景图片、挂件等组件。With the development of computer application technology, various electronic devices are becoming more and more popular, and applications based on electronic devices are becoming more and more abundant. In related technologies, an application can often include multiple page objects, and each page object includes multiple component resources, such as background images, widgets and other components.
对于穿戴式设备等轻量级电子设备而言,由于设备本身内存空间受限,应用的功能性和稳定性较差,降低了用户使用应用的体验。For lightweight electronic devices such as wearable devices, due to the limited memory space of the device itself, the functionality and stability of the application are poor, which reduces the user experience of using the application.
发明内容Contents of the invention
为提高穿戴式设备的应用控制效果,本公开实施方式提供了一种应用控制方法、装置、电子设备以及存储介质。In order to improve the application control effect of wearable devices, embodiments of the present disclosure provide an application control method, device, electronic device and storage medium.
第一方面,本公开实施方式提供了一种应用控制方法,包括:In a first aspect, an embodiment of the present disclosure provides an application control method, including:
响应于检测到应用程序中由当前页面对象跳转至第一页面对象,获取预先缓存的所述第一页面对象的配置数据;In response to detecting that the current page object jumps to the first page object in the application program, obtain the pre-cached configuration data of the first page object;
根据所述配置数据生成所述第一页面对象。The first page object is generated according to the configuration data.
在一些实施方式中,预先缓存所述第一页面对象的配置数据的过程包括:In some implementations, the process of pre-caching the configuration data of the first page object includes:
响应于检测到所述应用程序中由所述第一页面对象跳转至其他页面对象,将所述第一页面对象当前的所述配置数据缓存在所述应用程序内存中。In response to detecting that the application program jumps from the first page object to other page objects, the current configuration data of the first page object is cached in the application program memory.
在一些实施方式中,控制所述应用程序中页面对象跳转的过程包括:In some implementations, the process of controlling page object jumps in the application program includes:
获取待跳转页面对象的跳转指令,所述跳转指令中包括所述待跳转页面对象的页面标识;Obtain the jump instruction of the page object to be jumped, where the jump instruction includes the page identifier of the page object to be jumped;
根据所述页面标识,确定当前应用程序内存中是否缓存所述待跳转页 面对象的配置数据;According to the page identifier, determine whether the configuration data of the page object to be jumped is cached in the current application memory;
响应于当前应用程序内存中已经缓存所述待跳转页面对象的配置数据,根据所述配置数据生成所述待跳转页面对象。In response to the configuration data of the page object to be jumped being cached in the current application memory, the page object to be jumped is generated according to the configuration data.
在一些实施方式中,本公开实施方式所述的方法,还包括:In some embodiments, the method described in the embodiments of the present disclosure further includes:
响应于当前应用程序内存中未缓存所述待跳转页面的配置数据,根据获取的所述待跳转页面的初始化数据,对所述待跳转页面进行初始化配置,生成所述待跳转页面对象。In response to the fact that the configuration data of the page to be jumped is not cached in the current application memory, the page to be jumped is initialized and configured according to the obtained initialization data of the page to be jumped, and the page to be jumped is generated. object.
在一些实施方式中,预先缓存所述第一页面对象的配置数据的过程,包括:In some implementations, the process of pre-caching the configuration data of the first page object includes:
响应于所述应用程序的内存中已缓存的配置数据的数量未达到预设阈值,将所述第一页面对象当前的配置数据缓存在所述应用程序的内存中;In response to the amount of cached configuration data in the memory of the application program not reaching the preset threshold, cache the current configuration data of the first page object in the memory of the application program;
和/或,and / or,
响应于所述应用程序的内存中已缓存的配置数据的数量达到预设阈值,将最早缓存的页面对象的配置数据删除,并将所述第一页面对象当前的配置数据缓存在所述应用程序的内存中。In response to the amount of cached configuration data in the memory of the application reaching the preset threshold, the configuration data of the earliest cached page object is deleted, and the current configuration data of the first page object is cached in the application. in memory.
在一些实施方式中,所述将所述第一页面对象当前的所述配置数据缓存在所述应用程序内存中,包括:In some implementations, caching the current configuration data of the first page object in the application memory includes:
将所述第一页面对象的配置数据缓存在应用程序前一个页面对象的配置数据的路由栈顶层;Caching the configuration data of the first page object at the top level of the routing stack of the configuration data of the previous page object of the application program;
或者,or,
利用所述第一页面对象的配置数据替换位于路由栈顶层的前一个页面对象的配置数据。The configuration data of the previous page object located at the top of the routing stack is replaced with the configuration data of the first page object.
第二方面,本公开实施方式提供了一种应用控制装置,包括:In a second aspect, an embodiment of the present disclosure provides an application control device, including:
获取模块,被配置为响应于检测到应用程序中由当前页面对象跳转至第一页面对象,获取预先缓存的所述第一页面对象的配置数据;An acquisition module configured to acquire the pre-cached configuration data of the first page object in response to detecting a jump from the current page object to the first page object in the application;
生成模块,被配置为根据所述配置数据生成所述第一页面对象。A generating module configured to generate the first page object according to the configuration data.
在一些实施方式中,本公开实施方式所述的装置,还包括缓存模块,所述缓存模块被配置为:In some embodiments, the device described in the embodiments of the present disclosure further includes a cache module, and the cache module is configured to:
响应于检测到所述应用程序中由所述第一页面对象跳转至其他页面对象,将所述第一页面对象当前的所述配置数据缓存在所述应用程序内存中。In response to detecting that the application program jumps from the first page object to other page objects, the current configuration data of the first page object is cached in the application program memory.
在一些实施方式中,本公开实施方式所述的装置,还包括页面跳转模块,所述页面跳转模块被配置为:In some embodiments, the device described in the embodiments of the present disclosure also includes a page jump module, and the page jump module is configured to:
获取待跳转页面对象的跳转指令,所述跳转指令中包括所述待跳转页面的页面标识;Obtain the jump instruction of the page object to be jumped, where the jump instruction includes the page identifier of the page to be jumped;
根据所述页面标识,确定当前应用程序内存中是否缓存所述待跳转页面对象的配置数据;According to the page identifier, determine whether the configuration data of the page object to be jumped is cached in the current application memory;
响应于当前应用程序内存中已经缓存所述待跳转页面对象的配置数据,根据所述配置数据生成所述待跳转页面对象。In response to the configuration data of the page object to be jumped being cached in the current application memory, the page object to be jumped is generated according to the configuration data.
在一些实施方式中,所述页面跳转模块被配置为:In some implementations, the page jump module is configured to:
响应于当前应用程序内存中未缓存所述待跳转页面的配置数据,根据获取的所述待跳转页面的初始化数据,对所述待跳转页面进行初始化配置,生成所述待跳转页面对象。In response to the fact that the configuration data of the page to be jumped is not cached in the current application memory, the page to be jumped is initialized and configured according to the obtained initialization data of the page to be jumped, and the page to be jumped is generated. object.
在一些实施方式中,所述缓存模块被配置为:In some implementations, the cache module is configured to:
响应于所述应用程序的内存中已缓存的配置数据的数量未达到预设阈值,将所述第一页面对象当前的配置数据缓存在所述应用程序的内存中;In response to the amount of cached configuration data in the memory of the application program not reaching the preset threshold, cache the current configuration data of the first page object in the memory of the application program;
和/或,and / or,
响应于所述应用程序的内存中已缓存的配置数据的数量达到预设阈值,将最早缓存的页面对象的配置数据删除,并将所述第一页面对象当前的配置数据缓存在所述应用程序的内存中。In response to the amount of cached configuration data in the memory of the application reaching the preset threshold, the configuration data of the earliest cached page object is deleted, and the current configuration data of the first page object is cached in the application. in memory.
在一些实施方式中,所述缓存模块被配置为:In some implementations, the cache module is configured to:
将所述第一页面对象的配置数据缓存在应用程序前一个页面对象的配置数据的路由栈顶层;Caching the configuration data of the first page object at the top level of the routing stack of the configuration data of the previous page object of the application program;
或者,or,
利用所述第一页面对象的配置数据替换位于路由栈顶层的前一个页面对象的配置数据。The configuration data of the previous page object located at the top of the routing stack is replaced with the configuration data of the first page object.
第三方面,本公开实施方式提供了一种电子设备,包括:In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
处理器;和processor; and
存储器,存储有计算机指令,所述计算机指令用于使所述处理器执行根据第一方面任意实施方式所述的方法。A memory stores computer instructions for causing the processor to execute the method according to any implementation manner of the first aspect.
第四方面,本公开实施方式提供了一种存储介质,存储有计算机指令, 所述计算机指令用于使计算机执行根据第一方面任意实施方式所述的方法。In a fourth aspect, an embodiment of the present disclosure provides a storage medium that stores computer instructions, and the computer instructions are used to cause a computer to execute the method according to any embodiment of the first aspect.
本公开实施方式的应用控制方法,包括响应于检测到应用程序中由当前页面对象跳转至第一页面对象,获取预先缓存的第一页面对象的配置数据,并根据配置数据生成第一页面对象。本公开实施方式中,在页面对象跳转时,通过对页面对象的配置数据进行缓存,可以实现页面对象的快速跳转,而且对于小内存设备也可以实现多个页面对象的缓存,无需重新初始化历史页面对象,实现页面对象的快速跳转,提高应用使用流畅性,提高用户体验。The application control method in the embodiment of the present disclosure includes, in response to detecting a jump from the current page object to the first page object in the application program, obtaining the pre-cached configuration data of the first page object, and generating the first page object according to the configuration data. . In the embodiment of the present disclosure, when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices without re-initialization. Historical page objects enable fast jumps to page objects, improve application fluency, and improve user experience.
为了更清楚地说明本公开具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly explain the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings that need to be used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description The drawings illustrate some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1是根据本公开一些实施方式中电子设备的操作系统的架构图。FIG. 1 is an architectural diagram of an operating system of an electronic device according to some embodiments of the present disclosure.
图2是根据本公开一些实施方式中应用控制方法的流程图。Figure 2 is a flowchart of an application control method in some embodiments of the present disclosure.
图3是根据本公开一些实施方式中应用控制方法的流程图。Figure 3 is a flowchart of an application control method in some embodiments of the present disclosure.
图4是根据本公开一些实施方式中应用控制方法的原理图。Figure 4 is a schematic diagram of an application control method in some embodiments of the present disclosure.
图5是根据本公开一些实施方式中应用控制方法的原理图。Figure 5 is a schematic diagram of an application control method according to some embodiments of the present disclosure.
图6是根据本公开一些实施方式中应用控制装置的结构框图。Figure 6 is a structural block diagram of an application control device according to some embodiments of the present disclosure.
图7是根据本公开一些实施方式中电子设备的结构框图。Figure 7 is a structural block diagram of an electronic device according to some embodiments of the present disclosure.
下面将结合附图对本公开的技术方案进行清楚、完整地描述,显然,所描述的实施方式是本公开一部分实施方式,而不是全部的实施方式。基于本公开中的实施方式,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施方式,都属于本公开保护的范围。此外,下面所描述的本 公开不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。The technical solution of the present disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, but not all of them. Based on the embodiments in this disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this disclosure. In addition, the technical features involved in different embodiments of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
随着计算机应用技术的发展,各种电子设备越来越普及,基于电子设备的应用(Application)也越来越丰富。以手机应用为例,例如可包括购物类应用、即时通讯类应用、地图导航类应用、音视频播放类应用等。With the development of computer application technology, various electronic devices are becoming more and more popular, and applications based on electronic devices are becoming more and more abundant. Taking mobile phone applications as an example, they may include shopping applications, instant messaging applications, map navigation applications, audio and video playback applications, etc.
一个应用程序往往包括多个页面对象,用户可以通过点击某个页面上的按键自动跳转至另一个页面、通过返回按键返回历史页面等。现如今,随着应用程序所能实现的功能越来越多,应用程序的页面对象所包括的组件资源也越来越多,例如背景图片、链接、挂件等组件资源。An application often includes multiple page objects. Users can automatically jump to another page by clicking a button on a page, return to historical pages by pressing the return button, etc. Nowadays, as applications can implement more and more functions, the page objects of applications also include more and more component resources, such as background images, links, widgets and other component resources.
相关技术中,对于智能手机、平板电脑等终端设备,其硬件性能和内存空间较优,在启动一个应用程序时,可以将历史访问过的页面对象完全缓存在内存中,从而用户由当前页面返回历史页面时,可以直接呈现出历史页面,无需等待初始化配置及渲染。In related technologies, for terminal devices such as smartphones and tablets, the hardware performance and memory space are relatively good. When an application is started, the page objects that have been visited in the history can be completely cached in the memory, so that the user can return from the current page. When viewing the history page, the history page can be displayed directly without waiting for initial configuration and rendering.
但是,对于智能手表、智能手环等穿戴式设备,设备的处理性能和内存空间均较差,穿戴式设备在启动某个应用时,若将历史访问过的已经渲染的页面对象缓存在内存中,穿戴式设备分配给应用的内存空间有限,可能仅能缓存历史最近一次访问的页面对象,用户想要退回更早的页面对象,就需要重新对页面对象进行初始化配置和渲染,造成应用使用卡顿,降低用户体验。However, for wearable devices such as smart watches and smart bracelets, the processing performance and memory space of the device are poor. When the wearable device starts an application, if it caches the rendered page objects that have been visited in the past in the memory , the memory space allocated to the application by the wearable device is limited, and it may only be able to cache the page object most recently accessed in history. If the user wants to return an earlier page object, he needs to re-initialize, configure and render the page object, causing the application to use the lag. Pause, reducing user experience.
基于上述缺陷,本公开实施方式提供了一种应用控制方法、装置、电子设备以及存储介质,旨在对应用的页面对象进行管理控制,实现多个页面对象的快速跳转,提高应用运行效果。Based on the above defects, embodiments of the present disclosure provide an application control method, device, electronic device and storage medium, aiming to manage and control the page objects of the application, realize rapid jump of multiple page objects, and improve the application running effect.
图1示出了本公开一些实施方式中电子设备的操作系统的架构示意图。Figure 1 shows a schematic architectural diagram of an operating system of an electronic device in some embodiments of the present disclosure.
如图1所示,系统软件架构可分为四层,分别为应用程序(Applications)层、应用程序框架(Application Framework)层、函数库(Libraries)层和Linux内核(Linux Kernel)层。As shown in Figure 1, the system software architecture can be divided into four layers, namely the Applications layer, Application Framework layer, Libraries layer and Linux Kernel layer.
1、应用程序层1. Application layer
应用程序层是Android系统中与用户交互的层级。应用程序层包括手机的各种应用,例如设置、联系人、短信、通话、图库、日历、浏览器等系统应用,或者微信等第三方应用。应用程序层可以根据不同应用访问应用程序框架层提供的服务。一般而言,应用程序使用Java语言开发,通过调用应用程 序框架层所提供的应用程序编程接口(application programming interface,API)来完成。例如,开发者在设置页面跳转任务时,可以在应用程序层访问应用程序框架层提供的用于设置页面跳转任务的接口管理服务。The application layer is the layer in the Android system that interacts with users. The application layer includes various applications of the mobile phone, such as system applications such as settings, contacts, text messages, calls, gallery, calendar, browser, or third-party applications such as WeChat. The application layer can access the services provided by the application framework layer according to different applications. Generally speaking, applications are developed using the Java language and are completed by calling the application programming interface (application programming interface, API) provided by the application framework layer. For example, when a developer sets a page jump task, he or she can access the interface management service provided by the application framework layer at the application layer for setting a page jump task.
2、应用程序框架层2. Application framework layer
应用程序框架层主要是为开发者提供了可以访问应用程序所使用的各种API。对于不同的应用,应用程序框架层为应用程序层提供的API不同,服务也不同。例如,设置页面对象管理任务时,应用程序框架层可以为应用程序层提供设置页面跳转任务的API,并为应用程序层提供相关接口管理服务,以实现页面对象的管理控制。The application framework layer mainly provides developers with access to various APIs used by applications. For different applications, the application framework layer provides different APIs and services to the application layer. For example, when setting page object management tasks, the application framework layer can provide the application layer with an API for setting page jump tasks, and provide relevant interface management services for the application layer to achieve management control of page objects.
具体的,开发者可以通过应用程序框架来与操作系统的底层(例如函数库、Linux内核等)进行交互,开发自己的应用程序。该应用程序框架可以是操作系统的一系列的服务和管理系统。应用程序框架主要包括如下基础服务:Specifically, developers can interact with the underlying layer of the operating system (such as function libraries, Linux kernel, etc.) through the application framework to develop their own applications. The application framework can be a series of services and management systems of the operating system. The application framework mainly includes the following basic services:
页面管理(Window Manager)模块:用于管理在屏幕上使用的图形用户页面资源,具体可包括:页面对象的创建和销毁、页面对象的显示与隐藏、页面布局、焦点的管理以及输入法和壁纸管理等。Page management (Window Manager) module: used to manage graphical user page resources used on the screen, specifically including: creation and destruction of page objects, display and hiding of page objects, page layout, focus management, and input methods and wallpapers Management etc.
活动管理(Activity Manager)模块:用于管理每个应用的生命周期。应用通常以Activity的形式运行在操作系统中。对于每一个Activity,在活动管理器中都会有一个与之对应的应用记录(Activity Record),这个Activity Record记录了该应用的Activity的状态。活动管理器可以利用这个Activity Record作为标识,调度应用的Activity进程。Activity Manager (Activity Manager) module: used to manage the life cycle of each application. Applications usually run in the operating system in the form of Activity. For each Activity, there will be a corresponding application record (Activity Record) in the activity manager. This Activity Record records the status of the application's Activity. The activity manager can use this Activity Record as an identifier to schedule the application's Activity process.
视图:具有丰富的、可扩展的视图集合,可用于构建一个应用程序,它具体包括列表(List)、网格(Grid)、文本框(TextBox)、按钮(Button),以及可嵌入的网页浏览器。View: A rich and extensible view collection that can be used to build an application, including List, Grid, TextBox, Button, and embeddable web browser device.
通知管理(Notification Manager)模块:用于控制应用程序在状态栏、锁屏界面等显示提示信息(例如警告(Alerts)、通知(Notifications)等)给用户。Notification Manager module: used to control applications to display prompt information (such as Alerts, Notifications, etc.) to users in the status bar, lock screen interface, etc.
3、函数库层3. Function library layer
函数库层是应用程序框架的支撑,是连接应用程序框架层与Linux内核层的重要纽带。函数库层包括一些由计算机程序C语言或C++语言编译的函数库,这些函数库能被操作系统中的不同的组件使用,它们通过应用程序框架层为开发者提供服务。具体地,函数库可以包括libc函数库,它是专门为基 于embedded linux的设备定制的;函数库还可以包括多媒体库(Media Framework),该库支持多种编码格式的音频或视频的回放和录制,同时支持静态图像文件,以及常见的音频或视频编码格式。函数库还包括界面管理库(Surface Manager),主要负责管理针对显示系统的访问,具体用于在执行多个应用程序时候,负责管理显示与存取操作间的互动,另外也负责2D绘图与3D绘图进行显示合成。The function library layer is the support of the application framework and an important link between the application framework layer and the Linux kernel layer. The function library layer includes some function libraries compiled from the computer program C language or C++ language. These function libraries can be used by different components in the operating system. They provide services to developers through the application framework layer. Specifically, the function library can include the libc function library, which is specially customized for embedded Linux-based devices; the function library can also include the multimedia library (Media Framework), which supports the playback and recording of audio or video in multiple encoding formats. , while supporting still image files, as well as common audio or video encoding formats. The function library also includes the interface management library (Surface Manager), which is mainly responsible for managing access to the display system. It is specifically used to manage the interaction between display and access operations when executing multiple applications. It is also responsible for 2D drawing and 3D Drawing for display composition.
函数库层中还可以包括其它的用于实现电子设备各个功能的函数库,例如:可扩展图形库(scalable graphics library,SGL):基于可扩展标记语言(extensible markup language,XML)文件的2D图形图像处理引擎;安全套接层(secure sockets layer,SSL):位于TVP/IP协议与各种应用层协议之间,为数据通讯提供支持;三维图形处理库(OpenGL/ES):3D效果的支持;轻型数据库(SQLite):关系型数据库引擎;Webkit:Web浏览器引擎;FreeType:位图及矢量字体支持;等等。The function library layer can also include other function libraries used to implement various functions of electronic devices, such as: scalable graphics library (SGL): 2D graphics based on extensible markup language (XML) files Image processing engine; secure sockets layer (SSL): located between TVP/IP protocol and various application layer protocols, providing support for data communication; 3D graphics processing library (OpenGL/ES): support for 3D effects; Lightweight database (SQLite): relational database engine; Webkit: Web browser engine; FreeType: bitmap and vector font support; etc.
安卓运行时(Android Runtime)是一种在操作系统上的运行环境,是操作系统所使用的一种新的虚拟机。在Android Runtime中,采用AOT(Ahead-Of-Time)技术,应用程序在第一次安装的时候,该应用程序的字节码就会被预先编译成机器码,让应用程序成为真正的本地应用,之后再次运行,就省去了编译这一步骤,启动和执行都会变得更加快速。Android Runtime is a running environment on the operating system and a new virtual machine used by the operating system. In Android Runtime, AOT (Ahead-Of-Time) technology is used. When an application is installed for the first time, the bytecode of the application will be pre-compiled into machine code, making the application a truly local application. , and then run it again, the compilation step will be omitted, and startup and execution will become faster.
在本公开其它一些实施例中,Android Runtime也可以由核心函数库(Core Libraries)和Dalvik虚拟机(Dalvik Virtual Machine)代替。核心函数库提供了Java语言API中的大多数功能,主要通过Java原生界面(java native interface,JNI)的方式向应用程序框架层提供调用底层程序库的接口。同时也包含了该操作系统的一些核心API,如android.os、android.net、android.media等等。Dalvik虚拟机使用一种JIT(Just-in-Time)的运行时编译的机制,每次启动一个进程都需要虚拟机在后台重新编译字节码,会对启动速度有一定的影响。每一个应用程序都运行在是一个Dalvik虚拟机中的实例中,每一个Dalvik虚拟机实例都是一个独立的进程空间。Dalvik虚拟机设计成在一个设备可以高效地运行多个虚拟机。Dalvik虚拟机可执行文件格式是.dex,dex格式是专为Dalvik设计的一种压缩格式,适合内存和处理器速度有限的系统。需要提出的是Dalvik虚拟机依赖于Linux内核提供基本功能(线程、底层内存管理)。可以理解的是, Android Runtime、Dalvik属于不同类型的虚拟机,本领域技术人员可以在不同情况下选用不同形式的虚拟机。In some other embodiments of the present disclosure, Android Runtime can also be replaced by Core Libraries and Dalvik Virtual Machine. The core function library provides most functions in the Java language API, mainly through the Java native interface (java native interface, JNI) to provide the application framework layer with an interface for calling the underlying program library. It also includes some core APIs of the operating system, such as android.os, android.net, android.media, etc. The Dalvik virtual machine uses a JIT (Just-in-Time) runtime compilation mechanism. Every time a process is started, the virtual machine needs to recompile the bytecode in the background, which will have a certain impact on the startup speed. Each application runs in an instance of the Dalvik virtual machine, and each Dalvik virtual machine instance is an independent process space. The Dalvik virtual machine is designed to efficiently run multiple virtual machines on a single device. The Dalvik virtual machine executable file format is .dex. The dex format is a compression format specially designed for Dalvik and is suitable for systems with limited memory and processor speed. What needs to be mentioned is that the Dalvik virtual machine relies on the Linux kernel to provide basic functions (threads, underlying memory management). It can be understood that Android Runtime and Dalvik belong to different types of virtual machines, and those skilled in the art can choose different forms of virtual machines in different situations.
4、Linux内核层4. Linux kernel layer
Linux内核层提供操作系统的核心系统服务,如安全性、内存管理、进程管理、网络协议栈和驱动模型等都基于Linux内核。Linux内核同时也作为硬件和软件栈之间的抽象层。该层有许多与电子设备相关的驱动程序,主要的驱动有:显示驱动;基于Linux的帧缓冲驱动;作为输入设备的键盘驱动;基于内存技术设备的Flash驱动;照相机驱动;音频驱动;蓝牙驱动;Wi-Fi驱动等。The Linux kernel layer provides core system services of the operating system, such as security, memory management, process management, network protocol stack and driver model, all based on the Linux kernel. The Linux kernel also serves as an abstraction layer between the hardware and software stacks. This layer has many drivers related to electronic devices. The main drivers are: display driver; Linux-based frame buffer driver; keyboard driver as an input device; Flash driver based on memory technology equipment; camera driver; audio driver; Bluetooth driver ; Wi-Fi driver, etc.
在上述系统的基础上,本公开实施方式提供了一种应用控制方法,该方法可应用于电子设备。本公开实施方式中,电子设备可以是任何适于实施的设备类型,例如智能手机、平板电脑、穿戴式设备等,另外,可以理解,本公开实施方式方法对于小内存的电子设备效果更佳,小内存的电子设备例如可以是智能手表、智能手环、智能眼镜等穿戴式设备,本公开对此不作限制。并且,本公开所述的应用可以是任何适于部署在电子设备中的应用类型,例如即时通讯类应用、地图导航类应用、音视频播放类应用等,本公开对此不作限制。Based on the above system, embodiments of the present disclosure provide an application control method, which can be applied to electronic devices. In the embodiments of the present disclosure, the electronic device can be any device type suitable for implementation, such as smart phones, tablet computers, wearable devices, etc. In addition, it can be understood that the method of the embodiments of the present disclosure is more effective for electronic devices with small memory. Electronic devices with small memory can be, for example, wearable devices such as smart watches, smart bracelets, and smart glasses, which are not limited in this disclosure. Moreover, the application described in the present disclosure can be any application type suitable for deployment in electronic devices, such as instant messaging applications, map navigation applications, audio and video playback applications, etc., and the present disclosure is not limited to this.
如图2所示,在一些实施方式中,本公开示例的应用控制方法,包括:As shown in Figure 2, in some implementations, the application control method of the present disclosure includes:
S210、响应于检测到应用程序中由当前页面对象跳转至第一页面对象,获取预先缓存的第一页面对象的配置数据。S210. In response to detecting that the current page object jumps to the first page object in the application program, obtain the pre-cached configuration data of the first page object.
S220、根据配置数据生成第一页面对象。S220. Generate a first page object according to the configuration data.
可以理解,应用程序中可以包括多个页面对象,用户通过触摸或按键等操作,可以实现在各个页面对象之间的跳转。例如一个示例中,应用程序为音乐播放类应用,应用程序启动时位于首页页面对象,用户可通过触摸操作点击首页中的音乐名称,将当前显示的首页页面对象跳转至音乐播放界面的页面对象。在本实施例中,应用程序可为轻量级电子设备中的应用,轻量级电子设备可为智能手表、智能手环等设备,轻量级电子设备的内存空间较小且硬件性能受限,往往只能同时存在一个进程。It can be understood that the application may include multiple page objects, and the user can jump between each page object through operations such as touching or pressing keys. For example, in an example, the application is a music playing application. When the application is started, it is located on the home page object. The user can click the music name on the home page through touch operation to jump to the page object of the music playing interface from the currently displayed home page object. . In this embodiment, the application program may be an application in a lightweight electronic device. The lightweight electronic device may be a smart watch, a smart bracelet, etc. The memory space of the lightweight electronic device is small and the hardware performance is limited. , often only one process can exist at the same time.
本公开实施方式中,可以将待跳转显示的页面对象定义为第一页面对象,也即,第一页面对象可以是应用程序中任意的页面对象,并不局限于某一固 定的页面对象。In the embodiment of the present disclosure, the page object to be jumped and displayed can be defined as the first page object. That is, the first page object can be any page object in the application program and is not limited to a fixed page object.
当前页面对象是指应用程序中当前正在展示的页面对象,也即当前页面对象可以是除第一页面对象之外的任意页面对象,并不局限于某一固定的页面对象。The current page object refers to the page object currently being displayed in the application, that is, the current page object can be any page object except the first page object, and is not limited to a fixed page object.
当检测到应用程序中由当前页面对象跳转至第一页面对象,表示当前显示的当前页面对象需要被隐藏至后台,前台需要显示切换第一页面对象。例如一个示例中,用户通过触摸或点击操作,将应用程序中当前运行的第二页面对象跳转至第一页面对象,此时,第二页面对象将被隐藏至后台,第一页面对象将在前台渲染显示。When it is detected that the current page object jumps to the first page object in the application, it means that the currently displayed current page object needs to be hidden in the background, and the first page object needs to be displayed and switched in the foreground. For example, in one example, the user jumps to the first page object from the second page object currently running in the application through touch or click operations. At this time, the second page object will be hidden in the background, and the first page object will be in the background. Foreground rendering display.
本公开实施方式中,第一页面对象可能是在显示第二页面对象之前已经启动过的页面对象,也即第一页面对象被切换至后台运行。在此情况下,在第一页面对象被切换至后台时,系统会在应用程序内存中缓存第一页面对象的配置数据,从而在第一页面对象再次被切换至前台运行时,应用程序内存中已经预先缓存有第一页面对象的配置数据。In the embodiment of the present disclosure, the first page object may be a page object that has been started before the second page object is displayed, that is, the first page object is switched to running in the background. In this case, when the first page object is switched to the background, the system will cache the configuration data of the first page object in the application memory, so that when the first page object is switched to the foreground again, the configuration data will be cached in the application memory. The configuration data of the first page object has been cached in advance.
本公开实施方式中,考虑到对于部分小内存设备而言,在第一页面对象被隐藏至后台时,第一页面对象的渲染界面无需呈现给用户,从而也无需将第一页面对象的所有数据均缓存在内存中。因此,本公开实施方式中,可以将第一页面对象中的组件资源进行删除,从而释放内存空间,仅在应用程序内存中缓存第一页面对象的配置数据。In the embodiment of the present disclosure, considering that for some small memory devices, when the first page object is hidden in the background, the rendering interface of the first page object does not need to be presented to the user, and therefore there is no need to display all the data of the first page object. are cached in memory. Therefore, in the embodiment of the present disclosure, the component resources in the first page object can be deleted, thereby freeing up memory space, and only the configuration data of the first page object is cached in the application memory.
可以理解,在渲染显示页面对象时,需要根据各种组件资源生成对应的显示界面,组件资源例如可包括背景图片、按钮图标、图层挂件等,这些组件资源会占用大量的内存空间。同时,在系统底层,还需要根据页面对象的配置数据配置应用环境,配置数据例如可包括配置应用所需的全局变量信息,如系统能力接口信息、应用定时器信息等。从而本公开实施方式中,在第一页面对象被隐藏至后台时,即可将第一页面对象的组件资源进行删除,从而释放内存空间,仅将配置数据缓存在内存中。It can be understood that when rendering and displaying page objects, a corresponding display interface needs to be generated based on various component resources. For example, component resources may include background images, button icons, layer widgets, etc. These component resources will occupy a large amount of memory space. At the same time, at the bottom of the system, the application environment needs to be configured based on the configuration data of the page object. The configuration data may include, for example, the global variable information required to configure the application, such as system capability interface information, application timer information, etc. Therefore, in the embodiment of the present disclosure, when the first page object is hidden in the background, the component resources of the first page object can be deleted, thereby freeing up memory space, and only the configuration data is cached in the memory.
例如一些实施方式中,在第一页面对象被切换至第二页面对象时,可以将第一页面对象的组件资源进行清除,包括渲染第一页面对象的所需的背景图片、按钮图标等数据均从内存中清除。而初始化第一页面对象所需的相关配置数据缓存在应用程序内存中。For example, in some embodiments, when the first page object is switched to the second page object, the component resources of the first page object can be cleared, including the background images, button icons and other data required for rendering the first page object. Cleared from memory. The relevant configuration data required to initialize the first page object is cached in the application memory.
可以理解,由于第一页面对象的组件资源不进行缓存,相较于组件资源数据,页面对象的配置数据仅占用很少的内存空间。从而,仅占用很少的内存空间即可实现第一页面对象的缓存,尤其对于穿戴式设备等低内存设备,可以同时实现多个页面对象的缓存。It can be understood that since the component resources of the first page object are not cached, compared with the component resource data, the configuration data of the page object only occupies a small amount of memory space. Therefore, caching of the first page object can be achieved by occupying only a small amount of memory space. Especially for low-memory devices such as wearable devices, multiple page objects can be cached at the same time.
本公开实施方式中,在由当前页面对象跳转回第一页面对象时,由于应用程序内存中已经缓存有第一页面对象的配置数据,从而可直接从内存中读取第一页面对象的配置数据,根据该配置数据渲染页面,得到第一页面对象,实现当前页面对象至第一页面对象的跳转。In the embodiment of the present disclosure, when jumping back to the first page object from the current page object, since the configuration data of the first page object is already cached in the application memory, the configuration of the first page object can be read directly from the memory. data, render the page according to the configuration data, obtain the first page object, and realize the jump from the current page object to the first page object.
本公开实施方式中,在由当前页面对象跳转回第一页面对象时,由于无需重新对第一页面对象进行初始化配置,也即第一页面对象无需重新启动,节省第一页面对象的初始化过程占用的时间,设备可由当前页面对象快速回退到第一页面对象,提高应用程序的流畅度,提高页面跳转的效率。In the embodiment of the present disclosure, when jumping from the current page object back to the first page object, since there is no need to re-initialize the configuration of the first page object, that is, the first page object does not need to be restarted, saving the initialization process of the first page object. During the occupied time, the device can quickly return to the first page object from the current page object, improving the smoothness of the application and the efficiency of page jumps.
另外可以理解,本公开实施方式中的第一页面对象并不具体限定为应用程序中的某个页面对象,也即,对于每个页面对象,在当前页面对象被跳转至其它页面对象时,均可以将当前页面对象的配置数据依次缓存在应用程序的内存中。由于仅缓存配置数据,所占用的内存空间很少,相较于缓存页面对象全部数据的方案,可以在相同内存空间的情况下缓存更多数量的页面对象。In addition, it can be understood that the first page object in the embodiment of the present disclosure is not specifically limited to a certain page object in the application program. That is, for each page object, when the current page object is jumped to other page objects, The configuration data of the current page object can be cached in the memory of the application in sequence. Since only configuration data is cached, it takes up very little memory space. Compared with the solution of caching all data of page objects, a larger number of page objects can be cached in the same memory space.
例如一个示例中,系统由第一页面对象跳转至第二页面对象,可以将第一页面对象的配置数据缓存在应用程序内存中。然后系统由第二页面对象跳转至第三页面对象,可以将第二页面对象的配置数据也缓存在应用程序内存中。当系统由第三页面对象回退至第二页面对象时,可以从内存中读取第二页面对象的配置数据,并实时渲染生成第二页面对象。当系统由第二页面对象回退至第一页面对象时,可以从内存中读取第一页面对象的配置数据,并实时渲染生成第一页面对象。For example, in one example, the system jumps from the first page object to the second page object, and the configuration data of the first page object can be cached in the application memory. Then the system jumps from the second page object to the third page object, and the configuration data of the second page object can also be cached in the application memory. When the system rolls back from the third page object to the second page object, the configuration data of the second page object can be read from the memory and rendered to generate the second page object in real time. When the system rolls back from the second page object to the first page object, the configuration data of the first page object can be read from the memory and rendered in real time to generate the first page object.
通过上述可知,本公开实施方式中,在页面对象跳转时,通过对页面对象的配置数据进行缓存,可以实现页面对象的快速跳转,而且对于小内存设备也可以实现多个页面对象的缓存,无需重新初始化配置历史页面对象,实现页面对象的快速跳转,提高应用程序使用流畅性,提高用户体验。It can be seen from the above that in the embodiments of the present disclosure, when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices. , there is no need to re-initialize the configuration of historical page objects, realize rapid jump of page objects, improve the smoothness of application use, and improve user experience.
如图3所示,在一些实施方式中,本公开示例的应用程序控制方法中, 控制页面对象跳转的过程包括:As shown in Figure 3, in some implementations, in the application control method of this disclosure example, the process of controlling page object jump includes:
S310、获取待跳转页面对象的跳转指令。S310. Obtain the jump instruction of the page object to be jumped.
S320、根据页面标识,确定当前应用程序内存中是否缓存待跳转页面对象的配置数据。S320. According to the page identifier, determine whether the configuration data of the page object to be jumped is cached in the current application memory.
S330、响应于当前应用程序内存中已经缓存待跳转页面对象的配置数据,根据配置数据生成待跳转页面。S330. In response to the configuration data of the page object to be jumped being cached in the current application memory, generate the page to be jumped based on the configuration data.
S340、响应于当前应用程序内存中未缓存待跳转页面的配置数据,根据获取的待跳转页面的初始化数据,对待跳转页面进行初始化配置,并生成待跳转页面。S340. In response to the fact that the configuration data of the page to be jumped is not cached in the current application memory, initialize the configuration of the page to be jumped based on the obtained initialization data of the page to be jumped, and generate the page to be jumped.
本公开实施方式中,待跳转页面对象是指期望跳转到的目标页面对象。例如一个示例中,当前显示页面为第一页面对象,需要跳转的页面对象为第二页面对象,从而第二页面对象即为待跳转页面对象。In the embodiment of the present disclosure, the page object to be jumped refers to the target page object that is expected to be jumped to. For example, in an example, the currently displayed page is the first page object, the page object that needs to be jumped is the second page object, and the second page object is the page object to be jumped.
跳转指令是指触发页面对象跳转的指令数据,其可以在开发应用时预先设置。例如一个示例中,在由第一页面对象跳转至第二页面对象的场景中,第一页面对象中具有预设功能按键,用户可通过触摸操作触发第一页面对象中的预设功能按键,从而即可生成由第一页面对象跳转至第二页面对象的跳转指令。Jump instructions refer to instruction data that trigger page object jumps, which can be set in advance when developing applications. For example, in one example, in a scene where a first page object jumps to a second page object, the first page object has preset function keys, and the user can trigger the preset function keys in the first page object through touch operations. Thus, a jump instruction for jumping from the first page object to the second page object can be generated.
在一些实施方式中,跳转指令中可以包括待跳转页面对象的应用标识、待跳转页面对象的页面标识以及相关的页面参数。待跳转页面对象的应用标识是指待跳转页面对象所属的应用程序的标识,例如对于用一个应用程序的两个不同页面对象,两者的应用标识应当相同。待跳转页面对象的页面标识是指页面对象的唯一标识信息,例如页面名称等,同一个应用程序的不同页面对象,具有不同的页面标识,从而通过识别该页面标识即可确定需要跳转的待跳转页面对象。页面参数是指待跳转页面的相关配置参数,例如系统能力接口、页面插件初始化参数、语言设置参数等,该参数不是必需的。In some implementations, the jump instruction may include the application identifier of the page object to be jumped, the page identifier of the page object to be jumped, and related page parameters. The application identifier of the page object to be jumped refers to the identifier of the application program to which the page object to be jumped belongs. For example, for two different page objects using one application, the application identifiers of the two should be the same. The page identifier of the page object to be jumped refers to the unique identification information of the page object, such as page name, etc. Different page objects of the same application have different page identifiers, so the page that needs to be jumped can be determined by identifying the page identifier. The page object to be jumped. Page parameters refer to the relevant configuration parameters of the page to be jumped, such as system capability interface, page plug-in initialization parameters, language setting parameters, etc. This parameter is not required.
本公开实施方式中,以同一个应用程序的不同页面对象跳转为例,在触发页面跳转时,可以生成待跳转页面对象的跳转指令,从而系统通过解析该跳转指令,可以得到待跳转页面对象的页面标识。In the embodiment of the present disclosure, taking the jump of different page objects in the same application as an example, when a page jump is triggered, a jump instruction of the page object to be jumped can be generated, so that the system can obtain by parsing the jump instruction. The page identifier of the page object to be jumped.
基于前述可知,若待跳转页面对象为历史页面对象,则应用程序内存中可能已经缓存有该页面对象的配置数据。因此,基于待跳转页面的页面标识, 由当前应用程序内存中判断是否已经缓存有该页面标识对应的配置数据。若应用程序内存中已经缓存该待跳转页面对象的配置数据,则执行S330;反之,若应用程序内存中没有缓存该待跳转页面对象的配置数据,则执行S340。Based on the foregoing, it can be known that if the page object to be jumped is a historical page object, the configuration data of the page object may have been cached in the application memory. Therefore, based on the page identifier of the page to be jumped, it is determined whether the configuration data corresponding to the page identifier has been cached in the current application memory. If the configuration data of the page object to be jumped has been cached in the application memory, S330 is executed; conversely, if the configuration data of the page object to be jumped is not cached in the application memory, S340 is executed.
具体来说,对于S330,若应用程序内存中已经缓存有该待跳转页面对象的配置数据,表示待跳转页面对象为历史访问过的页面对象,且该页面对象当前处于后台保持状态,此时可以直接从内存中读取该页面对象的配置数据,并根据配置数据渲染生成待跳转页面对象对应的待跳转页面。无需重新初始化该页面对象,提高应用程序的页面跳转效率。Specifically, for S330, if the configuration data of the page object to be jumped has been cached in the application memory, it means that the page object to be jumped is a page object that has been visited in history, and the page object is currently in the background retention state. This You can directly read the configuration data of the page object from the memory, and render and generate the page to be jumped corresponding to the page object to be jumped based on the configuration data. There is no need to re-initialize the page object, which improves the page jump efficiency of the application.
对于S340,若应用程序内存中没有缓存该待跳转页面对象的配置数据,可能存在如下两种情况:For S340, if the configuration data of the page object to be jumped is not cached in the application memory, the following two situations may exist:
一是,待跳转页面对象不是历史访问过的页面对象,此时,可以读取待跳转页面对象的配置文件夹得到待跳转页面对象的初始化数据,根据该初始化数据进行初始化配置和渲染,即可生成待跳转页面对象对应的待跳转页面。初始化数据是指待跳转页面对象首次启动时所需的数据,其包括上述的渲染该页面对象所需的组件资源及配置数据。First, the page object to be jumped is not a page object that has been visited in history. At this time, the configuration folder of the page object to be jumped can be read to obtain the initialization data of the page object to be jumped, and initialization configuration and rendering are performed based on the initialization data. , the page to be jumped corresponding to the page object to be jumped can be generated. Initialization data refers to the data required when the page object to be jumped is started for the first time, which includes the above-mentioned component resources and configuration data required to render the page object.
二是,虽然待跳转页面对象是历史访问过的页面对象,但是,由于内存空间受限,待跳转页面的配置数据已经被覆盖删除,此时,也可以读取待跳转页面对象的配置文件夹得到待跳转页面对象的初始化数据,根据该初始化数据进行初始化配置和渲染,即可生成待跳转页面对象对应的待跳转页面。本公开下文实施方式中对此进行说明,在此暂不详述。Second, although the page object to be jumped is a page object that has been visited in history, due to limited memory space, the configuration data of the page to be jumped has been overwritten and deleted. At this time, the page object to be jumped can also be read. The configuration folder obtains the initialization data of the page object to be jumped, and performs initial configuration and rendering based on the initialization data to generate the page to be jumped corresponding to the page object to be jumped. This will be described in the following embodiments of the present disclosure and will not be described in detail here.
通过上述可知,本公开实施方式中,在页面对象跳转时,通过对页面对象的配置数据进行缓存,可以实现页面对象的快速跳转,而且对于小内存设备也可以实现多个页面对象的缓存,无需重新初始化配置历史页面对象,实现页面对象的快速跳转,提高应用程序使用流畅性,提高用户体验。It can be seen from the above that in the embodiments of the present disclosure, when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices. , there is no need to re-initialize the configuration of historical page objects, realize rapid jump of page objects, improve the smoothness of application use, and improve user experience.
结合图1所示的系统架构,本公开实施方式中,应用程序框架层可为开发者提供3个用于页面对象管理的API,分别为push接口、replace接口和back接口。Combined with the system architecture shown in Figure 1, in the embodiment of the present disclosure, the application framework layer can provide developers with three APIs for page object management, which are push interface, replace interface and back interface.
在应用开发领域,路由是应用程序的页面对象的抽象,路由栈可以理解为对页面对象进行管理的规则,它能够使得各个页面对象按照预定的规律相互跳转切换,下面结合图4对其原理进行说明。In the field of application development, routing is the abstraction of the page object of the application. The routing stack can be understood as the rules for managing page objects. It enables each page object to jump and switch to each other according to predetermined rules. The principle is shown below in conjunction with Figure 4. Be explained.
首先以push接口为例,push接口为新建页面对象的API接口,当开发者需要新建页面对象时,可以调用该push接口,将页面对象的页面数据推入路由栈中,并通知底层渲染显示该页面对象。页面对象的页面数据即包括上述的配置页面对象的配置数据以及渲染页面对象的组件资源。First, take the push interface as an example. The push interface is the API interface for creating a new page object. When the developer needs to create a new page object, the push interface can be called to push the page data of the page object into the routing stack and notify the underlying rendering to display the page object. Page object. The page data of the page object includes the above-mentioned configuration data of the page object and the component resources for rendering the page object.
例如图4中所示,新建的页面对象page1的页面数据被推入栈内,此时穿戴式设备上显示page1的页面。开发者调用push接口新建页面对象page2,page2的页面数据被推入路由栈中且位于page1的顶层,通过page2的页面数据渲染显示page2的页面。同理,开发者调用push接口新建页面对象page3,page3的页面数据被推入路由栈中且位于page2的顶层,通过page3的页面数据渲染显示page3的页面。For example, as shown in Figure 4, the page data of the newly created page object page1 is pushed into the stack. At this time, the page of page1 is displayed on the wearable device. The developer calls the push interface to create a new page object page2. The page data of page2 is pushed into the routing stack and is located at the top level of page1. The page of page2 is rendered and displayed through the page data of page2. In the same way, the developer calls the push interface to create a new page object page3. The page data of page3 is pushed into the routing stack and is located on the top level of page2. The page of page3 is rendered and displayed through the page data of page3.
back接口,是指回退到之前历史页面的API接口,当开发者需要回退至某个历史页面对象时,可以调用该back接口,将页面数据由栈顶开始删除直至到达需要回退的页面对象。The back interface refers to the API interface for going back to the previous historical page. When the developer needs to go back to a historical page object, the back interface can be called to delete the page data from the top of the stack until it reaches the page that needs to be rolled back. object.
例如图4中所示,当需要由page3页面回退至page2页面时,开发者调用back接口,将栈顶的page3页面数据进行删除,此时page2即为栈顶,然后根据page2的配置数据渲染生成page2页面。同理,当需要由page2页面回退至page1页面时,开发者调用back接口,将栈顶的page2页面数据进行删除,此时page1即为栈顶,然后根据page1的配置数据渲染生成page1页面。For example, as shown in Figure 4, when it is necessary to go back from page3 to page2, the developer calls the back interface to delete the page3 data on the top of the stack. At this time, page2 is the top of the stack, and is then rendered according to the configuration data of page2. Generate page2 page. In the same way, when it is necessary to go back from page2 to page1, the developer calls the back interface to delete the page2 data on the top of the stack. At this time, page1 is the top of the stack, and then the page1 page is generated based on the configuration data of page1.
replace接口,是指替换栈顶页面对象的API接口,当开发者需要替换当前页面对象时,可以调用该replace接口,将页面对象的页面数据推入路由栈中,并替换当前栈顶的页面数据,同时渲染得到替换后的页面对象。The replace interface refers to the API interface for replacing the page object on the top of the stack. When the developer needs to replace the current page object, the replace interface can be called to push the page data of the page object into the routing stack and replace the page data on the top of the current stack. , and at the same time render the replaced page object.
例如图5中所示,当需要有page4页面替换当前page3页面时,开发者调用replace接口,将page4页面数据推入路由栈顶层覆盖page3页面数据,并通过page4的页面数据渲染显示page4的页面。For example, as shown in Figure 5, when page 4 needs to replace the current page 3, the developer calls the replace interface, pushes the page 4 data to the top of the routing stack to overwrite the page 3 data, and renders and displays the page 4 through the page data of page 4.
基于上述可知,本公开实施方式中,在当前页面对象跳转至其它页面对象时,需要缓存当前页面对象的配置数据。在一些实施方式中,可以如图4所示原理,依次将当前页面对象的配置数据缓存在前一个页面对象的配置数据的路由栈顶层。在另一些实施方式中,可以如图5所示原理,利用当前页面对象的配置数据替换位于路由栈顶层的前一个页面对象的配置数据。本公开对此不作限制。Based on the above, it can be seen that in the embodiment of the present disclosure, when the current page object jumps to other page objects, the configuration data of the current page object needs to be cached. In some implementations, as shown in Figure 4, the configuration data of the current page object can be cached on the top layer of the routing stack of the configuration data of the previous page object in sequence. In other embodiments, the configuration data of the previous page object located at the top of the routing stack can be replaced with the configuration data of the current page object according to the principle shown in Figure 5 . This disclosure does not limit this.
本公开实施方式中,在缓存第一页面对象的配置数据时,应用程序的内存空间有限,无法缓存所有历史页面的配置数据。从而,在一些实施方式中,可以根据应用程序的内存空间,预先设置可缓存的配置数据的数量,该数据也即本公开所述的预设阈值。预设阈值的数量可以根据具体场景进行选择,例如预设阈值可以为4、6、8、10等任意数值。In the embodiment of the present disclosure, when caching the configuration data of the first page object, the application program has limited memory space and cannot cache the configuration data of all historical pages. Therefore, in some implementations, the amount of cacheable configuration data can be preset according to the memory space of the application program, and this data is also the preset threshold described in this disclosure. The number of preset thresholds can be selected according to specific scenarios. For example, the preset threshold can be any value such as 4, 6, 8, 10, etc.
以图4示例为例,应用程序内存中至多可缓存4个页面对象的配置数据,从而,在缓存第一页面对象的配置数据时,首先可判断当前应用程序内存中已缓存的页面对象的配置数据的数量是否达到预设阈值4。Taking the example in Figure 4 as an example, the configuration data of up to four page objects can be cached in the application memory. Therefore, when caching the configuration data of the first page object, the configuration of the cached page object in the current application memory can first be determined. Whether the amount of data reaches the preset threshold 4.
若当前应用程序中已缓存的配置数据的数量为4,说明当前应用程序内存中已缓存的配置数据已达到上限,从而可以将最早缓存的配置数据进行删除,然后将第一页面对象的配置数据缓存在路由栈顶层。If the number of cached configuration data in the current application is 4, it means that the cached configuration data in the current application memory has reached the upper limit, so the earliest cached configuration data can be deleted, and then the configuration data of the first page object can be deleted. The cache is at the top of the routing stack.
若当前应用程序中已缓存的配置数据的数量小于4,说明当前应用程序内存中已缓存的配置数据未达到上限,从而无需删除已缓存的配置数据,直接将第一页面对象的配置数据缓存在路由栈顶层即可。If the number of cached configuration data in the current application is less than 4, it means that the cached configuration data in the current application memory has not reached the upper limit. Therefore, there is no need to delete the cached configuration data, and the configuration data of the first page object is directly cached in Just go to the top of the routing stack.
通过上述可知,本公开实施方式中,在页面对象跳转时,通过对页面对象的配置数据进行缓存,可以实现页面对象的快速跳转,而且对于小内存设备也可以实现多个页面对象的缓存,无需重新初始化配置历史页面对象,实现页面对象的快速跳转,提高应用程序使用流畅性,提高用户体验。可以在缓存数据达到内存上限时,对已缓存数据进行动态更新,利于低内存的穿戴式设备部署。It can be seen from the above that in the embodiments of the present disclosure, when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices. , there is no need to re-initialize the configuration of historical page objects, realize rapid jump of page objects, improve the smoothness of application use, and improve user experience. When the cached data reaches the upper memory limit, the cached data can be dynamically updated, which is beneficial to the deployment of low-memory wearable devices.
在一些实施方式中,本公开示例提供了一种应用程序控制装置,该装置可应用与穿戴式设备。本公开实施方式中,穿戴式设备可以是任何适于实施的类型,例如智能手表、智能手环、智能眼镜器等,本公开对此不作限制。并且,本公开所述的应用程序可以是任何适于部署在穿戴式设备中的应用类型,例如即时通讯类应用、地图导航类应用、音视频播放类应用等,本公开对此不作限制。In some embodiments, examples of the present disclosure provide an application control device, which can be applied to wearable devices. In the embodiments of the present disclosure, the wearable device can be any suitable type for implementation, such as smart watches, smart bracelets, smart glasses, etc., and the present disclosure is not limited to this. Moreover, the application program described in the present disclosure can be any application type suitable for deployment in wearable devices, such as instant messaging applications, map navigation applications, audio and video playback applications, etc., and the present disclosure is not limited to this.
如图6所示,在一些实施方式中,本公开示例的应用程序控制装置,包括:As shown in Figure 6, in some implementations, the application control device of the example of the present disclosure includes:
获取模块10,被配置为被配置为响应于检测到应用程序中由当前页面对象跳转至第一页面对象,获取预先缓存的所述第一页面对象的配置数据;The
生成模块20,被配置为根据所述配置数据生成所述第一页面对象。The
通过上述可知,本公开实施方式中,在页面对象跳转时,通过对页面对象的配置数据进行缓存,可以实现页面对象的快速跳转,而且对于小内存设备也可以实现多个页面对象的缓存,无需重新初始化配置历史页面对象,实现页面对象的快速跳转,提高应用程序使用的流畅性,提高用户体验。It can be seen from the above that in the embodiments of the present disclosure, when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices. , there is no need to re-initialize the configuration of historical page objects, realize quick jump of page objects, improve the smoothness of application use, and improve user experience.
在一些实施方式中,本公开实施方式所述的装置,还包括缓存模块,所述缓存模块被配置为:In some embodiments, the device described in the embodiments of the present disclosure further includes a cache module, and the cache module is configured to:
响应于检测到所述应用程序中由所述第一页面对象跳转至其他页面对象,将所述第一页面对象当前的所述配置数据缓存在所述应用程序内存中。In response to detecting that the application program jumps from the first page object to other page objects, the current configuration data of the first page object is cached in the application program memory.
在一些实施方式中,本公开实施方式所述的装置,还包括页面跳转模块,所述页面跳转模块被配置为:In some embodiments, the device described in the embodiments of the present disclosure also includes a page jump module, and the page jump module is configured to:
获取待跳转页面对象的跳转指令,所述跳转指令中包括所述待跳转页面的页面标识;Obtain the jump instruction of the page object to be jumped, where the jump instruction includes the page identifier of the page to be jumped;
根据所述页面标识,确定当前应用程序内存中是否缓存所述待跳转页面对象的配置数据;According to the page identifier, determine whether the configuration data of the page object to be jumped is cached in the current application memory;
响应于当前应用程序内存中已经缓存所述待跳转页面对象的配置数据,根据所述配置数据生成所述待跳转页面对象。In response to the configuration data of the page object to be jumped being cached in the current application memory, the page object to be jumped is generated according to the configuration data.
在一些实施方式中,所述页面跳转模块被配置为:In some implementations, the page jump module is configured to:
响应于当前应用程序内存中未缓存所述待跳转页面的配置数据,根据获取的所述待跳转页面的初始化数据,对所述待跳转页面进行初始化配置,生成所述待跳转页面对象。In response to the fact that the configuration data of the page to be jumped is not cached in the current application memory, the page to be jumped is initialized and configured according to the obtained initialization data of the page to be jumped, and the page to be jumped is generated. object.
在一些实施方式中,缓存模块被配置为:In some implementations, the cache module is configured to:
响应于所述应用程序的内存中已缓存的配置数据的数量未达到预设阈值,将所述第一页面对象当前的配置数据缓存在所述应用程序的内存中;In response to the amount of cached configuration data in the memory of the application program not reaching the preset threshold, cache the current configuration data of the first page object in the memory of the application program;
和/或,and / or,
响应于所述应用程序的内存中已缓存的配置数据的数量达到预设阈值,将最早缓存的页面对象的配置数据删除,并将所述第一页面对象当前的配置数据缓存在所述应用程序的内存中。In response to the amount of cached configuration data in the memory of the application reaching the preset threshold, the configuration data of the earliest cached page object is deleted, and the current configuration data of the first page object is cached in the application. in memory.
在一些实施方式中,缓存模块被配置为:In some implementations, the cache module is configured to:
将所述第一页面对象的配置数据缓存在应用程序前一个页面对象的配 置数据的路由栈顶层;Caching the configuration data of the first page object at the top level of the routing stack of the configuration data of the previous page object in the application program;
或者,or,
利用所述第一页面对象的配置数据替换位于路由栈顶层的前一个页面对象的配置数据。The configuration data of the previous page object located at the top of the routing stack is replaced with the configuration data of the first page object.
通过上述可知,本公开实施方式中,在页面对象跳转时,通过对页面对象的配置数据进行缓存,可以实现页面对象的快速跳转,而且对于小内存设备也可以实现多个页面对象的缓存,无需重新初始化配置历史页面对象,实现页面对象的快速跳转,提高应用程序使用的流畅性,提高用户体验。可以在缓存数据达到内存上限时,对已缓存数据进行动态更新,利于低内存的穿戴式设备部署。It can be seen from the above that in the embodiments of the present disclosure, when the page object jumps, by caching the configuration data of the page object, the page object can be quickly jumped, and multiple page objects can also be cached for small memory devices. , there is no need to re-initialize the configuration of historical page objects, realize quick jump of page objects, improve the smoothness of application use, and improve user experience. When the cached data reaches the upper memory limit, the cached data can be dynamically updated, which is beneficial to the deployment of low-memory wearable devices.
在一些实施方式中,本公开实施方式提供了一种电子设备,包括:In some embodiments, embodiments of the present disclosure provide an electronic device, including:
处理器;和processor; and
存储器,存储有计算机指令,计算机指令用于使处理器执行根据上述任意实施方式的方法。The memory stores computer instructions, and the computer instructions are used to cause the processor to execute the method according to any of the above embodiments.
通过上述可知,本公开实施方式对于电子设备的类型不作限制,可以是任何适于实施的设备类型。但是,本公开实施方式方法对于小内存设备也可以实现多个页面对象的缓存,从而对于穿戴式设备等小内存设备具有更好的实施效果。As can be seen from the above, the embodiments of the present disclosure do not limit the type of electronic equipment, and it can be any type of equipment suitable for implementation. However, the implementation method of the present disclosure can also implement caching of multiple page objects for small memory devices, thereby having better implementation effects for small memory devices such as wearable devices.
在一些实施方式中,本公开实施方式提供了一种存储介质,存储有计算机指令,计算机指令用于使计算机执行上述任意实施方式的方法In some embodiments, embodiments of the present disclosure provide a storage medium storing computer instructions. The computer instructions are used to cause the computer to execute the method of any of the above embodiments.
图7中示出了本公开一些实施方式中的电子设备的结构框图,下面结合图7对本公开一些实施方式的电子设备及存储介质相关原理进行说明。Figure 7 shows a structural block diagram of an electronic device in some embodiments of the present disclosure. The relevant principles of electronic devices and storage media in some embodiments of the present disclosure will be described below with reference to Fig. 7 .
参照图7电子设备1800可以包括以下一个或多个组件:处理组件1802,存储器1804,电源组件1806,多媒体组件1808,音频组件1810,输入/输出(I/O)接口1812,传感器组件1816,以及通信组件1818。Referring to Figure 7,
处理组件1802通常控制电子设备1800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1802可以包括一个或多个处理器1820来执行指令。此外,处理组件1802可以包括一个或多个模块,便于处理组件1802和其他组件之间的交互。例如,处理组件1802可以包括多媒体模块,以方便多媒体组件1808和处理组件1802之间的交互。 又如,处理组件1802可以从存储器读取可执行指令,以实现电子设备相关功能。Processing component 1802 generally controls the overall operations of
存储器1804被配置为存储各种类型的数据以支持在电子设备1800的操作。这些数据的示例包括用于在电子设备1800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 1804 is configured to store various types of data to support operations at
电源组件1806为电子设备1800的各种组件提供电力。电源组件1806可以包括电源管理系统,一个或多个电源,及其他与为电子设备1800生成、管理和分配电力相关联的组件。
多媒体组件1808包括在所述电子设备1800和用户之间的提供一个输出接口的显示屏。在一些实施例中,多媒体组件1808包括一个前置摄像头和/或后置摄像头。当电子设备1800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件1810被配置为输出和/或输入音频信号。例如,音频组件1810包括一个麦克风(MIC),当电子设备1800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1804或经由通信组件1818发送。在一些实施例中,音频组件1810包括一个扬声器,用于输出音频信号。
I/O接口1812为处理组件1802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件1816包括一个或多个传感器,用于为电子设备1800提供各个方面的状态评估。例如,传感器组件1816可以检测到电子设备1800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备1800的显示器和小键盘,传感器组件1816可以检测电子设备1800或电子设备1800一个组件的位置改变,用户与电子设备1800接触的存在或不存在,电子设备1800方位 或加速/减速和电子设备1800的温度变化。传感器组件1816可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1816可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1816可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件1818被配置为便于电子设备1800和其他设备之间有线或无线方式的通信。电子设备1800可以接入基于通信标准的无线网络,如Wi-Fi,2G,3G,4G,5G或6G,或它们的组合。在一个示例性实施例中,通信组件1818经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1818包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,电子设备1800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现。In an exemplary embodiment,
显然,上述实施方式仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本公开创造的保护范围之中。Obviously, the above-mentioned embodiments are only examples for clear explanation and are not limitations of the embodiments. For those of ordinary skill in the art, other different forms of changes or modifications can be made based on the above description. An exhaustive list of all implementations is neither necessary nor possible. The obvious changes or modifications derived therefrom are still within the protection scope of the present invention.
Claims (12)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2022/099932 WO2023245368A1 (en) | 2022-06-20 | 2022-06-20 | Application control method and apparatus, electronic device, and storage medium |
| CN202280004242.0A CN117813600A (en) | 2022-06-20 | 2022-06-20 | Application control method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2022/099932 WO2023245368A1 (en) | 2022-06-20 | 2022-06-20 | Application control method and apparatus, electronic device, and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023245368A1 true WO2023245368A1 (en) | 2023-12-28 |
Family
ID=89379002
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/099932 Ceased WO2023245368A1 (en) | 2022-06-20 | 2022-06-20 | Application control method and apparatus, electronic device, and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN117813600A (en) |
| WO (1) | WO2023245368A1 (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6061715A (en) * | 1998-04-30 | 2000-05-09 | Xerox Corporation | Apparatus and method for loading and reloading HTML pages having cacheable and non-cacheable portions |
| CN109032457A (en) * | 2017-08-18 | 2018-12-18 | 金蝶软件(中国)有限公司 | page display method, device, terminal and storage medium |
| CN110309456A (en) * | 2018-03-12 | 2019-10-08 | 优视科技有限公司 | A kind of page display method and device |
| CN111414207A (en) * | 2020-03-12 | 2020-07-14 | 支付宝(杭州)信息技术有限公司 | Page construction method, device and equipment |
| CN111666516A (en) * | 2020-04-24 | 2020-09-15 | 北京奇艺世纪科技有限公司 | Page loading method and device, electronic equipment and storage medium |
| CN114595413A (en) * | 2022-02-18 | 2022-06-07 | 众安信息技术服务有限公司 | Webpage layout method and system and computer equipment |
-
2022
- 2022-06-20 CN CN202280004242.0A patent/CN117813600A/en active Pending
- 2022-06-20 WO PCT/CN2022/099932 patent/WO2023245368A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6061715A (en) * | 1998-04-30 | 2000-05-09 | Xerox Corporation | Apparatus and method for loading and reloading HTML pages having cacheable and non-cacheable portions |
| CN109032457A (en) * | 2017-08-18 | 2018-12-18 | 金蝶软件(中国)有限公司 | page display method, device, terminal and storage medium |
| CN110309456A (en) * | 2018-03-12 | 2019-10-08 | 优视科技有限公司 | A kind of page display method and device |
| CN111414207A (en) * | 2020-03-12 | 2020-07-14 | 支付宝(杭州)信息技术有限公司 | Page construction method, device and equipment |
| CN111666516A (en) * | 2020-04-24 | 2020-09-15 | 北京奇艺世纪科技有限公司 | Page loading method and device, electronic equipment and storage medium |
| CN114595413A (en) * | 2022-02-18 | 2022-06-07 | 众安信息技术服务有限公司 | Webpage layout method and system and computer equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117813600A (en) | 2024-04-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8478245B2 (en) | Method and system for rendering content on a wireless device | |
| US8103865B2 (en) | Server method and system for rendering content on a wireless device | |
| CN111597000B (en) | Small window management method and terminal | |
| CN110874217B (en) | Interface display method and device for quick application and storage medium | |
| CN110990105B (en) | Interface display method and device, electronic equipment and storage medium | |
| US11210119B2 (en) | Method and device for displaying interface, electronic equipment, server, and storage medium | |
| CN111026396A (en) | Page rendering method and device, electronic equipment and storage medium | |
| CN111026490A (en) | Page rendering method and device, electronic equipment and storage medium | |
| CN110865863B (en) | Interface display method and device for fast application and storage medium | |
| CN110990075A (en) | Quick application startup method, device, device and storage medium | |
| CN111008057A (en) | Page display method and device and storage medium | |
| CN110851108A (en) | Electronic equipment operation method and device, electronic equipment and storage medium | |
| CN110971974B (en) | Configuration parameter creating method, device, terminal and storage medium | |
| CN110941464B (en) | Light exposure method, device, system and storage medium | |
| CN115994007B (en) | Animation effect display method and electronic device | |
| CN111078325A (en) | Application running method, device, electronic device and storage medium | |
| CN110865760A (en) | Electronic equipment operation method and device, electronic equipment and storage medium | |
| CN114979533A (en) | Video recording method, device and terminal | |
| CN111008050B (en) | Page task execution method, device, terminal and storage medium | |
| WO2023245368A1 (en) | Application control method and apparatus, electronic device, and storage medium | |
| CN117707657B (en) | Display method of application interface, electronic equipment and computer readable storage medium | |
| CN118885234A (en) | A method for playing application startup animation, electronic device and related medium | |
| CN116743908B (en) | Wallpaper display method and related device | |
| CN111104183A (en) | Application program running method and device, electronic equipment and storage medium | |
| WO2023245370A1 (en) | Scheduled task management method and apparatus, electronic device, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| WWE | Wipo information: entry into national phase |
Ref document number: 202280004242.0 Country of ref document: CN |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22947149 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22947149 Country of ref document: EP Kind code of ref document: A1 |