Application processing method, application processing device, computer equipment and medium
By encapsulating only the business-required resources related to the application in the application package, and loading the remaining resources at runtime, the problem of excessive storage space occupied by the application package and long initialization time is solved, and the granularity of storage space and time is improved.
Patent Information
- Application Number
- CN201910477239.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-03
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-06-03
AI Technical Summary
In the prior art, multiple resources are encapsulated in application packages, which results in excessive storage space usage and long initialization time, which cannot meet the storage space and time precision requirements of mobile application development.
By determining the business related to the application, only the required resources are encapsulated in the application package, and the remaining irrelevant business resources are loaded during the running process of the application, thereby reducing storage space occupation and initialization time.
It effectively reduces the storage space occupation and initialization time of the application package and improves the user experience without affecting the loading speed of other services.
Smart Images

Figure CN112035095B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and more specifically, to an application processing method, an application processing device, a computer device, and a medium. Background Art
[0002] Java Native Interface (JNI) allows Java code to interact with other language codes (such as C language code and C++ language code). For example, the application layer classes of Android are usually written in Java. After these Java classes are compiled into Dex files (virtual machine executable binary files generated when the application (APP) is installed, the .dex format is a compression format designed specifically for Dalvik), they need to rely on the Dalvik virtual machine (VirtualMachine) to execute. If you need to load C&C++ functions when executing a Java program, the Dalvik virtual machine will load the C&C++ library, allowing the Java layer to call these local resources smoothly. Among them, the Dalvik virtual machine can support the operation of Java applications that have been converted to the .dex format.
[0003] For example, for image recognition, the call to local resources in the prior art is usually to directly load the dynamic link library (shared object, also called shared library, referred to as so algorithm code library or so library, so file in the so algorithm code library is the Linux program function library) in a static or dynamic way, and then initialize the algorithm model file in the initialization interface of the dynamic link library, and then pass in the image data through another JNI interface, and use the algorithm obtained from the dynamic link library to recognize the image to obtain the recognition result.
[0004] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the prior art: an application package usually encapsulates multiple resources to locally support the operation of multiple services, resulting in the application package occupying too much storage space and taking a long time to initialize. Summary of the invention
[0005] In view of this, the present disclosure provides an application processing method, an application processing apparatus, a computer device and a medium that can effectively reduce the storage space occupied by an application package and shorten the initialization time.
[0006] One aspect of the present disclosure provides an application processing method executed by a development end, comprising: first, determining a first business, where the first business is at least one business related to starting the application, and the application includes multiple businesses; if the first business exists, determining resources related to the first business, where the resources related to the first business are resources required to load the first business; then, encapsulating the resources related to the first business in an application package, and sending the application package to a server end.
[0007] The application processing method provided by the present disclosure may switch between several completely different services when the application is running, using multiple functions such as rapid face recognition, face attribute recognition, face tracking, gesture recognition, etc. Different functions require corresponding resources to implement. By determining the service related to starting the application and encapsulating the resources required to load the related service, such as the required algorithms, algorithm model files, etc. in the application package, there is no need to encapsulate the resources required for all services of the application in the application package, effectively reducing the storage space occupied by the application package, and can load the remaining services not related to starting the application during the application running process, while saving storage space and shortening the initialization time, it will not affect the loading speed of other services, thereby improving the user experience.
[0008] According to an embodiment of the present disclosure, each service includes at least one display interface. Accordingly, determining the resources related to the first service includes determining resources required for at least part of the display interfaces included in the first service.
[0009] According to an embodiment of the present disclosure, the application has a corresponding relationship between the display interface and the resources of the business. Accordingly, the method may further include the following operation: encapsulating the corresponding relationship between the display interface and the resources of the business in an application package, so as to facilitate determining the resources required for the current display interface based on the corresponding relationship between the display interface and the resources of the business.
[0010] Another aspect of the present disclosure provides an application processing method executed by a server, the method may include the following operations: first, receiving an application request from a client, the application request including application package information, determining an application package based on the application package information in response to the application request, and then sending the application package to the client, wherein the application package encapsulates resources related to a first business, the first business being at least one business related to an application that starts the application package, and the resources related to the first business being resources required for loading the first business.
[0011] The application processing method provided by the present disclosure encapsulates the resources of the business related to the application that starts the application package in the application package, and the remaining resources do not need to be encapsulated, which effectively reduces the storage space occupied by the application package, reduces the amount of information transmission, and shortens the initialization time. At the same time, the resources of the remaining business can be loaded during the running of the application without affecting the loading speed of the remaining business, thereby improving the user experience.
[0012] According to an embodiment of the present disclosure, the server at least stores resources related to the second service of the application, and the second service is different from the first service. Accordingly, the method may further include the following operations: first, receiving a resource request related to the second service from the client, determining resources related to the second service in response to the resource request related to the second service, and then sending the resources related to the second service to the client. Sending corresponding resources based on the resource request of the client avoids the need to encapsulate all resources in the application package when installing the application.
[0013] Another aspect of the present disclosure provides an application processing method executed by a client, the method may include the following operations: first, obtaining an application package, the application package encapsulating resources related to a first service, and then installing the application package, wherein the first service is at least one service related to starting an application corresponding to the application package, and the resources related to the first service are resources required to load the first service. The application installation time can be effectively shortened without affecting the loading time of other services.
[0014] According to an embodiment of the present disclosure, the method may further include the following operations: when the application is running, if an instruction to load a second service is received, resources related to the second service are obtained from the server, the second service is different from the first service, and then the second service is loaded based on the resources related to the second service. Since initializing resources is time-consuming, in order to ensure smoothness of switching between pages, all resources related to the second service are obtained when loading the second service.
[0015] According to an embodiment of the present disclosure, each business includes at least one display interface. Accordingly, the loading of the second business based on the resources related to the second business may include the following operations: first, create a task list, each task is used to call a resource related to the second business, then determine the current display interface, then determine the first resource from the resources related to the second business based on the current display interface and the correspondence between the display interface and the resources of the business, then determine the first task corresponding to the first resource from the task list, and then execute the first task. All display interfaces under the second business register the required resources, and based on this, create a task list to facilitate each page under the second business to call the required resources in the form of tasks.
[0016] According to an embodiment of the present disclosure, the method may further include the following operations: if a command to change to a new display interface is received, a second resource is determined from the resources related to the second business based on the new display interface and the corresponding relationship between the display interface and the resources of the business, and then a second task corresponding to the second resource is determined from the task list, and then the second task is executed. When the second business switches from the first display interface to the second display interface, the tasks involved in the second display interface are activated, so that each page can run the tasks it needs, and the operation efficiency is high.
[0017] According to an embodiment of the present disclosure, the method may further include the following operations: first, a specified number of storage spaces are allocated to each task corresponding to a display interface in units of display interfaces, wherein, for a task corresponding to a display interface, at least one storage space in the specified number of storage spaces is used to store a first attribute of a task corresponding to the display interface, and the remaining storage spaces in the specified number of storage spaces are used to store a second attribute of a task corresponding to the display interface. Each task has its own attributes, and when two or more pages share the same task, the configuration attributes modified by one page will not affect other pages.
[0018] According to an embodiment of the present disclosure, the method may further include the following operation: when performing a service switch, the task list is cleared, so as to facilitate loading or unloading required resources at any time.
[0019] Another aspect of the present disclosure provides an application processing device, including a business determination module, a resource determination module and an output module, wherein the business determination module is used to determine a first business, the first business is at least one business related to starting the application, and the application includes multiple businesses; the resource determination module is used to determine the resources related to the first business if the first business exists, the resources related to the first business are the resources required to load the first business; the output module is used to encapsulate the resources related to the first business in an application package and send the application package to a server.
[0020] According to an embodiment of the present disclosure, each service includes at least one display interface, and the resource determination module is specifically used to determine resources required for at least part of the display interface included in the first service.
[0021] According to an embodiment of the present disclosure, the application has a corresponding relationship between a display interface and business resources. Accordingly, the device may further include a relationship storage module, which is used to encapsulate the corresponding relationship between the display interface and business resources in an application package.
[0022] Another aspect of the present disclosure provides an application processing device, including an application request receiving module, an application package determining module and an application package sending module, wherein the application request receiving module is used to receive an application request from a client, the application request including application package information, the application package determining module is used to respond to the application request and determine the application package based on the application package information, and the application package sending module is used to send the application package to the client, wherein the application package encapsulates resources related to a first business, the first business is at least one business related to an application that starts the application package, and the resources related to the first business are resources required to load the first business.
[0023] According to an embodiment of the present disclosure, the server side stores at least resources related to a second business of the application, and the second business is different from the first business. Accordingly, the device may also include a resource request receiving module, a resource determination module and a resource sending module, wherein the resource request receiving module is used to receive a resource request related to the second business from the client, the resource determination module is used to determine the resources related to the second business in response to the resource request related to the second business, and the resource sending module is used to send the resources related to the second business to the client.
[0024] Another aspect of the present disclosure provides an application processing device, which may include an application package acquisition module and an installation module, wherein the application package acquisition module is used to acquire an application package, the application package encapsulating resources related to a first business, and the installation module is used to install the application package, the first business is at least one business related to starting an application corresponding to the application package, and the resources related to the first business are resources required to load the first business.
[0025] According to an embodiment of the present disclosure, the device also includes: a resource acquisition module and a service loading module, wherein the resource acquisition module is used to obtain resources related to the second service from the server side when the application is running, if an instruction to load the second service is received, and the second service is different from the first service, and the service loading module is used to load the second service based on the resources related to the second service.
[0026] According to an embodiment of the present disclosure, each business includes at least one display interface, and accordingly, the business loading module includes: a list creation unit, an interface determination unit, a resource determination unit, a first task determination unit and a first task execution unit, wherein the list creation unit is used to create a task list, each task is used to call a resource related to the second business, the interface determination unit is used to determine the current display interface, the resource determination unit is used to determine the first resource from the resources related to the second business based on the current display interface and the correspondence between the display interface and the resources of the business, the first task determination unit is used to determine the first task corresponding to the first resource from the task list, and the first task execution unit is used to execute the first task.
[0027] According to an embodiment of the present disclosure, the business loading module may also include an update receiving unit, a second task determination unit and a second task execution unit. The update receiving unit is used to determine the second resource from the resources related to the second business based on the new display interface and the correspondence between the display interface and the business resources if an instruction to replace the new display interface is received. The second task determination unit is used to determine the second task corresponding to the second resource from the task list. The second task execution unit is used to execute the second task.
[0028] According to an embodiment of the present disclosure, the business loading module may further include a space allocation unit, wherein the space allocation unit is used to allocate a specified number of storage spaces for each task corresponding to the display interface, based on the display interface as a unit, wherein, for a task corresponding to a display interface, at least one storage space in the specified number of storage spaces is used to store a first attribute of a task corresponding to the display interface, and the remaining storage spaces in the specified number of storage spaces are used to store a second attribute of a task corresponding to the display interface.
[0029] According to an embodiment of the present disclosure, the service loading module may further include a task clearing unit, and the task clearing unit is used to clear the task list when performing service switching.
[0030] Another aspect of the present disclosure provides a computer device, including one or more processors and a storage device, wherein the storage device is used to store executable instructions, and when the executable instructions are executed by the processor, the method described above is implemented.
[0031] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.
[0032] Another aspect of the present disclosure provides a computer program, which includes computer executable instructions, and the instructions are used to implement the method described above when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0034] Figure 1A The resources involved in an algorithm call process in the prior art are schematically shown;
[0035] Figure 1B The application scenarios of the application processing method, application processing apparatus, computer equipment and medium according to the embodiments of the present disclosure are schematically shown;
[0036] Figure 1C The system architecture of the application processing method, application processing apparatus, computer equipment and medium suitable for the embodiments of the present disclosure is schematically shown;
[0037] Figure 2A A flowchart of an application processing method executed by a development end according to an embodiment of the present disclosure is schematically shown;
[0038] Figure 2B The application processing method executed by the server side according to an embodiment of the present disclosure is schematically shown;
[0039] Figure 2C The time slot setting of the identity recognition process according to the embodiment of the present disclosure is schematically shown;
[0040] Figure 3A A block diagram of an application processing device according to an embodiment of the present disclosure is schematically shown;
[0041] Figure 3B A block diagram of an application processing device according to another embodiment of the present disclosure is schematically shown;
[0042] Figure 3C A block diagram schematically shows an application processing device according to another embodiment of the present disclosure; and
[0043] Figure 4 The block diagram of a computer device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0044] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0045] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0046] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0047] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0048] Figure 1A The resources involved in an algorithm calling process in the prior art are schematically shown.
[0049] like Figure 1A As shown in the figure, in an algorithm call process, three resources are usually involved, such as Java code, so algorithm code and model files used by the algorithm. For example, when a Java program needs to load a C&C++ function, the Dalvik virtual machine will load the so algorithm code library of C&C++ so that the Java layer can successfully call the algorithm model file.
[0050] The existing technology mainly includes the following problems. First, the resource calling method is not fine enough, and the granularity that developers can control over algorithm components is very large. The degree of fineness is reflected in two aspects. On the one hand, it is the fineness of the volume (the storage space required). The volume of the algorithm model is usually very large, ranging from tens of megabytes (MB) to 3Mb to 5Mb. This is a large volume for mobile application development. In addition, the volume of the so algorithm code library is basically in the order of 3Mb to 10Mb. For example, an App uses an algorithm code library and algorithm model files related to face recognition. The volume of this App package is basically more than 20Mb. For some developers who pursue perfection, such as pursuing a smaller application package, this coarse-grained control obviously cannot meet the needs.
[0051] On the other hand, there is the precision in time. The initialization of the SO algorithm code library usually occurs when the program starts and lasts until the program ends. For applications with multiple services, such as advertising machine services, more precise time control may be required. During the operation of the application, several completely different advertising services may be switched. For example, an advertising machine may support 10 different advertising services, which use multiple functions such as rapid face recognition, face attribute recognition, face tracking, gesture recognition, etc. In the prior art, all the functions that these services can support are a full set, and the application package needs to encapsulate the resources required for all the above functions. This results in the need to initialize the resources required for all the above functions, such as the SO algorithm code library corresponding to all the above functions, when the program starts, resulting in a longer initialization time.
[0052] The embodiments of the present disclosure provide an application processing method, an application processing device, a computer device, and a medium. The method includes a resource determination process and a resource encapsulation process. In the resource determination process, a first service related to starting the application is first determined from multiple services included in the application. If the first service exists, the resources related to the first service are determined, wherein the resources related to the first service are resources required to load the first service. After the resources are determined, a resource encapsulation process is entered to encapsulate the resources related to the first service in an application package, and the application package is sent to a server.
[0053] For example, when the advertising machine is started, it can first enter the smart shelf business (such as the smart shelf business is involved on the application's start interface), and the smart shelf does not need all functions, only needs rapid face recognition to interact with users and enlarge the display of the corresponding position of the goods. In this way, the application package does not need to encapsulate all the so algorithm code libraries, nor does it need to encapsulate all the algorithm model files. It only needs to encapsulate the resources required for the rapid face recognition function, such as the so algorithm code library and algorithm model files required for the rapid face recognition function, which effectively reduces the storage space occupied by the application package and reduces the initialization time of the resources required for the application's functions.
[0054] In addition, when users want to switch to more complex services that use more functions, they can load the required so algorithm code library and algorithm model files. This can not only greatly reduce the size of the application package, but also save memory and shorten the initialization time without affecting the normal use of users, bringing users a series of performance and experience improvements.
[0055] Figure 1B The application scenarios of the application processing method, application processing apparatus, computer equipment and medium according to the embodiments of the present disclosure are schematically illustrated.
[0056] like Figure 1BAs shown, taking the advertising machine 1 as an example, the advertising machine 10 is provided with an image acquisition component 110, which can capture the image of the user so as to determine the position of the user relative to the advertising machine 10. The application of the advertising machine 10 includes the smart shelf business, which needs to call the image acquisition component 110 to capture the user image, and then call the resources required for the face fast recognition function, such as the corresponding so algorithm code library and algorithm model file to realize face fast recognition, so that the position of the user relative to the advertising machine 1 can be determined to interact with the user. For example, if the smart shelf service displays multiple commodities, the initial display area of each commodity is similar, such as displaying brief information of multiple commodities (such as thumbnails, main parameters of commodities, etc.) in a smaller area, when it is detected that the user is close to the advertising machine 1, the SO algorithm code library and algorithm model file required for rapid face recognition are called to determine the user's position relative to the advertising machine 1, and the detailed information of the commodities in the display area facing the user's face (more information than brief information) is displayed to the user. Since more information needs to be displayed, the display area of the commodities in the display area facing the face will become larger. In addition, more detailed information can be displayed in the display area in the form of scrolling, so that interaction with the user can be achieved and the user experience can be improved. However, since the advertising machine 1 usually has multiple services, such as commodity payment (such as requiring face recognition function), commodity shopping guide (such as requiring face attribute recognition to recommend men's or women's clothing, etc.), promotional interactive games (such as requiring gesture recognition function), etc., if all SO algorithm code libraries and algorithm model files are encapsulated in the application package, the application package will be too large and the initialization time will be too long. In addition, if a certain business needs to be updated, all the so algorithm code libraries and algorithm model files need to be encapsulated in the incremental package, causing the application of the advertising machine to be too highly coupled with the specific business.
[0057] Figure 1C The system architecture of the application processing method, application processing apparatus, computer device and medium suitable for the embodiment of the present disclosure is schematically shown. It should be noted that FIG. 1 is only an example of the system architecture to which the embodiment of the present disclosure can be applied, so as to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiment of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0058] like Figure 1C As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and servers 105, 106. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the servers 105, 106. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0059] Users can use terminal devices 101, 102, 103 to interact with servers 105, 106 through network 104 to receive or send information, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as advertising applications, shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0060] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to advertising machines, smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0061] Servers 105 and 106 may be servers that provide the same service or different services, such as a background processing server (only an example) that supports the product information browsed by users using terminal devices 101, 102, and 103. The background processing server may analyze and process the received data such as user requests, and feed back the processing results (such as resources, web pages, information, or data obtained according to user requests) to the terminal device.
[0062] It should be understood that the number of terminal devices, networks and servers is only illustrative. Depending on the implementation requirements, there can be any number of terminal devices, networks and servers.
[0063] Figure 2A The flowchart of the application processing method executed by the development end according to the embodiment of the present disclosure is schematically shown.
[0064] like Figure 2A As shown, the method includes operations S201 to S205.
[0065] In operation S201, a first service is determined, where the first service is at least one service related to starting the application, and the application includes a plurality of services.
[0066] In this embodiment, the first service may be determined based on services involved in the startup process of the application, for example, the first service may be determined based on services involved when the application is started, services entered after the application is started, and so on.
[0067] In addition, since different services may require different functions, that is, there is a corresponding relationship between services and functions, the first service can also be determined based on the functions involved in the startup process of the application. For example, user login is required when the application is started, and the login method can be face recognition login, voiceprint recognition login, etc. based on biometric recognition. At this time, it is necessary to call functions such as face recognition and voiceprint recognition. In addition, it is also necessary to call corresponding sensors such as image sensors and microphones. Therefore, the service that requires face recognition function can be taken as the first service, such as the service that supports face recognition payment as the first service.
[0068] In operation S203, if the first service exists, resources related to the first service are determined, where the resources related to the first service are resources required to load the first service.
[0069] In this embodiment, some services require the use of specific functions, such as the smart shelf service shown above, which requires calling the image acquisition component to collect user images, and calling the resources required for the face rapid recognition function, such as the corresponding so algorithm code library and algorithm model file to recognize the collected user images and realize face rapid recognition, where the so algorithm code library and algorithm model file are the resources related to the first service. The first service and resources shown above are only examples and cannot be understood as limitations on the present disclosure. Other services involving specific functions and the resources required for the functions are also applicable.
[0070] Among them, business-related resources can be the resources required to determine the business by analyzing the business, or the correspondence between the business and resources set by experts based on experience, or resources determined based on a certain method, such as determining the required resources based on a graphical interface included in the business.
[0071] In one embodiment, each service includes at least one display interface. Accordingly, determining the resources related to the first service includes determining resources required for at least part of the display interfaces included in the first service.
[0072] Specifically, if the functions required by a graphical user interface (GUII) of a service include the function of rapid face recognition, then the corresponding resources of the first service may be the so algorithm code library and algorithm model files required for rapid face recognition. For another example, if the functions corresponding to at least one component (such as a button, voice acquisition component, etc.) in the GUI after the application is started include the function of user gender recognition, then the corresponding resources of the first service may be the so algorithm code library and algorithm model files required for face attribute recognition and voice attribute recognition.
[0073] In operation S205, the resources related to the first service are encapsulated in an application package, and the application package is sent to a server.
[0074] Through the above operations, the resources related to starting the application can be determined, so that the resources can be encapsulated in an application package, and the application package can be sent to the server side to facilitate the user to download, install and use.
[0075] It should be noted that no resources may be encapsulated in the application package, that is, when there is no first service related to starting the application, that is, when no service needs to be loaded during the application startup process, no resources may be encapsulated in the application package. All resources required by the application except those related to the first service may be stored on the server side, and downloaded from the server side when these resources are needed.
[0076] For example, a platform billboard App may not contain any software development kit (SDK)'s so algorithm code library, nor does it need to contain any algorithm model files. After determining the business that needs to be loaded, the App only needs to download the minimum set of SDKs for the business that needs to be loaded (including the used so algorithm code library and algorithm model files) from the server to the local in the form of theme resources, and then load it. In this way, the application package can be reduced from the original 50Mb to less than 10Mb.
[0077] In order to facilitate the determination of the required business resources, the application may have a corresponding relationship between the display interface and the business resources, and the corresponding relationship may be determined by calibration or provided by a developer.
[0078] Accordingly, the method may further include the following operation: encapsulating the correspondence between the display interface and the service resources in the application package. This facilitates the application to determine the resources that may need to be loaded based on the current display interface or a display interface associated with the current display interface, and preloads them, which can effectively reduce the waiting time for users to wait for resources to be loaded.
[0079] Figure 2B The application processing method executed by the server according to an embodiment of the present disclosure is schematically shown.
[0080] like Figure 2B As shown, the application processing method may include the following operations.
[0081] In operation S211 , an application request from a client is received, where the application request includes application package information.
[0082] In this embodiment, the application package can be stored on the server side, each application package has a unique identifier (ID), and different versions of application packages have different identifiers. The application package can be an installation package, an incremental package, etc. of the application. For example, the application request can include the name, identifier, and other information of the application package to facilitate the server to find the application package. Different applications are stored in different servers, and one server can also provide support for multiple applications, which is not limited here.
[0083] In operation S213, in response to the application request, an application package is determined based on the application package information. The application package required by the user is determined according to the application package information included in the application request.
[0084] In operation S215, the application package is sent to the client, wherein the application package encapsulates resources related to a first service, the first service is at least one service related to an application that starts the application package, and the resources related to the first service are resources required to load the first service.
[0085] It should be noted that no resources may be encapsulated in the application package at all, that is, when there is no first service related to starting the application, that is, when no service needs to be loaded during the application startup process, no resources may be encapsulated in the application package.
[0086] After the application is started, in order to facilitate the client to load services other than the first service, the server may store resources related to other services.
[0087] In one embodiment, the server at least stores resources related to a second service of the application, where the second service is different from the first service.
[0088] Accordingly, the method may further include the following operations.
[0089] First, a resource request related to a second service is received from the client.
[0090] For example, if the application package received by the client does not contain resources related to the second business, and if the second business needs to be loaded during the running of the application, a resource request related to the second business can be sent to the server to obtain the resources related to the second business, thereby loading the second business based on the resources related to the second business.
[0091] Next, in response to the resource request related to the second service, resources related to the second service are determined. The process of determining the resources related to the second service may refer to the above description of determining the resources related to the first service.
[0092] Then, the resources related to the second service are sent to the client.
[0093] In this way, the size of the application package can be effectively reduced and resource initialization can be shortened without affecting the loading of other services in the application.
[0094] Figure 2C The time slot setting of the identity recognition process according to the embodiment of the present disclosure is schematically shown.
[0095] like Figure 2C As shown, the present disclosure also provides an application processing method executed by a client, and the method may include the following operations.
[0096] In operation S221, an application package is obtained, wherein the application package encapsulates resources related to the first service.
[0097] In operation S223, the application package is installed, wherein the first service is at least one service related to starting the application corresponding to the application package, and the resources related to the first service are resources required to load the first service.
[0098] In this embodiment, the application package obtained by the client only includes resources required for starting the first service related to the application, so that the application package is smaller in size, the time for resource initialization is reduced, and the instantaneous data transmission volume is reduced.
[0099] In addition, the method may further include the following operations.
[0100] When the application is running, if an instruction to load a second service is received, resources related to the second service are obtained from the server, where the second service is different from the first service.
[0101] At this time, the second service may be loaded based on resources related to the second service.
[0102] In one embodiment, each service includes at least one display interface. Accordingly, loading the second service based on resources related to the second service may include the following operations.
[0103] First, create a task list, where each task is used to call a resource related to the second business.
[0104] Then, determine the current display interface.
[0105] Next, based on the current display interface and the correspondence between the display interface and the service resources, a first resource is determined from the resources related to the second service.
[0106] Then, a first task corresponding to the first resource is determined from the task list.
[0107] Next, the first task is executed.
[0108] In a specific embodiment, an advertising machine is used as an example to describe that it is necessary to manage all the functions that the advertising machine needs to use. For example, a Map structure with the page as the primary key can be saved in the memory: Map<page ID: information of the function used>, where the Map structure is one of the most commonly used collections in the Java language, used to store element pairs (called "key" and "value"), each key maps to a value. The information of the function used includes but is not limited to at least one of the following information:
[0109] 1) Whether to call components, such as cameras, fingerprint recognition components, infrared sensors, sound sensors, etc.
[0110] 2) Software Development Kit (SDK) Task List.
[0111] Each task in the SDK task list may include the following information:
[0112] SDK name, for example, JFace, JHand, JFist, Jdish.
[0113] SDK version, for example, Jface has: v1.2.x access control, v1.5.x attribute detection, etc.
[0114] Task ID, for example, Jface has: access control, access control with blur detection, age and gender, age and gender + other attributes, tracking, etc.
[0115] Other default parameter information, such as detection area, frame rate, minimum target detection threshold, activity, etc.
[0116] Of course, according to actual usage requirements, each task may include at least one of the above information, and may also include other information. The information listed above cannot be understood as a limitation of the present disclosure.
[0117] When a service is loaded, all pages under this service can register the following information with the SDK management module:
[0118] 1) Whether to call components and resources.
[0119] 2) The components and task information that need to be called, for example, calling the camera, the required SDK name, SDK version, task ID, etc.
[0120] After registration is complete, the SDK management module will count all the resources used and then get a merged set of the required resources. For example, if there are 3 different pages, the first page only uses fast face detection (access control), the second page uses face tracking, and the third page does not use any function. The SDK management module will automatically count a minimum set of resources required to meet all pages: using the camera, using the so algorithm code library and algorithm model files required for fast face detection, and using the so algorithm code library and algorithm model files required for face tracking.
[0121] In this way, other so algorithm code libraries and algorithm model files, such as jhand.so for age and gender recognition, attribute recognition, and gesture recognition, as well as the algorithm models for age and gender recognition, attribute recognition, and gesture recognition do not need to be loaded, effectively reducing the time required for resource loading and initialization.
[0122] With such functional support, the application package of the platform advertising machine may not contain any resources, such as the so algorithm code library and algorithm model files. After determining the business to be loaded, the application only needs to download the minimum set of resources counted by the SDK management module (including the used so algorithm code library and algorithm model files) from the server to the local in the form of theme resources, and then load it. In this way, the size of the application package can be reduced from about 50Mb to less than 10Mb.
[0123] Furthermore, the method may also include the following operations.
[0124] If an instruction to replace a new display interface is received, a second resource is determined from resources related to the second business based on the new display interface and the corresponding relationship between the display interface and the business resources.
[0125] Next, a second task corresponding to the second resource is determined from the task list.
[0126] Then, the second task is performed.
[0127] In a specific embodiment, when a service is initialized, the application of the advertising machine will load all the algorithm file models used in each page of the currently loaded service. For example, in the scenario of the previous embodiment, when the service is initialized, all the SO algorithm code libraries used will be initialized. Since initializing the SO algorithm code library and initializing the algorithm model is relatively time-consuming, such as 1 to 5 seconds, in order to ensure the smoothness of switching between pages, all initialization work can be done at the beginning.
[0128] The advertising machine App will also add all tasks to the task list when the current business is initialized, so that all tasks are ready to work at any time. When the first page is started, the SDK management module will query the task ID required for the current page based on the page ID, and then activate the task with this task ID.
[0129] When the ad switches from the first page to the second page, the SDK management module will activate the tasks used by the second page. In this way, the required tasks can be activated according to the page ID, ensuring that each page runs the tasks it needs.
[0130] It should be noted that each task has its own attributes, such as detection area, frame rate, minimum target detection threshold, etc.
[0131] These properties can be changed at any time, and an application programming interface (API) will be provided so that each page can modify the parameters of these properties at runtime to achieve fine-grained configuration of the task.
[0132] However, when two or more pages share a task, the configuration properties modified by one page will also affect other pages. However, even if different pages use the same task, the task properties set on one page should not be affected by other pages.
[0133] Specifically, since the same task is executed in different display interfaces, each display interface has its own display attributes. For example, the first display interface needs to display the currently collected image information in the first designated area, while the second display interface needs to display the collected image information in the second designated area, or the second display interface does not need to display the collected image information but only displays the recognition results. Therefore, it is necessary to set the attributes of the task of each display interface.
[0134] In order to achieve the above object, the method may further include the following operations.
[0135] A specified number of storage spaces are allocated to each task corresponding to a display interface in units of display interfaces, wherein, for a task corresponding to a display interface, at least one storage space in the specified number of storage spaces is used to store a first attribute of a task corresponding to the display interface, and the remaining storage spaces in the specified number of storage spaces are used to store a second attribute of a task corresponding to the display interface.
[0136] In a specific embodiment, two tables are created for each task in each page, one for storing default attributes and the other for storing page-customized configurations. In this way, each time this interface is called, even if the task ID is the same, the default attributes of the task will be different. When the task is activated, the SDK management module will restore the configuration attributes of the page to the default values or modify them according to the configuration of the page.
[0137] In this embodiment, a specified number of storage spaces are allocated to each task corresponding to the display interface in units of display interfaces. Each task has its own attributes. When two or more pages share the same task, the configuration attributes modified in one page will not affect other pages.
[0138] In another embodiment, in order to ensure smooth switching of services, the method may further include the following operation: when switching services, clearing the task list.
[0139] Specifically, when switching the entire business, all tasks in the task list need to be cleared and recreated.
[0140] Among them, for the so algorithm code library and algorithm model, when switching services, if they have been initialized in the previous service, there is no need to initialize them again. The SDK management module will save the initialized information and only initialize the so algorithm code library and algorithm model files that have not been initialized.
[0141] The application processing method provided by the present disclosure provides a more refined management implementation method for the two aspects of application volume and usage time. For example, you can choose not to initialize the resources of the business that is not related to the startup of the application. By using this fine management with a smaller granularity, the application of the advertising machine can be decoupled from the specific advertising business, and the so algorithm code library can be loaded or unloaded at any time, and only the required algorithm model files are loaded when in use, which can effectively reduce the size of the installation package and the download incremental package, and can also greatly reduce the initialization time of the business.
[0142] Figure 3A The block diagram of an application processing device according to an embodiment of the present disclosure is schematically shown.
[0143] like Figure 3A As shown, the application processing device 300 may include a service determination module 301 , a resource determination module 303 and an output module 305 .
[0144] The service determination module 301 is used to determine a first service, where the first service is at least one service related to starting the application, and the application includes multiple services.
[0145] The resource determination module 303 is used to determine resources related to the first service if the first service exists, where the resources related to the first service are resources required to load the first service.
[0146] The output module 305 is used to encapsulate the first service-related resources in an application package and send the application package to the server.
[0147] For example, each service includes at least one display interface. Accordingly, the resource determination module 303 is specifically configured to determine resources required for at least part of the display interfaces included in the first service.
[0148] In addition, the application may also have a corresponding relationship between the display interface and the service resources. Accordingly, the device 300 may also include a relationship storage module 307, which is used to encapsulate the corresponding relationship between the display interface and the service resources in the application package.
[0149] Figure 3B A block diagram of an application processing device according to another embodiment of the present disclosure is schematically shown.
[0150] like Figure 3B As shown, another aspect of the present disclosure provides an application processing device 400 , including an application request receiving module 401 , an application package determining module 403 , and an application package sending module 405 .
[0151] The application request receiving module 401 is used to receive an application request from a client, and the application request includes application package information.
[0152] The application package determination module 403 is configured to determine an application package based on the application package information in response to the application request.
[0153] The application package sending module 405 is used to send the application package to the client, wherein the application package encapsulates resources related to a first business, the first business is at least one business related to the application that starts the application package, and the resources related to the first business are resources required to load the first business.
[0154] In order to facilitate the client to load services other than the first service, the server at least stores resources related to a second service of the application, where the second service is different from the first service.
[0155] Accordingly, the apparatus 400 may further include a resource request receiving module, a resource determining module and a resource sending module.
[0156] The resource request receiving module is used to receive a resource request related to the second service from the client.
[0157] The resource determination module is used to determine resources related to the second service in response to a resource request related to the second service.
[0158] The resource sending module is used to send the resources related to the second service to the client.
[0159] Figure 3C A block diagram of an application processing device according to another embodiment of the present disclosure is schematically shown.
[0160] like Figure 3C As shown, another aspect of the present disclosure provides an application processing device 500 , which may include an application package acquisition module 501 and an installation module 503 .
[0161] The application package acquisition module 501 is used to acquire an application package, in which resources related to the first service are encapsulated.
[0162] The installation module 503 is used to install the application package, the first service is at least one service related to starting the application corresponding to the application package, and the resources related to the first service are resources required to load the first service.
[0163] In addition, the device 500 may further include a resource acquisition module 505 and a service loading module 507 .
[0164] The resource acquisition module 505 is used for acquiring resources related to a second service from a server if an instruction to load the second service is received when the application is running, and the second service is different from the first service.
[0165] The service loading module 507 is used to load the second service based on resources related to the second service.
[0166] In one embodiment, each service includes at least one display interface. Accordingly, the service loading module 507 may include: a list creation unit, an interface determination unit, a resource determination unit, a first task determination unit and a first task execution unit.
[0167] The list creation unit is used to create a task list, each task is used to call a resource related to the second business.
[0168] The interface determination unit is used to determine the current display interface.
[0169] The resource determination unit is used to determine the first resource from the resources related to the second service based on the current display interface and the corresponding relationship between the display interface and the resources of the service.
[0170] The first task determining unit is used to determine a first task corresponding to the first resource from the task list.
[0171] The first task execution unit is used to execute the first task.
[0172] In addition, the service loading module 507 may also include an update receiving unit, a second task determining unit and a second task executing unit.
[0173] The update receiving unit is configured to determine the second resource from the resources related to the second business based on the new display interface and the corresponding relationship between the display interface and the business resources if an instruction to replace the new display interface is received.
[0174] The second task determining unit is used to determine a second task corresponding to the second resource from the task list.
[0175] The second task execution unit is used to execute the second task.
[0176] In another embodiment, the business loading module 507 may further include a space allocation unit, which is used to allocate a specified number of storage spaces for each task corresponding to a display interface, based on the display interface. For a task corresponding to a display interface, at least one storage space in the specified number of storage spaces is used to store a first attribute of a task corresponding to the display interface, and the remaining storage spaces in the specified number of storage spaces are used to store a second attribute of a task corresponding to the display interface.
[0177] In addition, the service loading module 507 may also include a task clearing unit, which is used to clear the task list when performing service switching.
[0178] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0179] For example, any multiple of the business determination module 301, the resource determination module 303, the output module 305, and the relationship storage module 307 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the business determination module 301, the resource determination module 303, the output module 305, and the relationship storage module 307 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the business determination module 301, the resource determination module 303, the output module 305 and the relationship storage module 307 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be executed.
[0180] Figure 4 The block diagram of a computer device according to an embodiment of the present disclosure is schematically shown. Figure 4 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0181] like Figure 4As shown, the computer device 600 according to the embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
[0182] In RAM 603, various programs and data required for the operation of device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other through bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0183] According to an embodiment of the present disclosure, the device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The device 600 may further include one or more of the following components connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
[0184] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the device of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0185] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0186] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.
[0187] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0188] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0189] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. An application processing method executed by a development end, the method comprising: Determine a first service according to a correspondence between services and functions, the first service being at least one service determined based on functions involved in an application startup process, the application including multiple services, and each service including at least one display interface; for a task corresponding to a display interface, at least one storage space in a specified number of storage spaces is used to store a first attribute of a task corresponding to the display interface, the first attribute being a default attribute of the task, and the first attribute being used to distinguish the default attribute of the task when the same display interface is called with the same task ID; The remaining storage spaces in the designated number of storage spaces are used to store a second attribute of a task corresponding to the display interface, where the second attribute is a configuration attribute of the task, and the second attribute is used to prevent the configuration attribute of the task modified by the display interface from affecting other display interfaces when the same task is called by multiple display interfaces; The specified number of storage spaces is allocated to each task corresponding to the display interface in units of the display interface; If the first service exists, determining resources related to the first service according to a correspondence between services and resources, where the resources related to the first service are resources required to load the first service; as well as The resources related to the first service are encapsulated in an application package, and the application package is sent to a server.
2. The method according to claim 1, wherein: The determining of the resources related to the first service includes determining resources required for at least a portion of a display interface included in the first service.
3. The method according to claim 1, wherein: The application has a corresponding relationship between the display interface and the business resources; as well as The method further comprises: The corresponding relationship between the display interface and the service resources is encapsulated in an application package.
4. An application processing method executed by a server, the method comprising: receiving an application request from a client, wherein the application request includes application package information; In response to the application request, determining an application package based on the application package information; as well as Sending the application package to the client; Among them, the application package encapsulates resources related to a first business, the first business is at least one business determined based on the correspondence between the business and the function and based on the functions involved in the startup process of the application corresponding to the application package, and each of the businesses includes at least one display interface; for a task corresponding to a display interface, at least one storage space in the specified number of storage spaces is used to store a first attribute of a task corresponding to the display interface, the first attribute is a default attribute of the task, and the first attribute is used to distinguish the default attribute of the task when calling the same display interface when the task ID is the same; the remaining storage spaces in the specified number of storage spaces are used to store a second attribute of a task corresponding to the display interface, the second attribute is a configuration attribute of the task, and the second attribute is used to avoid the configuration attribute of the task modified by the display interface affecting other display interfaces when calling the same task on multiple display interfaces; the specified number of storage spaces are allocated to each task corresponding to the display interface in units of the display interface, and the resources related to the first business are resources required to load the first business according to the correspondence between the business and the resources.
5. The method according to claim 4, wherein: The server at least stores resources related to a second service of the application, where the second service is different from the first service; The method further comprises: receiving a resource request related to a second service from the client; In response to the resource request related to the second service, determining resources related to the second service; and Send the resources related to the second service to the client.
6. An application processing method executed by a client, the method comprising: Acquire an application package, wherein the application package encapsulates resources related to the first service; as well as Installing the application package; Among them, the first business is at least one business determined based on the correspondence between the business and the function, based on the functions involved in the startup process of the application corresponding to the application package, and each of the businesses includes at least one display interface; for a task corresponding to a display interface, at least one storage space in the specified number of storage spaces is used to store a first attribute of a task corresponding to the display interface, the first attribute is the default attribute of the task, and the first attribute is used to distinguish the default attribute of the task when the same display interface is called when the task ID is the same; the remaining storage spaces in the specified number of storage spaces are used to store a second attribute of a task corresponding to the display interface, the second attribute is the configuration attribute of the task, and the second attribute is used to avoid the configuration attribute of the task modified by the display interface affecting other display interfaces when the same task is called on multiple display interfaces; the specified number of storage spaces are allocated for each task corresponding to the display interface in units of the display interface, and the resources related to the first business are the resources required to load the first business according to the correspondence between the business and the resources.
7. The method according to claim 6, further comprising: When the application is running, if an instruction to load a second service is received, resources related to the second service are obtained from a server, where the second service is different from the first service; as well as The second service is loaded based on resources related to the second service.
8. The method according to claim 7, wherein: Each business includes at least one display interface; The loading of the second service based on resources related to the second service includes: Create a task list, where each task is used to call a resource related to the second business; Determine the current display interface; Determine a first resource from resources related to the second service based on the current display interface and a correspondence between the display interface and service resources; Determining a first task corresponding to the first resource from the task list; and Perform the first task.
9. The method according to claim 8, further comprising: If a new display interface replacement instruction is received, determining a second resource from the resources related to the second business based on the new display interface and the correspondence between the display interface and the resources of the business; Determine a second task corresponding to the second resource from the task list; as well as Perform the second task.
10. The method according to claim 8, further comprising: When switching services, clear the task list.
11. An application processing device, comprising: A service determination module, configured to determine a first service according to a correspondence between services and functions, wherein the first service is at least one service determined based on functions involved in an application startup process, wherein the application includes multiple services, and each of the services includes at least one display interface; for a task corresponding to a display interface, at least one storage space in a specified number of storage spaces is used to store a first attribute of a task corresponding to the display interface, wherein the first attribute is a default attribute of the task, and the first attribute is used to distinguish the default attribute of the task when the same display interface is called, when the task ID is the same; The remaining storage spaces in the designated number of storage spaces are used to store a second attribute of a task corresponding to the display interface, where the second attribute is a configuration attribute of the task, and the second attribute is used to prevent the configuration attribute of the task modified by the display interface from affecting other display interfaces when the same task is called by multiple display interfaces; The specified number of storage spaces is allocated to each task corresponding to the display interface in units of the display interface; a resource determination module, configured to determine, if the first service exists, resources related to the first service according to a correspondence between services and resources, where the resources related to the first service are resources required to load the first service; as well as The output module is used to encapsulate the resources related to the first business in an application package and send the application package to the server.
12. An application processing device, comprising: An application request receiving module, used to receive an application request from a client, wherein the application request includes application package information; an application package determination module, configured to determine an application package based on the application package information in response to the application request; as well as An application package sending module, used for sending the application package to the client; Among them, the application package encapsulates resources related to a first business, the first business is at least one business determined based on the correspondence between the business and the function and based on the functions involved in the startup process of the application corresponding to the application package, and each of the businesses includes at least one display interface; for a task corresponding to a display interface, at least one storage space in the specified number of storage spaces is used to store a first attribute of a task corresponding to the display interface, the first attribute is a default attribute of the task, and the first attribute is used to distinguish the default attribute of the task when calling the same display interface when the task ID is the same; the remaining storage spaces in the specified number of storage spaces are used to store a second attribute of a task corresponding to the display interface, the second attribute is a configuration attribute of the task, and the second attribute is used to avoid the configuration attribute of the task modified by the display interface affecting other display interfaces when calling the same task on multiple display interfaces; the specified number of storage spaces are allocated to each task corresponding to the display interface in units of the display interface, and the resources related to the first business are resources required to load the first business according to the correspondence between the business and the resources.
13. An application processing device, comprising: An application package acquisition module, used to acquire an application package, wherein the application package encapsulates resources related to the first service; as well as An installation module, used to install the application package; Among them, the first business is at least one business determined based on the correspondence between the business and the function, based on the functions involved in the startup process of the application corresponding to the application package, and each of the businesses includes at least one display interface; for a task corresponding to a display interface, at least one storage space in the specified number of storage spaces is used to store a first attribute of a task corresponding to the display interface, the first attribute is the default attribute of the task, and the first attribute is used to distinguish the default attribute of the task when the same display interface is called when the task ID is the same; the remaining storage spaces in the specified number of storage spaces are used to store a second attribute of a task corresponding to the display interface, the second attribute is the configuration attribute of the task, and the second attribute is used to avoid the configuration attribute of the task modified by the display interface affecting other display interfaces when the same task is called on multiple display interfaces; the specified number of storage spaces are allocated for each task corresponding to the display interface in units of the display interface, and the resources related to the first business are the resources required to load the first business according to the correspondence between the business and the resources.
14. A computer device comprising: one or more processors; A storage device is used to store executable instructions, and when the executable instructions are executed by the processor, the method according to any one of claims 1 to 10 is implemented.
15. A computer-readable storage medium having executable instructions stored thereon, wherein the instructions are executed by a processor to implement the method according to any one of claims 1 to 10.
