CN111782248A - Terminal application updating method and device and electronic equipment - Google Patents

Terminal application updating method and device and electronic equipment Download PDF

Info

Publication number
CN111782248A
CN111782248A CN202010660505.6A CN202010660505A CN111782248A CN 111782248 A CN111782248 A CN 111782248A CN 202010660505 A CN202010660505 A CN 202010660505A CN 111782248 A CN111782248 A CN 111782248A
Authority
CN
China
Prior art keywords
task
widget
terminal application
executed
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010660505.6A
Other languages
Chinese (zh)
Other versions
CN111782248B (en
Inventor
欧阳志刚
丘晓强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qiyu Information Technology Co ltd
Original Assignee
Shanghai Qiyu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Qiyu Information Technology Co ltd filed Critical Shanghai Qiyu Information Technology Co ltd
Priority to CN202010660505.6A priority Critical patent/CN111782248B/en
Publication of CN111782248A publication Critical patent/CN111782248A/en
Application granted granted Critical
Publication of CN111782248B publication Critical patent/CN111782248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The embodiment of the specification provides an updating method of a terminal application, which includes the steps of providing a plurality of widget templates capable of being used for independently or jointly executing tasks, first and second task information capable of being executed and updating information used for updating, executing the first task by the terminal application according to the first task information, dividing the widget template of the second task to be executed, receiving updating data of a server by a middleware of the terminal application, generating an updated second task execution widget by using the widget template of the second task to be executed and the updating data, acquiring the updated second task execution widget by the terminal application, and executing the second task by using the updated second task execution widget after the currently executed first task is executed. By dividing the widget template, different tasks are separated, and the widget of the task to be executed is constructed by using the middleware, so that the terminal application can directly execute the second task after the first task is executed, the restart is not needed, and the updating timeliness is improved.

Description

Terminal application updating method and device and electronic equipment
Technical Field
The present application relates to the field of internet, and in particular, to a method and an apparatus for updating a terminal application, and an electronic device.
Background
In the prior art, most of the updates of the application programs are that the server sends an update package to the terminal, stores the update package in a front end or a cache, and pulls the update package for updating when the update is needed.
If the application program is restarted directly, the currently executed task is often terminated, and the task is started from the beginning after updating, which brings poor experience.
Therefore, if the user is going to execute the current flow and continues to execute the next flow, even if the server has generated the update package of the flow (the next flow), and even if the terminal has received the update package file, the application program can only provide the updated flow (the next flow) for the user after the next start, and the current time still can only provide the old flow for the user, so that the actual update timeliness of the application program is poor.
Therefore, there is a need to provide a new method for updating an application program to improve the timeliness of the update.
Disclosure of Invention
The embodiment of the specification provides a method and a device for updating a terminal application and electronic equipment, which are used for improving the timeliness of updating an application program.
An embodiment of the present specification provides an update method for a terminal application, including:
providing a terminal application, wherein the terminal application comprises a plurality of widget templates which can be used for independently or in combination to execute tasks;
task information is obtained, wherein the task information comprises first and second task information which can be executed and update information used for updating the terminal application;
the terminal application executes a first task according to the first task information and segments a widget template of a second task to be executed;
the middleware of the terminal application receives the update data of the server according to the update information, generates an updated second task execution widget by using the widget template of the second task to be executed and the update data, and sends the updated second task execution widget to the terminal application;
and the terminal application acquires the updated second task execution widget and executes a second task based on the second task information by using the updated second task execution widget after the current executed first task is executed.
Optionally, the method further comprises:
the terminal application sends an updating request to the middleware, wherein the updating request carries a second task identifier;
the middleware of the terminal application receives the update data of the server according to the update information, and further comprises:
and according to the updating information, the middleware of the terminal application responds to the updating request and requests a server to acquire the updating data corresponding to the second task identifier.
Optionally, the generating an updated second task execution widget by using the widget template of the second task to be executed and the update data includes:
the middleware queries a corresponding widget template according to the second task identifier in the updating request;
and assigning the values to the widget templates by using the updating data.
Optionally, the receiving, by the middleware of the terminal application, update data of the server according to the update information includes:
and according to the updating information, the middleware of the terminal application receives the task identifier to be updated and the corresponding updating data pushed by the server.
Optionally, the method further comprises:
determining a second task to be executed by the terminal application;
the generating an updated second task execution widget by using the widget template of the second task to be executed and the update data includes:
and judging whether the task identifier to be updated is a second task identifier to be executed or not according to the updating information, and if so, assigning a value to the widget template of the second task by using the updating data to generate an updated second task execution widget.
Optionally, the partitioning a widget template of a second task to be executed includes:
and generating a widget template of a first task and a widget template of a second task in advance according to the task division executed in series, and storing the widget templates in a resource container of the middleware.
Optionally, the method further comprises:
and storing the updating data of the second task in a resource container of the terminal application.
Optionally, the executing the second task based on the second task information by using the updated second task execution widget includes:
and executing the second task by using the updated second task execution widget and the non-updated information in the second task information.
An embodiment of the present specification further provides an update apparatus for a terminal application, including:
the terminal application module is used for providing terminal application, and the terminal application comprises a plurality of widget templates which can be used for independently or jointly executing tasks;
task information is obtained, wherein the task information comprises first and second task information which can be executed and update information used for updating the terminal application;
the terminal application executes a first task according to the first task information and segments a widget template of a second task to be executed;
the middleware of the terminal application receives the update data of the server according to the update information, generates an updated second task execution widget by using the widget template of the second task to be executed and the update data, and sends the updated second task execution widget to the terminal application;
and the terminal application acquires the updated second task execution widget and executes a second task based on the second task information by using the updated second task execution widget after executing the currently executed first task.
Optionally, the method further comprises:
the terminal application sends an updating request to the middleware, wherein the updating request carries a second task identifier;
the middleware of the terminal application receives the update data of the server according to the update information, and further comprises:
and according to the updating information, the middleware of the terminal application responds to the updating request and requests a server to acquire the updating data corresponding to the second task identifier.
Optionally, the generating an updated second task execution widget by using the widget template of the second task to be executed and the update data includes:
the middleware queries a corresponding widget template according to the second task identifier in the updating request;
and assigning the values to the widget templates by using the updating data.
Optionally, the receiving, by the middleware of the terminal application, update data of the server according to the update information includes:
and according to the updating information, the middleware of the terminal application receives the task identifier to be updated and the corresponding updating data pushed by the server.
Optionally, the widget update module is further configured to:
determining a second task to be executed by the terminal application;
the generating an updated second task execution widget by using the widget template of the second task to be executed and the update data includes:
and judging whether the task identifier to be updated is a second task identifier to be executed or not according to the updating information, and if so, assigning a value to the widget template of the second task by using the updating data to generate an updated second task execution widget.
Optionally, the partitioning a widget template of a second task to be executed includes:
and generating a widget template of a first task and a widget template of a second task in advance according to the task division executed in series, and storing the widget templates in a resource container of the middleware.
Optionally, the terminal application module is further configured to:
and storing the updating data of the second task in a resource container of the terminal application.
Optionally, the executing the second task based on the second task information by using the updated second task execution widget includes:
and executing the second task by using the updated second task execution widget and the non-updated information in the second task information.
An embodiment of the present specification further provides an electronic device, where the electronic device includes:
a processor; and the number of the first and second groups,
a memory storing computer-executable instructions that, when executed, cause the processor to perform any of the methods described above.
The present specification also provides a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement any of the above methods.
In the technical solutions provided in the embodiments of the present description, different tasks are separated by partitioning a widget template, and a widget to be executed is constructed by using a middleware, so that a terminal application can directly execute a second task after executing a first task without restarting, thereby improving timeliness of updating.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram illustrating a method for updating a terminal application according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an updating apparatus for a terminal application according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present specification.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals denote the same or similar elements, components, or parts in the drawings, and thus their repetitive description will be omitted.
Features, structures, characteristics or other details described in a particular embodiment do not preclude the fact that the features, structures, characteristics or other details may be combined in a suitable manner in one or more other embodiments in accordance with the technical idea of the invention.
In describing particular embodiments, the present invention has been described with reference to features, structures, characteristics or other details that are within the purview of one skilled in the art to provide a thorough understanding of the embodiments. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific features, structures, characteristics, or other details.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The term "and/or" and/or "includes all combinations of any one or more of the associated listed items.
Fig. 1 is a schematic diagram of a method for updating a terminal application provided in an embodiment of the present disclosure, where the method may include:
s101: a terminal application is provided that includes a plurality of widget templates that may be used to perform tasks independently or in combination.
Usually, an application is often capable of providing multiple functions, and each function can be regarded as a task for a terminal application, and the application performs the tasks to realize the corresponding function.
When the user uses the application program, a plurality of functions are often used, and the execution of a plurality of tasks often has time sequence, which provides a chance for improving the prior art, because although the terminal application itself can not be updated, if the updated data is processed when the current task is executed, and after the current task is executed, the information for executing the next updated task is directly provided for the application program, the updated function (or flow) can be provided without starting the application.
Based on the concept, the task can be decomposed according to the functions of the application program, a plurality of tasks are decomposed, a widget template is provided for each task, each widget template can be used for independently executing the task, and a plurality of widget templates can be used for combining and executing the task.
The execution widget can be composed of a widget template, static resources and functional logic.
S102: task information is obtained, and the task information comprises first and second task information which can be executed and update information used for updating the terminal application.
The terminal application can acquire the task information from the server, so that the task can be executed by using the task information.
The update information may be an instruction with a preset rule, so that the application program can be updated according to the preset rule when the update information is obtained at the terminal.
Wherein the task information may be dynamic resources stored by the server, such as page information.
S103: and the terminal application executes the first task according to the first task information and segments a widget template of a second task to be executed.
In order to distinguish a currently executed task from a subsequent task to be updated, the currently executed task is taken as a first task, and the subsequently executed task is called a second task.
The widget template can be divided by the terminal application in advance through updating information, and therefore the widget template is directly called when updated widgets are generated subsequently.
Therefore, in this embodiment of the present specification, the partitioning the widget template of the second task to be executed may include:
and generating a widget template of a first task and a widget template of a second task in advance according to the task division executed in series, and storing the widget templates in a resource container of the middleware.
Wherein, the resource container of the middleware can be a local storage space allocated for the middleware of the terminal application.
The middleware is a tool for integrating the template, the business logic and the update data, and can generate the execution widget through integration.
And generating middleware by combining the update information, so that the middleware can construct the widget according to a preset rule.
S104: and the middleware of the terminal application receives the update data of the server according to the update information, generates an updated second task execution widget by using the widget template of the second task to be executed and the update data, and sends the updated second task execution widget to the terminal application.
Consider an application scenario in which an application requests an update task.
In this regard, in an embodiment of the present specification, the method may further include:
the terminal application sends an updating request to the middleware, wherein the updating request carries a second task identifier;
in this way, the middleware of the terminal application receives the update data of the server according to the update information, and further includes:
and according to the updating information, the middleware of the terminal application responds to the updating request and requests a server to acquire the updating data corresponding to the second task identifier.
The task identifier may be an identifier of a widget template, and is used to identify the widget template of each task.
In this way, the generating an updated second task execution widget by using the widget template of the second task to be executed and the update data may include:
the middleware queries a corresponding widget template according to the second task identifier in the updating request;
and assigning the values to the widget templates by using the updating data.
In view of another scenario, the server may actively push update data to the terminal application.
Therefore, in this embodiment of the present specification, the middleware of the terminal application receiving the update data of the server according to the update information may include:
and according to the updating information, the middleware of the terminal application receives the task identifier to be updated and the corresponding updating data pushed by the server.
Thus the method may further comprise:
determining a second task to be executed by the terminal application;
in this way, the generating an updated second task execution widget by using the widget template of the second task to be executed and the update data includes:
and judging whether the task identifier to be updated is a second task identifier to be executed or not according to the updating information, and if so, assigning a value to the widget template of the second task by using the updating data to generate an updated second task execution widget.
And assigning the widget template of the second task by using the update data, which means to perform data nesting on the template and is not specifically described herein.
S105: and the terminal application acquires the updated second task execution widget and executes a second task based on the second task information by using the updated second task execution widget after the current executed first task is executed.
By dividing the widget template, different tasks are separated, and the widget of the task to be executed is constructed by using the middleware, so that the terminal application can directly execute the second task after the first task is executed, the restart is not needed, and the updating timeliness is improved.
The executing the second task by using the updated second task execution widget based on the second task information may specifically include: and (5) handing the widget to an executor of the framework structure to compile and run.
In the embodiment of this specification, still include:
and storing the updating data of the second task in a resource container of the terminal application.
The resource container of the terminal application is a storage space created for the terminal application and used for storing file information of the terminal application.
In this embodiment, the executing the second task based on the second task information by using the updated second task execution widget may include:
and executing the second task by using the updated second task execution widget and the non-updated information in the second task information.
The terminal application obtains the updated second task execution widget, which may be the terminal application loading the updated second task execution widget.
In one application scenario, the terminal application, while executing a first task, sends a request to the middleware to update a second task, the request carries a second task identifier, the middleware requests the server to obtain the updated data of the second task on one hand and calls the widget template of the second task on the other hand according to the task identifier carried in the request, if the server updates the second task, the server returns update data to the terminal, the update data is the update content of the task, the middleware acquires the update data and then constructs the update data by using the update data and the widget template to obtain an updated second task execution widget, when the terminal application finishes executing the first task and needs to execute the second task, the updated second task execution widget is directly utilized to execute the second task, the original second task is not executed any more, and the updating is not needed after the restarting.
In another application scenario, when a terminal application is executing a first task, the terminal receives update data and a corresponding task identifier pushed by a server, the middleware judges whether the task identifier corresponds to a second task to be executed, if so, the middleware calls a widget template of the second task, and assigns a value to the widget template of the second task by using the update data to generate an updated second task execution widget.
It can be found that the two application scenarios can be updated in the process of executing the application program, and the task function does not need to be updated after the application program is restarted, so that the timeliness is improved.
Fig. 2 is a schematic structural diagram of an updating apparatus for a terminal application provided in an embodiment of this specification, where the apparatus may include:
a terminal application module 201, which provides a terminal application, wherein the terminal application comprises a plurality of widget templates which can be used for independently or jointly executing tasks;
task information is obtained, wherein the task information comprises first and second task information which can be executed and update information used for updating the terminal application;
the terminal application executes a first task according to the first task information and segments a widget template of a second task to be executed;
a widget update module 202, where the middleware of the terminal application receives update data of a server according to the update information, generates an updated second task execution widget by using a widget template of the second task to be executed and the update data, and sends the updated second task execution widget to the terminal application;
and the update execution module 203 acquires the updated second task execution widget, and executes a second task based on the second task information by using the updated second task execution widget after the terminal application finishes executing the currently executed first task.
In the embodiment of this specification, still include:
the terminal application sends an updating request to the middleware, wherein the updating request carries a second task identifier;
the middleware of the terminal application receives the update data of the server according to the update information, and further comprises:
and according to the updating information, the middleware of the terminal application responds to the updating request and requests a server to acquire the updating data corresponding to the second task identifier.
In an embodiment of this specification, the generating an updated second task execution widget by using the widget template of the second task to be executed and the update data includes:
the middleware queries a corresponding widget template according to the second task identifier in the updating request;
and assigning the values to the widget templates by using the updating data.
In an embodiment of this specification, the receiving, by the middleware of the terminal application, update data of the server according to the update information includes:
and according to the updating information, the middleware of the terminal application receives the task identifier to be updated and the corresponding updating data pushed by the server.
In this embodiment, the widget update module 202 is further configured to:
determining a second task to be executed by the terminal application;
the generating an updated second task execution widget by using the widget template of the second task to be executed and the update data includes:
and judging whether the task identifier to be updated is a second task identifier to be executed or not according to the updating information, and if so, assigning a value to the widget template of the second task by using the updating data to generate an updated second task execution widget.
In an embodiment of the present specification, the partitioning a widget template of a second task to be executed includes:
and generating a widget template of a first task and a widget template of a second task in advance according to the task division executed in series, and storing the widget templates in a resource container of the middleware.
In this embodiment, the terminal application module 201 is further configured to:
and storing the updating data of the second task in a resource container of the terminal application.
In an embodiment of the present specification, the executing a second task based on the second task information by using the updated second task execution widget includes:
and executing the second task by using the updated second task execution widget and the non-updated information in the second task information.
According to the device, different tasks are separated by segmenting the widget template, and the widget of the task to be executed is constructed by using the middleware, so that the terminal application can directly execute the second task after the first task is executed, the restart is not needed, and the updating timeliness is improved.
Based on the same inventive concept, the embodiment of the specification further provides the electronic equipment.
In the following, embodiments of the electronic device of the present invention are described, which may be regarded as specific physical implementations for the above-described embodiments of the method and apparatus of the present invention. Details described in the embodiments of the electronic device of the invention should be considered supplementary to the embodiments of the method or apparatus described above; for details which are not disclosed in embodiments of the electronic device of the invention, reference may be made to the above-described embodiments of the method or the apparatus.
Fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. An electronic device 300 according to this embodiment of the invention is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, electronic device 300 is embodied in the form of a general purpose computing device. The components of electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one memory unit 320, a bus 330 connecting the various system components (including the memory unit 320 and the processing unit 310), a display unit 340, and the like.
Wherein the storage unit stores program code executable by the processing unit 310 to cause the processing unit 310 to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned processing method section of the present specification. For example, the processing unit 310 may perform the steps as shown in fig. 1.
The storage unit 320 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)3201 and/or a cache storage unit 3202, and may further include a read only memory unit (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 300, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 300 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 350. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 360. Network adapter 360 may communicate with other modules of electronic device 300 via bus 330. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments of the present invention described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention. The computer program, when executed by a data processing apparatus, enables the computer readable medium to implement the above-described method of the invention, namely: such as the method shown in fig. 1.
Fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present specification.
A computer program implementing the method shown in fig. 1 may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in embodiments in accordance with the invention may be implemented in practice using a general purpose data processing device such as a microprocessor or a Digital Signal Processor (DSP). The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
While the foregoing embodiments have described the objects, aspects and advantages of the present invention in further detail, it should be understood that the present invention is not inherently related to any particular computer, virtual machine or electronic device, and various general-purpose machines may be used to implement the present invention. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for updating a terminal application, comprising:
providing a terminal application, wherein the terminal application comprises a plurality of widget templates which can be used for independently or in combination to execute tasks;
task information is obtained, wherein the task information comprises first and second task information which can be executed and update information used for updating the terminal application;
the terminal application executes a first task according to the first task information and segments a widget template of a second task to be executed;
the middleware of the terminal application receives the update data of the server according to the update information, generates an updated second task execution widget by using the widget template of the second task to be executed and the update data, and sends the updated second task execution widget to the terminal application;
and the terminal application acquires the updated second task execution widget and executes a second task based on the second task information by using the updated second task execution widget after the current executed first task is executed.
2. The method of claim 1, further comprising:
the terminal application sends an updating request to the middleware, wherein the updating request carries a second task identifier;
the middleware of the terminal application receives the update data of the server according to the update information, and further comprises:
and according to the updating information, the middleware of the terminal application responds to the updating request and requests a server to acquire the updating data corresponding to the second task identifier.
3. The method according to any one of claims 1-2, wherein the generating an updated second task execution widget using the widget template of the second task to be executed and the update data comprises:
the middleware queries a corresponding widget template according to the second task identifier in the updating request;
and assigning the values to the widget templates by using the updating data.
4. The method according to any one of claims 1-3, wherein the middleware of the terminal application receives the update data of the server according to the update information, and comprises:
and according to the updating information, the middleware of the terminal application receives the task identifier to be updated and the corresponding updating data pushed by the server.
5. The method according to any one of claims 1-4, further comprising:
determining a second task to be executed by the terminal application;
the generating an updated second task execution widget by using the widget template of the second task to be executed and the update data includes:
and judging whether the task identifier to be updated is a second task identifier to be executed or not according to the updating information, and if so, assigning a value to the widget template of the second task by using the updating data to generate an updated second task execution widget.
6. The method of any of claims 1-5, wherein segmenting out the widget template of the second task to be performed comprises:
and generating a widget template of a first task and a widget template of a second task in advance according to the task division executed in series, and storing the widget templates in a resource container of the middleware.
7. The method according to any one of claims 1-6, further comprising:
and storing the updating data of the second task in a resource container of the terminal application.
8. An apparatus for updating a terminal application, comprising:
the terminal application module is used for providing terminal application, and the terminal application comprises a plurality of widget templates which can be used for independently or jointly executing tasks;
task information is obtained, wherein the task information comprises first and second task information which can be executed and update information used for updating the terminal application;
the terminal application executes a first task according to the first task information and segments a widget template of a second task to be executed;
the middleware of the terminal application receives the update data of the server according to the update information, generates an updated second task execution widget by using the widget template of the second task to be executed and the update data, and sends the updated second task execution widget to the terminal application;
and the terminal application acquires the updated second task execution widget and executes a second task based on the second task information by using the updated second task execution widget after executing the currently executed first task.
9. An electronic device, wherein the electronic device comprises:
a processor; and the number of the first and second groups,
a memory storing computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN202010660505.6A 2020-07-10 2020-07-10 Updating method and device of terminal application and electronic equipment Active CN111782248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010660505.6A CN111782248B (en) 2020-07-10 2020-07-10 Updating method and device of terminal application and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010660505.6A CN111782248B (en) 2020-07-10 2020-07-10 Updating method and device of terminal application and electronic equipment

Publications (2)

Publication Number Publication Date
CN111782248A true CN111782248A (en) 2020-10-16
CN111782248B CN111782248B (en) 2023-09-19

Family

ID=72767030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010660505.6A Active CN111782248B (en) 2020-07-10 2020-07-10 Updating method and device of terminal application and electronic equipment

Country Status (1)

Country Link
CN (1) CN111782248B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559264A (en) * 2013-11-04 2014-02-05 北京中搜网络技术股份有限公司 Widget data timely updating method and device
CN106952024A (en) * 2017-03-01 2017-07-14 千寻位置网络有限公司 It is a kind of to strengthen the workflow engine method and system of net O&M scenarios suitable for ground
CN107820701A (en) * 2015-05-01 2018-03-20 三星电子株式会社 Developer's exchange system
CN107844374A (en) * 2017-11-02 2018-03-27 上海携程商务有限公司 The task executing method of terminal device, device, electronic equipment, storage medium
CN108399086A (en) * 2018-03-12 2018-08-14 中汇信息技术(上海)有限公司 A kind of widget management method, server and computer readable storage medium
CN109062590A (en) * 2018-06-29 2018-12-21 武汉掌游科技有限公司 A kind of method and system of game SDK online updating
WO2019201039A1 (en) * 2018-04-16 2019-10-24 深圳思为科技有限公司 Method and system for updating application and application server
US20190361694A1 (en) * 2011-12-19 2019-11-28 Majen Tech, LLC System, method, and computer program product for coordination among multiple devices
CN111212102A (en) * 2019-11-29 2020-05-29 泰康保险集团股份有限公司 Task push management method, device and system, storage medium and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190361694A1 (en) * 2011-12-19 2019-11-28 Majen Tech, LLC System, method, and computer program product for coordination among multiple devices
CN103559264A (en) * 2013-11-04 2014-02-05 北京中搜网络技术股份有限公司 Widget data timely updating method and device
CN107820701A (en) * 2015-05-01 2018-03-20 三星电子株式会社 Developer's exchange system
CN106952024A (en) * 2017-03-01 2017-07-14 千寻位置网络有限公司 It is a kind of to strengthen the workflow engine method and system of net O&M scenarios suitable for ground
CN107844374A (en) * 2017-11-02 2018-03-27 上海携程商务有限公司 The task executing method of terminal device, device, electronic equipment, storage medium
CN108399086A (en) * 2018-03-12 2018-08-14 中汇信息技术(上海)有限公司 A kind of widget management method, server and computer readable storage medium
WO2019201039A1 (en) * 2018-04-16 2019-10-24 深圳思为科技有限公司 Method and system for updating application and application server
CN109062590A (en) * 2018-06-29 2018-12-21 武汉掌游科技有限公司 A kind of method and system of game SDK online updating
CN111212102A (en) * 2019-11-29 2020-05-29 泰康保险集团股份有限公司 Task push management method, device and system, storage medium and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
PETRU NICOLAESCU等: "Browser-based collaborative modeling in near real-time", 《9TH IEEE INTERNATIONAL CONFERENCE ON COLLABORATIVE COMPUTING: NETWORKING, APPLICATIONS AND WORKSHARING》, pages 335 - 344 *
严炜炜: "产业集群创新发展中的跨系统信息服务融合", 《中国优秀硕士学位论文全文数据库 经济与管理科学辑》, pages 152 - 43 *
吴报玉: "RIA客户端技术研究与应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》, pages 138 - 57 *

Also Published As

Publication number Publication date
CN111782248B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
US10970067B1 (en) Designing microservices for applications
CN109117252B (en) Method and system for task processing based on container and container cluster management system
CN110058861B (en) Source code processing method and device, storage medium and electronic equipment
CN111026439B (en) Application program compatibility method, device, equipment and computer storage medium
CN111427579A (en) Plug-in, application program implementing method and system, computer system and storage medium
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN112416425B (en) APP construction method and device, computer equipment and storage medium
CN109597810B (en) Task segmentation method, device, medium and electronic equipment
CN112769706B (en) Componentized routing method and system
US20230367568A1 (en) Fast compiling source code without dependencies
CN109558121B (en) Interface driver development method, device, equipment and storage medium
CN114706616A (en) Applet construction method and device
CN111596970B (en) Method, device, equipment and storage medium for dynamic library delay loading
CN111782248B (en) Updating method and device of terminal application and electronic equipment
CN111767126A (en) System and method for distributed batch processing
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN113220374A (en) Software processing method and device
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN113495723B (en) Method, device and storage medium for calling functional component
CN115552369A (en) Compiling method, compiling device, compiling system, storage medium and electronic device
CN112882698A (en) Development environment generation method and device, computer storage medium and electronic device
CN111858967A (en) Method, apparatus and storage medium for processing media content in network-based media processing
CN115599530B (en) Hard real-time optimization transformation method based on Linux kernel
CN110287017B (en) Task scheduling method and task scheduling device
CN112311931B (en) Method and device for processing contact information at terminal and electronic equipment

Legal Events

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