Application processing method and related device
Through the installation package-free technology of the installation-free platform, the installation and performance problems of UI design applications are solved, online installation-free and multi-person collaboration are achieved, and user experience and editing efficiency are improved.
Patent Information
- Application Number
- CN202080095481.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-06
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-03-06
AI Technical Summary
Existing UI design applications require local download and installation, and cannot achieve online installation-free, instant design and multi-person collaboration. Moreover, web version UI design applications have poor performance when processing pixel data calculations at high frequency, resulting in lag and frame drops. , affecting the user's real-time editing experience.
Get the installation-free package of UI design applications through the installation-free platform, including glue code and binary code, preprocess and compile binary code, and run directly on the installation-free platform, real-time online collaboration between multiple people.
It eliminates the application installation process, improves the startup speed and execution efficiency of UI design applications, reduces lag and frame drops, and improves the user's real-time editing experience and multi-person collaboration capabilities.
Smart Images

Figure CN115039069B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile terminal technology, and in particular to an application processing method and related devices. Background Art
[0002] User Interface (UI) design refers to the overall design of the human-computer interaction, operation logic, and interface aesthetics of application software. A good UI design can not only make the application software personalized and tasteful, but also make the operation of the application software simple and comfortable, reflecting the characteristics of the application software. Therefore, more and more UI design applications have emerged. Existing UI design applications require electronic devices to download the UI design application locally and then run the UI design application for design editing. They cannot achieve features such as online installation-free, instant design, and multi-person collaborative use. Although existing web-based UI design applications can be used online without installation, they have poor support and performance for image editors that process pixel data calculations at high frequencies, and are prone to freezes and frame drops, which greatly affects the user's sense of real-time editing and user experience. Summary of the invention
[0003] The embodiments of the present application provide an application processing method and related devices to realize multi-person online real-time collaborative UI design.
[0004] In a first aspect, an embodiment of the present application provides an application processing method, characterized in that it is applied to an electronic device, and the method includes:
[0005] Obtaining an installation-free package of a user interface UI design application through a free installation platform, wherein the installation-free package includes glue code and binary code generated according to the UI design application code;
[0006] When the installation-free package is run, the binary code is preprocessed by the glue code in the installation-free package, wherein the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code;
[0007] The preprocessed binary code is run, and the application interface of the UI design application is displayed on the installation-free platform.
[0008] In a second aspect, an embodiment of the present application provides an application processing device, which is applied to an electronic device, wherein the electronic device includes an eye tracking component; the application processing device includes a processing unit and a communication unit, wherein:
[0009] The processing unit is used to obtain an installation-free package of a user interface UI design application through the communication unit, wherein the installation-free package includes glue code and binary code generated according to the UI design application code; and is used to preprocess the binary code through the glue code in the installation-free package when running the installation-free package, wherein the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code; and is used to run the preprocessed binary code and display the application interface of the UI design application on the installation-free platform.
[0010] In a third aspect, an embodiment of the present application provides an electronic device, comprising a controller, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the controller, and the program includes instructions for executing the steps of any method in the first aspect of the embodiment of the present application.
[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect of the embodiment of the present application.
[0012] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0013] It can be seen that in the embodiment of the present application, the electronic device first obtains the installation-free package of the user interface UI design application through the installation-free platform, and the installation-free package includes glue code and binary code generated according to the UI design application code. Secondly, when running the installation-free package, the binary code is preprocessed by the glue code in the installation-free package, and the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code. Finally, the preprocessed binary code is run, and the application interface of the UI design application is displayed on the installation-free platform. Since the UI design application runs based on the installation-free platform, and the UI design application can be directly started through the installation-free package, the application installation process is omitted. At the same time, the installation-free platform can realize real-time online collaboration of multiple people to complete UI design, which is conducive to helping users get a better real-time editing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0015] Figure 1A It is a flowchart of an application processing method provided in an embodiment of the present application;
[0016] Figure 1B This is a schematic diagram of a glue code workflow provided by an embodiment of the present application.
[0017] Figure 2 It is a flowchart of another application processing method provided by an embodiment of the present application;
[0018] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0019] Figure 4 It is a block diagram of the functional units of an application processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0021] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0022] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0023] Electronic devices may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices (such as smart watches, smart bracelets, pedometers, etc.), computing devices, or other processing devices connected to wireless modems. User Equipment (UE), Mobile Station (MS), Terminal Device, etc. For the convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
[0024] The following is a detailed description of the embodiments of the present application.
[0025] Existing UI design tools require electronic devices to be downloaded locally before they can be used. After downloading the installation package of the UI design application, the UI design application needs to be installed first. For example, UI design applications such as Photoshop and Sketch need to be installed before they can be used. They cannot provide online free installation, instant design, and multi-person collaboration. The existing web version of the UI design application written in JavaScript language has poor support and performance for image editors that require high-frequency processing of pixel data and data calculation, which can easily cause stuck frames and other situations, affecting the user's real-time editing perception and user experience. Therefore, the present application proposes an application processing method, in which the C++ language is used to develop and write UI design applications for designers to perform UI design. Among them, the UI design application code is extracted into intensive computing code and non-intensive computing code, and the intensive computing code is converted into binary code and glue code through a tool, and the non-intensive computing code is redeveloped through the JavaScript language, and then the binary code, glue code, redeveloped non-intensive computing code, and UI design application materials are packaged to obtain a free installation package for the UI design application. The free installation package can save the application installation process and directly use the UI design application based on the free installation platform.
[0026] In the field of computer programming, glue code is also called adhesive code. Its purpose is to glue together codes that may be incompatible. Glue code does not implement any functions required by the program. It usually appears in the code to enable existing libraries or programs to interoperate in external function interfaces. Glue code is very efficient in rapid prototyping environments, allowing several components to be quickly integrated into a single language or framework. Binary code is a code composed of two basic characters "0" and "1". In this application, the intensive calculation part of the UI design application code written in C++ will be converted into binary code, and the corresponding glue code will be generated at the same time. The glue code is mainly responsible for two things. One is to give the memory address of the free installation platform capability call to the binary code for the binary code to call the capability. The other is responsible for loading the binary code and calling the method provided by the free installation platform to compile and run the binary code. In this application, the code size is reduced by compiling intensive computing code into binary code. At the same time, the binary code will be cached after compilation to achieve installation-free and faster startup. Users can quickly experience the ability to design UI online. At the same time, because it is binary code, the execution efficiency is close to that of native code, and the efficiency of each frame is higher, which is conducive to reducing the occurrence of freezes, frame drops, etc., helping users to better realize real-time editing of UI design and improve user experience.
[0027] See also Figure 1A , Figure 1A The present application embodiment provides a flow chart of an application processing method, which is applied to an electronic device. As shown in the figure, the application processing method includes:
[0028] S101, the electronic device obtains an installation-free package of a user interface UI design application through a free installation platform, wherein the installation-free package includes glue code and binary code generated according to the UI design application code.
[0029] The free installation platform may include various application platforms or web platforms. The free installation platform does not need to install the free installation package of the UI design application to use the UI design application. The UI design application is similar to a plug-in or a small program and runs based on the free installation platform. The free installation platform only needs to obtain the free installation package of the UI design application, which includes glue code and binary code generated according to the application code of the UI design application.
[0030] S102, when the electronic device runs the installation-free package, the binary code is preprocessed by the glue code in the installation-free package, and the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code.
[0031] Among them, electronic devices need to run UI design applications based on the installation-free platform. When the installation-free platform runs the installation-free package for the first time, it needs to pre-process the binary code through the glue code in the installation-free package. The pre-processing includes loading the binary code through the glue code, and after the binary code is loaded, calling the platform interface of the installation-free platform, compiling the binary code, and caching the compiled binary code. In this way, when the UI design application is run for the second time, the compiled binary code can be directly taken out from the cache through the installation-free platform, and directly run and display, thereby realizing the functions of efficient operation, click-to-open, and real-time online UI design.
[0032] S103, the electronic device runs the preprocessed binary code and displays the application interface of the UI design application on the installation-free platform.
[0033] Among them, when running the free installation package, after preprocessing the binary code through the glue code in the free installation package, the UI design application can be started through the free installation platform to display the application page of the UI design application.
[0034] It can be seen that in the embodiment of the present application, the electronic device first obtains the installation-free package of the user interface UI design application through the installation-free platform, and the installation-free package includes glue code and binary code generated according to the UI design application code. Secondly, when running the installation-free package, the binary code is preprocessed by the glue code in the installation-free package, and the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code. Finally, the preprocessed binary code is run, and the application interface of the UI design application is displayed on the installation-free platform. Since the UI design application runs based on the installation-free platform, and the UI design application can be directly started through the installation-free package, the application installation process is omitted. At the same time, the installation-free platform can realize real-time online collaboration of multiple people to complete UI design, which is conducive to helping users get a better real-time editing experience.
[0035] In a possible example, running the preprocessed binary code includes: detecting whether there is a compiled binary code cache; if so, running the compiled binary code in the cache; if not, loading the binary code, and after loading is completed, calling the platform interface to compile the loaded binary code, and running the compiled binary code.
[0036] Among them, when running the preprocessed binary code, it is necessary to detect whether there is a compiled binary code cache. If the binary code has been compiled, there will be a compiled binary code cache. If the UI design application is used for the first time on the installation-free platform, the cache will not exist. If it is not the first time, the cache will exist. Before running the binary code, it is necessary to detect whether there is a compiled binary code cache. If it exists, the compiled binary code in the cache can be run directly. If it does not exist, it means that the binary code has not been compiled. At this time, the binary code needs to be loaded, and after loading is complete, the platform interface is called to compile the loaded binary code. Running the compiled binary code can start the UI design application.
[0037] Among them, if it is detected that there is no compiled binary code cache, it is necessary to call the glue code to load the binary code, and after the binary code is loaded, call the platform interface to compile the loaded binary code, and run the compiled binary code to start the UI design application.
[0038] It can be seen that in this example, when the UI design application is used for the first time, the binary code needs to be loaded, compiled and cached after loading. If it is not the first time to use the UI design application, the compiled binary code can be directly run through the cache to start the UI design application, so that the UI design application can be used out of the box. Therefore, when running the binary code, it is necessary to detect whether there is a compiled binary code cache.
[0039] In a possible example, running the compiled binary code in the cache includes: detecting whether the cache is updated; if so, loading the binary code, calling the platform interface to compile the loaded binary code, and running the binary code after the compilation is completed.
[0040] When running the compiled binary code in the cache, it is also necessary to detect whether the cache has been updated. If there is an update, it means that the cache has changed. This change may be caused by an error in operation or an update of the free installation package. Therefore, in this case, it is necessary to reload the binary code and call the free installation platform interface to compile the loaded binary code. After the compilation is completed, run the binary code to start the UI design application.
[0041] It can be seen that in this example, when the compiled binary code cache is detected, it is also detected whether the cache has been updated, so as to determine whether the binary code needs to be reloaded and compiled. In this way, it is possible to avoid missing the update of the UI design application and ensure the stability and reliability of the UI design application.
[0042] In one possible example, the initial code of a UI design application written in a first preset programming language is extracted into intensive computing code and non-intensive computing code; the intensive computing code is converted into binary code and glue code, and the non-intensive computing code is rewritten in a second preset programming language; the binary code, glue code, rewritten non-intensive computing code and UI design application materials are packaged to obtain an installation-free package of the UI design application.
[0043] Among them, the initial code of the UI design application is written in the first preset programming language. The initial code can be extracted into intensive computing code and non-intensive computing code through an extraction algorithm, and then the intensive computing code is converted into binary code and glue code. At the same time, the non-intensive computing code is rewritten using the second preset programming language. The binary code, glue code, rewritten non-intensive computing code and UI design materials are packaged to obtain the free installation package of the UI design application. By packaging with the packaging tool provided by the free installation platform, an installation package that can be run on the free installation platform can be generated. UI design materials include icons, pictures, etc. The free installation package does not need to be installed with the application installation process, and the code in the installation package can be directly run to start the UI design application.
[0044] Among them, the first preset programming language is C++ programming language, and the second preset programming language is JavaScript programming language. UI design applications developed using C++ programming language have lower costs. The drawing of the drawing board involved in the UI design application, for example, includes providing drawing-related components, such as rectangles and other graphics, text, pictures, zooming and translation and other transformations, which require real-time intensive calculation operations. The underlying code corresponding to these operations is intensive calculation code, and this part of C++ code needs to be extracted. When extracting, the intensive calculation code can be quickly extracted by calculating vertex data, calculating coordinates, and calculating texture data. For non-intensive calculation code, rewriting it in javascript can enable it to run on an installation-free platform.
[0045] It can be seen that in this example, after the code of the UI design application is divided into intensive computing code and non-intensive computing code, the intensive computing code can be converted into binary code and glue code, and the non-intensive computing code can be rewritten using a second programming language, thereby obtaining an installation-free package consisting of binary code, glue code, rewritten non-intensive computing code, and UI design materials. The UI design application can be started without installation through the installation-free package.
[0046] In a possible example, the intensive computing code is the code corresponding to the page drawing operation function in the initial code of the UI design application, and the page drawing operation includes at least one of the following: graphics drawing operation, picture drawing operation, line drawing operation, and text drawing operation.
[0047] Among them, the page drawing operations in the UI design application include graphic drawing operations, such as drawing rectangles, circles and other graphics, picture drawing operations, line drawing operations, text drawing operations and other drawing operations. The codes corresponding to these drawing operations on the page are intensive computing codes. After the intensive computing codes are extracted from the initial codes of the UI design application, the intensive computing codes can be converted into binary codes and glue codes.
[0048] It can be seen that in this example, after extracting the intensive computing code from the initial code of the UI design application, the intensive computing code can be converted into binary code and glue code. Since the intensive computing code accounts for the main part of the initial code of the UI design application, after compiling this part of the code into binary code and glue code, the overall code size is smaller, realizing the code slimming function.
[0049] In a possible example, the glue code is used to obtain the memory mapping address of the platform capability of the installation-free platform, and after loading the binary code, bind the binary code and the memory mapping address so that the installation-free platform calls the platform capability when compiling the binary code.
[0050] The C++ code related to page drawing is converted into binary code, and the corresponding glue code is generated. The glue code is responsible for two things: one is to give the memory address of the free installation platform capability call to the binary code so that the binary code can call the platform capability; the other is to load the binary code and call the free installation platform to compile the binary code. Figure 1B As shown, the glue code corresponds to the glue file, and the binary code corresponds to the binary code file. After the glue file reads the content of the binary code file, it loads the binary code to obtain the binary data. At the same time, the glue file collects the platform capabilities to obtain the memory mapping address of the platform capabilities. After binding the binary data and the memory mapping address, the binary code content and the platform capabilities can be called each other through the installation-free platform interface compilation.
[0051] It can be seen that in this example, after the binary code is loaded, the memory mapping address of the binary code and the platform capability are bound. In this way, when the binary code is compiled on the installation-free platform, the platform capability can be called to successfully complete the compilation of the binary code.
[0052] In a possible example, the installation-free platform includes an application platform and a web platform, and the application platform includes any one of a game application platform, a social application platform, a shopping application platform, a photo application platform, and an office application platform.
[0053] It can be seen that in this example, the installation-free platform includes an application platform and a web platform. To run the UI design application based on the installation-free platform, you only need to obtain the installation-free package of the UI design application to use the UI design application, which eliminates the installation process of the UI design application. At the same time, multiple users can use the UI design application through the installation-free platform, realizing the online collaboration of multiple people in using the UI design application.
[0054] In one possible example, after the application interface of the UI design application is displayed on the installation-free platform, the method further includes: when it is detected that multiple users perform drawing operations on the application interface, respectively obtaining page drawing operation records of the multiple users; establishing a mapping relationship between user identifiers and page drawing records, and saving the mapping relationship.
[0055] It can be seen that in this example, multiple users can use the installation-free platform to collaborate online in using the UI design application. Therefore, when it is detected that multiple users are performing page drawing operations on the application interface, the page drawing operation records of the multiple users can be obtained separately, and a mapping relationship between the user ID and the page drawing operation record can be established. Thus, after the collaborative drawing of multiple users is completed, each user can find his or her own page drawing operation record according to his or her own user ID.
[0056] With the Figure 1A For details on the embodiments shown in the drawings, please refer to Figure 2 , Figure 2 1 is a flow chart of an application processing method provided in an embodiment of the present application, which is applied to an electronic device. As shown in the figure, the application processing method includes:
[0057] S201, the electronic device obtains an installation-free package of a user interface UI design application through a free installation platform, wherein the installation-free package includes glue code and binary code generated according to the UI design application code.
[0058] S202, when the electronic device runs the installation-free package, the binary code is preprocessed by the glue code in the installation-free package, and the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code.
[0059] S203, the electronic device runs the preprocessed binary code and displays the application interface of the UI design application on the installation-free platform.
[0060] S204: When the electronic device detects that a plurality of users collaboratively use the UI design application and perform page drawing operations on the application interface, the electronic device obtains page drawing operation records of the plurality of users respectively.
[0061] S205: The electronic device establishes a mapping relationship between the user identification and the page drawing operation record, and saves the mapping relationship.
[0062] It can be seen that in the embodiment of the present application, the electronic device first obtains the installation-free package of the user interface UI design application through the installation-free platform, and the installation-free package includes glue code and binary code generated according to the UI design application code. Secondly, when running the installation-free package, the binary code is preprocessed by the glue code in the installation-free package, and the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code. Finally, the preprocessed binary code is run, and the application interface of the UI design application is displayed on the installation-free platform. Since the UI design application runs based on the installation-free platform, and the UI design application can be directly started through the installation-free package, the application installation process is omitted. At the same time, the installation-free platform can realize real-time online collaboration of multiple people to complete UI design, which is conducive to helping users get a better real-time editing experience.
[0063] In addition, multiple users can use the installation-free platform to collaborate online in the use of UI design applications. Therefore, when it is detected that multiple users are performing page drawing operations on the application interface, the page drawing operation records of the multiple users can be obtained separately, and a mapping relationship between the user ID and the page drawing operation record can be established. Thus, after the collaborative drawing of multiple users is completed, each user can search for his or her own page drawing operation record according to his or her own user ID.
[0064] With the Figure 1A , Figure 2 For details on the embodiments shown in the drawings, please refer to Figure 3 , Figure 3 3 is a structural diagram of an electronic device 300 provided in an embodiment of the present application. The electronic device 300 runs one or more application programs and an operating system. As shown in the figure, the electronic device 300 includes a processor 310, a memory 320, a communication interface 330, and one or more programs 321, wherein the one or more programs 321 are stored in the memory 320 and are configured to be executed by the processor 310, and the one or more programs 321 include instructions for executing the following steps;
[0065] Obtaining an installation-free package of a user interface UI design application through a free installation platform, wherein the installation-free package includes glue code and binary code generated according to the UI design application code;
[0066] When the installation-free package is run, the binary code is preprocessed by the glue code in the installation-free package, wherein the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code;
[0067] The preprocessed binary code is run, and the application interface of the UI design application is displayed on the installation-free platform.
[0068] It can be seen that in the embodiment of the present application, the electronic device first obtains the installation-free package of the user interface UI design application through the installation-free platform, and the installation-free package includes glue code and binary code generated according to the UI design application code. Secondly, when running the installation-free package, the binary code is preprocessed by the glue code in the installation-free package, and the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code. Finally, the preprocessed binary code is run, and the application interface of the UI design application is displayed on the installation-free platform. Since the UI design application runs based on the installation-free platform, and the UI design application can be directly started through the installation-free package, the application installation process is omitted. At the same time, the installation-free platform can realize real-time online collaboration of multiple people to complete UI design, which is conducive to helping users get a better real-time editing experience.
[0069] In one possible example, in terms of running the preprocessed binary code, the instructions in the program are specifically used to perform the following operations: detect whether there is a compiled binary code cache; if so, run the compiled binary code in the cache; if not, load the binary code, and after loading is completed, call the platform interface to compile the loaded binary code, and run the compiled binary code.
[0070] In one possible example, in terms of running the compiled binary code in the cache, the instructions in the program are specifically used to perform the following operations: detect whether the cache is updated; if so, load the binary code, call the platform interface to compile the loaded binary code, and run the binary code after the compilation is completed.
[0071] In one possible example, the instructions in the program are specifically used to perform the following operations: extracting the initial code of the UI design application written in a first preset programming language into intensive computing code and non-intensive computing code; converting the intensive computing code into binary code and glue code, and rewriting the non-intensive computing code using a second preset programming language; packaging the binary code, glue code, rewritten non-intensive computing code and UI design application materials to obtain an installation-free package for the UI design application.
[0072] In a possible example, the intensive computing code is the code corresponding to the page drawing operation function in the initial code of the UI design application, and the page drawing operation includes at least one of the following: graphics drawing operation, picture drawing operation, line drawing operation, and text drawing operation.
[0073] In a possible example, the glue code is used to obtain the memory mapping address of the platform capability of the installation-free platform, and after loading the binary code, bind the binary code and the memory mapping address so that the installation-free platform calls the platform capability when compiling the binary code.
[0074] In a possible example, the first preset programming language is C++ programming language, and the second preset programming language is JavaScript programming language.
[0075] In a possible example, the installation-free platform includes an application platform and a web platform, and the application platform includes any one of a game application platform, a social application platform, a shopping application platform, a photo application platform, and an office application platform.
[0076] In one possible example, in terms of adjusting the bounding box of the reference face area to obtain the bounding box of the standard face area, the instructions in the program are specifically used to perform the following operations: when it is detected that multiple users are collaboratively using the UI design application and performing page drawing operations on the application interface, respectively obtaining page drawing operation records of the multiple users; establishing a mapping relationship between user identifiers and page drawing operation records, and saving the mapping relationship.
[0077] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0078] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into a control unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0079] Figure 4 4 is a functional unit composition block diagram of the device 400 involved in the embodiment of the present application. The application processing device 400 is applied to an electronic device, and the application processing device 400 includes a processing unit 401 and a communication unit 402, wherein:
[0080] The processing unit 401 is used to obtain an installation-free package of a user interface UI design application through the communication unit 402, wherein the installation-free package includes glue code and binary code generated according to the UI design application code; and is used to pre-process the binary code through the glue code in the installation-free package when running the installation-free package, wherein the pre-processing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code; and is used to run the pre-processed binary code and display the application interface of the UI design application on the installation-free platform.
[0081] It can be seen that in the embodiment of the present application, the electronic device first obtains the installation-free package of the user interface UI design application through the installation-free platform, and the installation-free package includes glue code and binary code generated according to the UI design application code. Secondly, when running the installation-free package, the binary code is preprocessed by the glue code in the installation-free package, and the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code. Finally, the preprocessed binary code is run, and the application interface of the UI design application is displayed on the installation-free platform. Since the UI design application runs based on the installation-free platform, and the UI design application can be directly started through the installation-free package, the application installation process is omitted. At the same time, the installation-free platform can realize real-time online collaboration of multiple people to complete UI design, which is conducive to helping users get a better real-time editing experience.
[0082] In a possible example, in terms of running the preprocessed binary code, the processing unit 401 is specifically used to: detect whether there is a compiled binary code cache; and if so, run the compiled binary code in the cache; and if not, load the binary code, and after loading is completed, call the platform interface to compile the loaded binary code and run the compiled binary code.
[0083] In one possible example, in terms of running the compiled binary code in the cache, the processing unit 401 is specifically used to: detect whether the cache is updated; and if so, load the binary code, call the platform interface to compile the loaded binary code, and run the binary code after the compilation is completed.
[0084] In a possible example, the processing unit 401 is also used to: extract the initial code of the UI design application written in a first preset programming language into intensive computing code and non-intensive computing code; and to convert the intensive computing code into binary code and glue code, and to rewrite the non-intensive computing code using a second preset programming language; and to package the binary code, glue code, rewritten non-intensive computing code and UI design application materials to obtain an installation-free package of the UI design application.
[0085] In a possible example, the intensive computing code is the code corresponding to the page drawing operation function in the initial code of the UI design application, and the page drawing operation includes at least one of the following: graphics drawing operation, picture drawing operation, line drawing operation, and text drawing operation.
[0086] In a possible example, the glue code is used to obtain the memory mapping address of the platform capability of the installation-free platform, and after loading the binary code, bind the binary code and the memory mapping address so that the installation-free platform calls the platform capability when compiling the binary code.
[0087] In a possible example, the first preset programming language is C++ programming language, and the second preset programming language is JavaScript programming language.
[0088] In a possible example, the installation-free platform includes an application platform and a web platform, and the application platform includes any one of a game application platform, a social application platform, a shopping application platform, a photo application platform, and an office application platform.
[0089] In a possible example, after the application interface of the UI design application is displayed on the installation-free platform, the processing unit 401 is specifically used to: when it is detected that multiple users are collaboratively using the UI design application and performing page drawing operations on the application interface, respectively obtain the page drawing operation records of the multiple users; and establish a mapping relationship between user identification and page drawing operation records, and save the mapping relationship.
[0090] The electronic device may further include a storage unit 403, the processing unit 401 and the communication unit 402 may be controllers or processors, and the storage unit 403 may be a memory.
[0091] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments, and the above computer includes a mobile terminal.
[0092] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes a mobile terminal.
[0093] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0094] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0095] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0096] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0097] In addition, each functional unit in each embodiment of the present application may be integrated into a control unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0098] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0099] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0100] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An application processing method, characterized in that: Applied to electronic equipment, the method comprises: Obtaining an installation-free package of a user interface UI design application through a free installation platform, wherein the installation-free package includes glue code and binary code generated according to the UI design application code; When the installation-free package is run, the binary code is preprocessed by the glue code in the installation-free package, wherein the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code; The preprocessed binary code is run, and the application interface of the UI design application is displayed on the installation-free platform.
2. The method according to claim 1, characterized in that: The running of the preprocessed binary code comprises: Detect whether there is a compiled binary code cache; If yes, then run the compiled binary code in the cache; If not, the binary code is loaded, and after the loading is completed, the platform interface is called to compile the loaded binary code, and the compiled binary code is run.
3. The method according to claim 2, characterized in that The running of the compiled binary code in the cache includes: Detecting whether the cache has been updated; If so, the binary code is loaded, and the platform interface is called to compile the loaded binary code, and the binary code is run after the compilation is completed.
4. The method according to claim 1, characterized in that: The method further comprises: Extracting the initial code of the UI design application written in the first preset programming language into intensive computing code and non-intensive computing code; converting the intensive computing code into binary code and glue code, and rewriting the non-intensive computing code using a second preset programming language; The binary code, the glue code, the rewritten non-intensive computing code and the UI design application material are packaged to obtain an installation-free package of the UI design application.
5. The method according to claim 4, characterized in that The intensive computing code is the code corresponding to the page drawing operation function in the initial code of the UI design application, and the page drawing operation includes at least one of the following: graphic drawing operation, picture drawing operation, line drawing operation, and text drawing operation.
6. The method according to claim 1, characterized in that The glue code is used to obtain the memory mapping address of the platform capability of the installation-free platform, and after loading the binary code, bind the binary code and the memory mapping address so that the installation-free platform calls the platform capability when compiling the binary code.
7. The method according to claim 4, characterized in that The first preset programming language is C++ programming language, and the second preset programming language is JavaScript programming language.
8. The method according to claim 1, characterized in that The installation-free platform includes an application platform and a web page platform, and the application platform includes any one of a game application platform, a social application platform, a shopping application platform, a photo application platform, and an office application platform.
9. The method according to claim 1, characterized in that: After the free installation platform displays the application interface of the UI design application, the method further includes: When it is detected that multiple users collaborate to use the UI design application and perform page drawing operations on the application interface, respectively obtain page drawing operation records of the multiple users; A mapping relationship between the user identifier and the page drawing operation record is established, and the mapping relationship is saved.
10. An application processing device, characterized in that: Applied to electronic equipment, the application processing device includes a processing unit and a communication unit, wherein: The processing unit is used to obtain an installation-free package of a user interface UI design application through the communication unit, wherein the installation-free package includes glue code and binary code generated according to the UI design application code; and is used to preprocess the binary code through the glue code in the installation-free package when running the installation-free package, wherein the preprocessing includes loading the binary code, and after loading, calling the platform interface of the installation-free platform to compile the binary code, and caching the compiled binary code; and is used to run the preprocessed binary code and display the application interface of the UI design application on the installation-free platform.
11. The application processing device according to claim 10, characterized in that: In terms of running the preprocessed binary code, the processing unit is specifically used to: detect whether there is a compiled binary code cache; and if so, run the compiled binary code in the cache; and if not, load the binary code, and after loading is completed, call the platform interface to compile the loaded binary code and run the compiled binary code.
12. The application processing device according to claim 11, characterized in that: In terms of running the compiled binary code in the cache, the processing unit is specifically used to: detect whether the cache is updated; and if so, load the binary code, call the platform interface to compile the loaded binary code, and run the binary code after the compilation is completed.
13. The application processing device according to claim 10, characterized in that: The processing unit is further used to: extract the initial code of the UI design application written in the first preset program language into intensive computing code and non-intensive computing code; and to convert the intensive computing code into binary code and glue code, and rewrite the non-intensive computing code in the second preset program language; And it is used to package the binary code, glue code, rewritten non-intensive computing code and UI design application materials to obtain an installation-free package of the UI design application.
14. The application processing device according to claim 13, characterized in that: The intensive computing code is the code corresponding to the page drawing operation function in the initial code of the UI design application, and the page drawing operation includes at least one of the following: graphic drawing operation, picture drawing operation, line drawing operation, and text drawing operation.
15. The application processing device according to claim 10, characterized in that: The glue code is used to obtain the memory mapping address of the platform capability of the installation-free platform, and after loading the binary code, bind the binary code and the memory mapping address so that the installation-free platform calls the platform capability when compiling the binary code.
16. The application processing device according to claim 13, characterized in that: The first preset programming language is C++ programming language, and the second preset programming language is JavaScript programming language.
17. The application processing device according to claim 10, characterized in that: The installation-free platform includes an application platform and a web page platform, and the application platform includes any one of a game application platform, a social application platform, a shopping application platform, a photo application platform, and an office application platform.
18. The application processing device according to claim 10, characterized in that: After the application interface of the UI design application is displayed on the installation-free platform, the processing unit is specifically used to: when it is detected that multiple users are collaboratively using the UI design application and performing page drawing operations on the application interface, respectively obtain page drawing operation records of the multiple users; And it is used to establish a mapping relationship between the user identification and the page drawing operation record, and save the mapping relationship.
19. An electronic device, characterized in that: The invention comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the application processing method as described in any one of claims 1 to 9.
20. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the application processing method according to any one of claims 1 to 9.
