CN116074435A - Method and device for updating small component, electronic equipment and computer storage medium - Google Patents

Method and device for updating small component, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN116074435A
CN116074435A CN202211663352.6A CN202211663352A CN116074435A CN 116074435 A CN116074435 A CN 116074435A CN 202211663352 A CN202211663352 A CN 202211663352A CN 116074435 A CN116074435 A CN 116074435A
Authority
CN
China
Prior art keywords
target
gadget
layout
terminal
display area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211663352.6A
Other languages
Chinese (zh)
Inventor
陈衍权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qianhai Baidi Network Co ltd
Original Assignee
Shenzhen Qianhai Baidi Network 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 Shenzhen Qianhai Baidi Network Co ltd filed Critical Shenzhen Qianhai Baidi Network Co ltd
Priority to CN202211663352.6A priority Critical patent/CN116074435A/en
Publication of CN116074435A publication Critical patent/CN116074435A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a method, a device, an electronic device and a computer storage medium for updating a small component, wherein the method comprises the following steps: the terminal obtains the selection operation of a target gadget of the target application, wherein the target gadget is a gadget with dynamically updated layout and business functions; sending a first message to a server, wherein the first message carries information of a target small component; the first message is used for triggering the server to determine the layout and the implemented service functions in the display area of the target small component in the terminal; and dynamically creating and displaying the layout matched with the current moment in the display area of the target widget and realizing the service function matched with the current moment in response to the layout and the realized service function in the display area of the target widget in the terminal determined by the server. By adopting the method, the layout of the gadgets in the display area and the service function realized can be dynamically updated, which is beneficial to improving the update efficiency of gadgets and avoiding the excessive gadgets displayed by the terminal.

Description

Method and device for updating small component, electronic equipment and computer storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for updating a widget, an electronic device, and a computer storage medium.
Background
With the continuous development of electronic devices such as mobile phones, in order to improve the use experience of users, the electronic devices support adding application programs installed on the electronic devices to a desktop in the form of gadgets, and adding functional modules in the application programs to the gadgets, so as to realize quick starting and access to interfaces of the application programs.
In the related art, the layout and service functions of the gadgets are fixed, and when the layout and service functions of the gadgets need to be updated, new gadgets need to be developed, so that after the application is released, the layout and service functions of the gadgets cannot be updated in time. In addition, when the user uses the gadgets with different layouts and functions, the corresponding gadgets are required to be added to the desktop of the mobile phone, and when the gadgets are more, the desktop of the mobile phone is easy to be in a mess, and the difficulty of user selection is also increased.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, an electronic device, and a computer storage medium for updating a widget.
In a first aspect, the present application provides a method for updating a widget, applied to a terminal displaying the widget, where the method includes:
acquiring a selection operation of a target gadget of a target application, wherein the target gadget is a gadget with dynamically updated layout and business functions;
sending a first message to a server, wherein the first message carries information of the target gadget; the first message is used for triggering the server to determine the layout and the implemented service functions in the display area of the target gadget in the terminal;
and responding to the layout and the implemented business functions in the display area of the target gadget in the terminal determined by the server, dynamically creating and displaying the layout matched with the current moment in the display area of the target gadget, and implementing the business functions matched with the current moment.
In one embodiment, the first message is specifically used for triggering the server to determine, by analysis and machine learning, a layout and an implemented service function respectively displayed in the display area of the target gadget in a plurality of time periods in combination with the historical operation record of the user.
In one embodiment, the method further comprises:
And updating the layout and the implemented business functions created and displayed in the display area of the target gadget when the server determines that the layout and the implemented business functions displayed in the display area of the target gadget in the terminal are changed.
In one embodiment, the target gadget comprises: and dynamically updatable gadgets corresponding to the express application.
In a second aspect, the present application further provides a method for processing a widget, applied to a server, where the method includes:
acquiring a first message sent by a terminal, wherein the first message comprises information of a target gadget, and the target gadget is a gadget corresponding to user selection operation acquired by the terminal;
and determining a layout and an implemented service function displayed in a display area of the target widget in the terminal in response to the first message.
In one embodiment, the method further comprises:
acquiring a historical operation record of the target gadget corresponding to the user identifier;
determining a layout and an implemented business function displayed in a display area of the target gadget in the terminal in response to the first message; comprises the following steps of; and determining a layout displayed in a display area of the target widget in the terminal and implemented business functions in response to the first message through analysis and machine learning in combination with the historical operation record.
In a third aspect, the present application further provides a device for updating a widget, which is applied to a terminal for displaying the widget, and the device includes:
the acquisition module is used for acquiring the selection operation of a target gadget of the target application, wherein the target gadget is a gadget with dynamically updated layout and business functions;
the sending module is used for sending a first message to the server, wherein the first message carries the information of the target small component; the first message is used for triggering the server to determine the layout and the implemented service functions in the display area of the target gadget in the terminal;
and the processing module is used for responding to the layout and the service functions which are realized in the display area of the target gadget in the terminal determined by the server, dynamically creating and displaying the layout matched with the current moment in the display area of the target gadget, and realizing the service functions matched with the current moment.
In one embodiment, the first message is specifically used for triggering the server to determine, by analysis and machine learning, a layout and an implemented service function respectively displayed in the display area of the target gadget in a plurality of time periods in combination with the historical operation record of the user.
In one embodiment, the processing module is further configured to update the layout and the implemented service function created and displayed in the display area of the target gadget when the server determines that the layout and the implemented service function displayed in the display area of the target gadget in the terminal are changed.
In one embodiment, the target gadget comprises: and dynamically updatable gadgets corresponding to the express application.
In a fourth aspect, the present application further provides a processing apparatus of a gadget, applied to a server, where the server includes:
the acquisition module is used for acquiring a first message sent by the terminal, wherein the first message comprises information of a target gadget, and the target gadget is a gadget corresponding to user selection operation acquired by the terminal;
and the processing module is used for responding to the first message to determine the layout and the implemented service functions displayed in the display area of the target small component in the terminal.
In one embodiment, the obtaining module is further configured to obtain a history of operation record corresponding to the user identifier for the target gadget;
the processing module is specifically configured to determine, in response to the first message, a layout and an implemented business function displayed in a display area of the target widget in the terminal through analysis and machine learning in combination with the history operation record.
In a fifth aspect, the present application further provides an electronic device, including a memory and a processor, where the memory stores a computer program, and where the processor executes the computer program to implement the steps of the method according to the first aspect, any possible implementation manner of the first aspect, the second aspect, or any possible implementation manner of the second aspect.
In a sixth aspect, the present application further provides a computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the method of the first aspect, any possible implementation manner of the first aspect, the second aspect or any possible implementation manner of the second aspect.
In a seventh aspect, the present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of the first aspect, any possible implementation manner of the first aspect, the second aspect or any possible implementation manner of the second aspect.
The method, the device, the electronic equipment and the computer storage medium for updating the gadgets, wherein the target gadgets are gadgets with dynamically updated layout and service functions, and after the user selects the target gadgets, a first message carrying the information of the target gadgets is sent to the server, and the server is triggered to determine the layout and the service functions in the display area of the target gadgets in the terminal; and the terminal responds to the operation of the server, dynamically creates and displays a layout matched with the current moment in a display area of the target small component, and realizes the service function matched with the current moment. By adopting the technical scheme provided by the application, the layout of the gadgets in the display area and the service function realized can be dynamically updated, which is beneficial to improving the updating efficiency of the gadgets and avoiding the excessive gadgets displayed by the terminal.
Drawings
FIG. 1 is an application environment diagram of a method of updating a widget in one embodiment;
FIG. 2 is a flow diagram of a method of updating a widget in one embodiment;
FIG. 3 is a flow chart of a method for updating a small component in another embodiment;
FIG. 4 is a flow diagram of a method of processing small components in one embodiment;
FIG. 5 is a flow chart of a method of processing small components in another embodiment;
FIG. 6 is a schematic diagram of the structure of a small-component updating device in one embodiment;
FIG. 7 is a schematic diagram of a processing device of a small component in one embodiment;
FIG. 8A is a schematic diagram of a layout interface for a small component in one embodiment;
FIG. 8B is a layout interface schematic of a small component in one embodiment;
FIG. 8C is a layout interface schematic of a small component in one embodiment;
FIG. 8D is a layout interface schematic of a small component in one embodiment;
FIG. 8E is a layout interface schematic of a small component in one embodiment;
FIG. 9 is a schematic diagram of the internal architecture of a computer device in one embodiment;
fig. 10 is a schematic diagram showing an internal structure of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The method for updating the gadget provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the terminal 101 communicates with the server 102 via a network. The terminal 101 acquires the selection operation of a user on a target gadget of a target application, wherein the target gadget is a gadget with dynamically updated layout and business functions; the terminal 101 sends a first message to the server 102, wherein the first message carries information of a target small component; the first message is used to trigger the server 102 to determine the layout and implemented service functions in the display area of the target gadget in the terminal 101; the terminal 101 dynamically creates and displays a layout matching the current time in the display area of the target gadget, and implements a service function matching the current time in response to the layout and implemented service function in the display area of the target gadget in the terminal 101 determined by the server 102. The terminal 101 may be, but is not limited to, a mobile phone, a tablet computer, an internet of things device, a portable wearable device, etc., and for simplicity, embodiments of the present application will be described by taking the mobile phone as an example. The server 102 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a method for updating a widget is provided, which is illustrated by taking an example that the method is applied to the terminal 101 in fig. 1, and includes steps 201 to 203.
201. And acquiring the selection operation of a target widget of the target application, wherein the target widget is a widget with dynamically updated layout and business functions.
For example, the user may select a dynamically updatable gadget corresponding to an application such as weather, clock, video playing, or receiving an express.
202. Sending a first message to a server, wherein the first message carries information of a target small component; the first message is used to trigger the server to determine the layout and implemented business functions in the display area of the target gadget in the terminal.
The layout of the gadgets in the display area refers to the content of the gadgets displayed in the display area corresponding to the gadgets, such as what text, icons or keys are displayed, and when the gadgets are implemented, the information of the information in the display area can be recorded in the XML layout file.
The service function can be content (as shown in fig. 8B, express information of the to-be-received piece is displayed, as shown in fig. 8C, an icon of the two-dimension code of the mail) displayed by the gadget, and the like, and when the service function is implemented, the service function can be dynamically created and implemented by an onUpdate () method in an appwidesprovider implementation class.
For example, if the target gadget selected by the user is a gadget capable of dynamically updating the delivery package, the first message sent by the mobile phone to the server includes the gadget information selected by the user.
In some possible embodiments, the first message is used to trigger the server to determine, by analysis and machine learning, in conjunction with the user's historical operating record, the layout and implemented business functions respectively displayed in the display area of the target gadget in the plurality of time periods.
203. And dynamically creating and displaying the layout matched with the current moment in the display area of the target widget and realizing the service function matched with the current moment in response to the layout and the realized service function in the display area of the target widget in the terminal determined by the server.
In some possible implementations, the layout and implemented business functions in the display area of the gadget as determined by the server can be returned through the interface JSON.
For example, the layout of the gadget in the display area at the current time may include an avatar, a name, a company name, a delivery icon, and a dispatch icon, and when the delivery icon is clicked, the delivery page may be entered as shown in fig. 8A. In some possible embodiments, the server may further determine, according to a preset rule, a layout of the target gadget and a service function corresponding to the gadget at intervals of a preset time. When the layout and service functions of the gadgets change, the display area of the terminal gadget updates display the newly determined layout of the gadgets, and updates the service functions corresponding to the gadget layout.
By adopting the embodiment, after the selection operation of the user on the target gadget is obtained, a first message carrying the target gadget information is sent to the server, and the server is triggered to determine the layout and the implemented service function in the display area of the target gadget in the terminal; and the terminal responds to the operation of the server, dynamically creates and displays a layout matched with the current moment in a display area of the target small component, and realizes the service function matched with the current moment. The embodiment can dynamically update the layout and the service function of the display of the gadgets in the display area, thereby being beneficial to improving the updating efficiency of the gadgets and avoiding the excessive display of the gadgets by the terminal.
Referring to fig. 3, a flowchart of a method for updating a widget according to another embodiment of the present application is shown, in this embodiment, if a server determines that a layout of a widget and an implemented service function in a display area of a target widget are changed, the layout of the widget to be displayed and the implemented service function to be updated are updated in the display area of the terminal widget. As shown in fig. 3, this embodiment includes steps 301 to 304.
301. And acquiring the selection operation of a user on a target widget of the target application, wherein the target widget is a widget with dynamically updated layout and service functions.
For example, the user may select a dynamically updatable gadget corresponding to an application such as weather, clock, video playing, or receiving an express.
302. Sending a first message to a server, wherein the first message carries information of a target small component; the first message is used to trigger the server to determine the layout and implemented business functions in the display area of the target gadget in the terminal.
The layout of the gadget in the display area refers to the content of the gadget displayed in the display area corresponding to the gadget, for example, what text, icons, or keys are displayed, and the implemented service function may be the content related to the specific service function displayed by the gadget (as shown in fig. 8B, the express information of the to-be-received item is displayed), or the interface related to the service function corresponding to the icon displayed after clicking the icon (as shown in fig. 8C, the icon of the two-dimensional code of the mailing), and so on.
For example, if the target gadget selected by the user is a gadget for receiving and dispatching an express, the first message sent by the mobile phone to the server includes information that the gadget selected by the user is a gadget dynamically updated corresponding to the receiving and dispatching express application.
303. And dynamically creating and displaying the layout matched with the current moment in the display area of the target widget and realizing the service function matched with the current moment in response to the layout and the realized service function in the display area of the target widget in the terminal determined by the server.
304. When the server determines that the layout and the implemented business functions displayed in the display area of the target gadget in the terminal are changed, the layout and the implemented business functions created and displayed in the display area of the target gadget are updated.
The server can combine the historical operation record of the user, determine the operation habit of the user through analysis and machine learning, and predict the operation of the user in different time periods.
For example, predicting, by the server, the user's operations through analysis and machine learning in conjunction with the user's historical operating records includes:
09:00-11:00 express delivery personnel rob to order;
guiding the user to order by the courier in the range of 11:00-13:00;
13:00-15:00 express packages are put in and put out of warehouse;
15:00-17:00 express delivery person dispatch;
other periods 15:00-09:00 default views.
When a user adds a small component for receiving and dispatching express application in the mobile phone, the operation of the server on the user predicted at the current moment is acquired from the server by combining the time period, and the layout of the small component in the mobile phone screen is dynamically updated into a view corresponding to the operation of the user predicted by the server.
If the current time is 09:09, the server predicts that the courier needs to take the order at the current time through analysis and machine learning by combining the acquired historical operation records of the user, and the layout of the small components in the mobile phone screen is displayed as shown in fig. 8B.
If the server root combines the obtained historical operation records of the user at the current moment 11:11, and predicts that the courier needs to guide the user to order through analysis and machine learning, the layout of the small components in the mobile phone screen is dynamically updated into the mailing two-dimensional code, as shown in fig. 8C.
If the current time is 14:14, the server predicts that the courier needs to execute the warehouse-in operation through analysis and machine learning by combining the obtained historical operation record of the user, and the layout of the small components in the mobile phone screen is dynamically updated into an interface corresponding to the warehouse-in operation, as shown in fig. 8D.
If the current time is 16:16, the server predicts that the courier needs to execute the dispatch operation through analysis and machine learning by combining the obtained historical operation record of the user, and the layout of the small components in the mobile phone screen is dynamically updated into a view corresponding to the dispatch, as shown in fig. 8E.
If the current time is 18:18, the server predicts no specific operation of the courier through analysis and machine learning by combining the obtained historical operation record of the user, and the layout of the small components in the mobile phone screen is dynamically updated to be a default view, as shown in fig. 8A.
When the server predicts, the prediction may be performed according to the history of the current user, or may be performed according to the history of the user with the same characteristics. For example, the server may predict operations that may need to be performed by the courier in different time periods based on their historical operation records. In some embodiments, the server may be configured to: the historical operation record sets of Zhang three, lifour, wang five and the like are used for predicting the operation of Zhang three in different time periods, and all the embodiments are feasible.
With the embodiment, the server predicts the operation of the user at different time periods by analyzing and machine learning in combination with the historical operation record of the user, and then updates the layout of the gadgets in the appointed display area and the implemented business functions. The embodiment can share the same gadget which can be dynamically updated in different time periods, the gadget is not required to be developed respectively in different time periods, the gadget selection interface is simple, and the gadget is flexible and convenient to update.
In one embodiment, as shown in fig. 4, a method for processing a gadget is provided, and an example of applying the method to the server 102 in fig. 1 is described, including step 401 and step 402.
401. And acquiring a first message sent by the terminal, wherein the first message comprises information of a target gadget, and the target gadget is a gadget corresponding to the user selection operation acquired by the terminal.
For example, the user may select a dynamically updatable gadget corresponding to an application such as weather, clock, video playing, or receiving an express.
402. And determining the layout and the implemented business functions displayed in the display area of the target small component in the terminal in response to the first message.
The layout of the gadgets in the display area refers to the content of the gadgets displayed in the display area corresponding to the gadgets, such as what text, icons or keys are displayed, and when the gadgets are implemented, the information of the information in the display area can be recorded in the XML layout file.
The service function can be content (as shown in fig. 8B, express information of the to-be-received piece is displayed, as shown in fig. 8C, an icon of the two-dimension code of the mail) displayed by the gadget, and the like, and when the service function is implemented, the service function can be dynamically created and implemented by an onUpdate () method in an appwidesprovider implementation class.
For example, if the target gadget selected by the user is a gadget capable of dynamically updating the delivery package, the first message sent by the mobile phone to the server includes the gadget information selected by the user.
In some possible embodiments, the first message is used to trigger the server to determine, by analysis and machine learning, in conjunction with the user's historical operating record, the layout and implemented business functions respectively displayed in the display area of the target gadget in the plurality of time periods.
For example, the layout of the gadget in the display area at the current time may include an avatar, a name, a company name, a delivery icon, and a dispatch icon, and when the delivery icon is clicked, the delivery page may be entered as shown in fig. 8A. In some possible embodiments, the server may further determine, according to a preset rule, a layout of the target gadget and a service function corresponding to the gadget at intervals of a preset time. When the layout and service functions of the gadgets change, the display area of the terminal gadget updates display the newly determined layout of the gadgets, and updates the service functions corresponding to the gadget layout.
By adopting the embodiment, the server determines the layout and the realized service function in the display area of the target gadget in the terminal according to the acquired first message carrying the target gadget information; the method is beneficial to dynamically creating and displaying the layout matched with the current moment in the display area of the target small component and realizing the business function matched with the current moment. The embodiment can dynamically determine the layout and the service function of the display of the gadgets in the display area, thereby being beneficial to improving the updating efficiency of the gadgets, simplifying the user operation and avoiding the excessive display of the gadgets by the terminal.
Referring to fig. 5, a flowchart of a method for processing a gadget according to another embodiment of the present application is provided, in this embodiment, a server obtains a history of operation records of a user on a target gadget, which is favorable for the server to predict operations of the user in different time periods according to operation habits of the user, as shown in fig. 3, and this embodiment includes steps 501 to 503.
501. And acquiring a historical operation record corresponding to the user identifier for the target gadget.
502. And acquiring a first message sent by the terminal, wherein the first message comprises information of a target gadget, and the target gadget is a gadget corresponding to the user selection operation acquired by the terminal.
For example, the user may select a dynamically updatable gadget corresponding to an application such as weather, clock, video playing, or receiving an express.
503. The layout and implemented business functions displayed in the display area of the target gadget in the terminal are determined in response to the first message by analyzing and machine learning in combination with the history.
Wherein the layout of the gadgets in the display area may be recorded in an XML layout file. The service function can be dynamically created and realized by an onUpdate () method in an AppWidgetProvider realization class. For example, if the target gadget selected by the user is a gadget that can be dynamically updated to receive and dispatch the express,
the server can determine the operation habit of the user through analysis and machine learning according to the historical operation record of the user, and predict the operation of the user in different time periods.
For example, predicting, by the server, the user's operations through analysis and machine learning in conjunction with the user's historical operating records includes:
09:00-11:00 express delivery personnel rob to order;
guiding the user to order by the courier in the range of 11:00-13:00;
13:00-15:00 express packages are put in and put out of warehouse;
15:00-17:00 express delivery person dispatch; other periods 15:00-09:00 default views.
When a user adds a small component for receiving and dispatching express application in the mobile phone, the operation of the server on the user predicted at the current moment is acquired from the server by combining the time period, and the layout of the small component in the mobile phone screen is dynamically updated into a view corresponding to the operation of the user predicted by the server.
If the current time is 09:09, the server combines the acquired historical operation records of the user, and predicts that the courier needs to take the order for the current time through analysis and machine learning, and the layout of the small components in the mobile phone screen is displayed as shown in fig. 8B.
If the server predicts that the courier needs to guide the user to order through analysis and machine learning by combining the obtained historical operation record of the user at the current moment 11:11, the layout of the small components in the mobile phone screen is dynamically updated into the mailing two-dimensional code, as shown in fig. 8C.
If the current time is 14:14, the server predicts that the courier needs to execute the warehouse-in operation through analysis and machine learning by combining the obtained historical operation record of the user, and the layout of the small components in the mobile phone screen is dynamically updated into an interface corresponding to the warehouse-in operation, as shown in fig. 8D.
If the current time is 16:16, the server gathers the obtained historical operation records of the user, and predicts that the courier needs to execute the dispatch operation through analysis and machine learning, the layout of the small components in the mobile phone screen is dynamically updated into a view corresponding to the dispatch, as shown in fig. 8E.
If the current time is 18:18, the server predicts no specific operation of the courier through analysis and machine learning by combining the obtained historical operation record of the user, and the layout of the small components in the mobile phone screen is dynamically updated to be a default view, as shown in fig. 8A.
When the server predicts, the prediction may be performed according to the history of the current user, or may be performed according to the history of the user with the same characteristics. For example, the server may predict operations that may need to be performed by the courier in different time periods based on their historical operation records. In some embodiments, the server may be configured to: the historical operation record sets of Zhang three, lifour, wang five and the like are used for predicting the operation of Zhang three in different time periods, and all the embodiments are feasible.
With this embodiment, the server predicts the operation of the user at different time periods based on the user's history of operation records, and determines the layout of gadgets in the designated display area and the service functions implemented. By adopting the embodiment, the gadgets are not required to be developed respectively for different time periods and the gadgets to be selected are not required to be set respectively for different time periods, the gadgets which can be dynamically updated can be corresponding to the same gadget in different time periods, the gadget selection interface is concise, the gadgets are flexibly and conveniently updated, the cost of developing and maintaining gadgets is reduced, the selection operation of users is reduced, and the user experience is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a widget updating device for realizing the method for updating the related widget. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiment of the updating device for one or more gadgets provided below may refer to the limitation in the updating method for gadgets described above, and will not be repeated here.
In one embodiment, as shown in FIG. 6, there is provided a widget updating apparatus 600 comprising: an acquisition module 601, a transmission module 602 and a processing module 603. The acquiring module 601 is configured to acquire a selection operation of a target gadget of a target application, where the target gadget is a gadget with dynamically updatable layout and business functions; a sending module 602, configured to send a first message to a server, where the first message carries information of a target gadget; the first message is used for triggering the server to determine the layout and the implemented service functions in the display area of the target small component in the terminal; and the processing module 603 is configured to dynamically create and display a layout matching the current time in the display area of the target widget and implement a service function matching the current time in response to the layout and the implemented service function in the display area of the target widget in the terminal determined by the server.
In some possible embodiments, the first message is specifically used to trigger the server to determine, by analysis and machine learning, in conjunction with the historical operation record of the user, the layout and the implemented business functions respectively displayed in the display area of the target gadget in the plurality of time periods.
In some possible embodiments, the processing module is further configured to update the layout and the implemented service function created and displayed in the display area of the target gadget when the server determines that the layout and the implemented service function displayed in the display area of the target gadget in the terminal are changed.
The various modules in the above described gadget update device may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, as shown in FIG. 7, a small-component processing apparatus 700 is provided, including an acquisition module 701 and a processing and module 702. The acquiring module 701 is configured to acquire a first message sent by the terminal, where the first message includes information of a target gadget, and the target gadget is a gadget corresponding to a user selection operation acquired by the terminal; a processing module 702 is configured to determine, in response to the first message, a layout and an implemented business function displayed in a display area of a target widget in the terminal.
In some possible embodiments, the obtaining module is further configured to obtain a history of operation record of the target gadget corresponding to the user identifier; the processing module is specifically configured to determine, by analysis and machine learning in combination with the history operation record, a layout displayed in a display area of a target widget in the terminal and a service function implemented in response to the first message.
The various modules in the processing means of the gadgets described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, and the computer device may be a mobile phone or other terminal, and the internal structure diagram of the computer device may be as shown in fig. 9. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for communicating with an external server, and the communication mode can be realized by a mobile cellular network or other technologies. The computer program is executed by a processor to implement a method of updating a gadget. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
In one embodiment, a computer device is provided, which may be an electronic device such as a server, and the internal structure of which may be as shown in fig. 10. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing historical operation record data of the user. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of handling gadgets.
It will be appreciated by those skilled in the art that the structures shown in fig. 9 and 10 are block diagrams of only some of the structures associated with the present application and are not intended to limit the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of: acquiring the selection operation of a user on a target gadget of a target application, wherein the target gadget is a gadget with dynamically updated layout and business functions; sending a first message to a server, wherein the first message carries information of a target small component; the first message is used for triggering the server to determine the layout and the implemented service functions in the display area of the target small component in the terminal; and dynamically creating and displaying the layout matched with the current moment in the display area of the target widget and realizing the service function matched with the current moment in response to the layout and the realized service function in the display area of the target widget in the terminal determined by the server.
In one embodiment, the first message is specifically configured to trigger the server to determine, according to the historical operation record of the user, a layout and an implemented service function respectively displayed in the display area of the target gadget in a plurality of time periods.
In one embodiment, the processor when executing the computer program further performs the steps of: when the server determines that the layout and the implemented business functions displayed in the display area of the target gadget in the terminal are changed, the layout and the implemented business functions created and displayed in the display area of the target gadget are updated.
In one embodiment, the target gadget comprises: and dynamically updatable gadgets corresponding to the express application.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of: acquiring a first message sent by a terminal, wherein the first message comprises information of a target gadget, and the target gadget is a gadget corresponding to user selection operation acquired by the terminal; and determining the layout and the implemented business functions displayed in the display area of the target small component in the terminal in response to the first message.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring a historical operation record of the target gadget corresponding to the user identifier; determining a layout and an implemented business function displayed in a display area of a target widget in the terminal in response to the first message; comprises the following steps of; and determining the layout and the implemented business functions displayed in the display area of the target small component in the terminal in response to the first message according to the historical operation record.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring the selection operation of a user on a target gadget of a target application, wherein the target gadget is a gadget with dynamically updated layout and business functions; sending a first message to a server, wherein the first message carries information of a target small component; the first message is used for triggering the server to determine the layout and the implemented service functions in the display area of the target small component in the terminal; and dynamically creating and displaying the layout matched with the current moment in the display area of the target widget and realizing the service function matched with the current moment in response to the layout and the realized service function in the display area of the target widget in the terminal determined by the server.
In one embodiment, the first message is specifically configured to trigger the server to determine, according to the historical operation record of the user, a layout and an implemented service function respectively displayed in the display area of the target gadget in a plurality of time periods.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the server determines that the layout and the implemented business functions displayed in the display area of the target gadget in the terminal are changed, the layout and the implemented business functions created and displayed in the display area of the target gadget are updated.
In one embodiment, the target gadget comprises: and dynamically updatable gadgets corresponding to the express application.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring a first message sent by a terminal, wherein the first message comprises information of a target gadget, and the target gadget is a gadget corresponding to user selection operation acquired by the terminal; and determining the layout and the implemented business functions displayed in the display area of the target small component in the terminal in response to the first message.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a historical operation record of the target gadget corresponding to the user identifier; determining a layout and an implemented business function displayed in a display area of a target widget in the terminal in response to the first message; comprises the following steps of; and determining the layout and the implemented business functions displayed in the display area of the target small component in the terminal in response to the first message according to the historical operation record.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of: acquiring the selection operation of a user on a target gadget of a target application, wherein the target gadget is a gadget with dynamically updated layout and business functions; sending a first message to a server, wherein the first message carries information of a target small component; the first message is used for triggering the server to determine the layout and the implemented service functions in the display area of the target small component in the terminal; and dynamically creating and displaying the layout matched with the current moment in the display area of the target widget and realizing the service function matched with the current moment in response to the layout and the realized service function in the display area of the target widget in the terminal determined by the server.
In one embodiment, the first message is specifically configured to trigger the server to determine, according to the historical operation record of the user, a layout and an implemented service function respectively displayed in the display area of the target gadget in a plurality of time periods.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the server determines that the layout and the implemented business functions displayed in the display area of the target gadget in the terminal are changed, the layout and the implemented business functions created and displayed in the display area of the target gadget are updated.
In one embodiment, the target gadget comprises: and dynamically updatable gadgets corresponding to the express application.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of: acquiring a first message sent by a terminal, wherein the first message comprises information of a target gadget, and the target gadget is a gadget corresponding to user selection operation acquired by the terminal; and determining the layout and the implemented business functions displayed in the display area of the target small component in the terminal in response to the first message.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a historical operation record of the target gadget corresponding to the user identifier; determining a layout and an implemented business function displayed in a display area of a target widget in the terminal in response to the first message; comprises the following steps of; the layout and implemented business functions displayed in the display area of the target gadget in the terminal are determined in response to the first message by analyzing and machine learning in combination with the history.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method of updating a gadget, applied to a terminal of a display assembly, the method comprising:
acquiring a selection operation of a target gadget of a target application, wherein the target gadget is a gadget with dynamically updated layout and business functions;
sending a first message to a server, wherein the first message carries information of the target gadget; the first message is used for triggering the server to determine the layout and the implemented service functions in the display area of the target gadget in the terminal;
And responding to the layout and the implemented business functions in the display area of the target gadget in the terminal determined by the server, dynamically creating and displaying the layout matched with the current moment in the display area of the target gadget, and implementing the business functions matched with the current moment.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the first message is used for triggering the server to combine the historical operation record of the user to determine the layout and the implemented service functions respectively displayed in the display areas of the target gadgets in a plurality of time periods through analysis and machine learning.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and updating the layout and the implemented business functions created and displayed in the display area of the target gadget when the server determines that the layout and the implemented business functions displayed in the display area of the target gadget in the terminal are changed.
4. A method of handling gadgets, for application to a server, the method comprising:
acquiring a first message sent by a terminal, wherein the first message comprises information of a target gadget, and the target gadget is a gadget corresponding to user selection operation acquired by the terminal;
And determining a layout and an implemented service function displayed in a display area of the target widget in the terminal in response to the first message.
5. The method according to claim 4, wherein the method further comprises:
acquiring a historical operation record of the target gadget corresponding to the user identifier;
determining a layout and an implemented business function displayed in a display area of the target gadget in the terminal in response to the first message; comprises the following steps of; and determining a layout displayed in a display area of the target widget in the terminal and implemented business functions in response to the first message through analysis and machine learning in combination with the historical operation record.
6. A widget updating apparatus applied to a terminal displaying a widget, the apparatus comprising:
the acquisition module is used for acquiring the selection operation of a target gadget of the target application, wherein the target gadget is a gadget with dynamically updated layout and business functions;
the sending module is used for sending a first message to the server, wherein the first message carries the information of the target small component; the first message is used for triggering the server to determine the layout and the implemented service functions in the display area of the target gadget in the terminal;
And the processing module is used for responding to the layout and the service functions which are realized in the display area of the target gadget in the terminal determined by the server, dynamically creating and displaying the layout matched with the current moment in the display area of the target gadget, and realizing the service functions matched with the current moment.
7. A processing device of a gadget, for application to a server, the processing device comprising:
the acquisition module is used for acquiring a first message sent by the terminal, wherein the first message comprises information of a target gadget, and the target gadget is a gadget corresponding to user selection operation acquired by the terminal;
and the processing module is used for responding to the first message to determine the layout and the implemented service functions displayed in the display area of the target small component in the terminal.
8. The processing apparatus according to claim 7, wherein,
the acquisition module is also used for acquiring a history operation record of the target gadget corresponding to the user identifier;
the processing module is specifically configured to determine, in response to the first message, a layout and an implemented business function displayed in a display area of the target widget in the terminal through analysis and machine learning in combination with the history operation record.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
CN202211663352.6A 2022-12-23 2022-12-23 Method and device for updating small component, electronic equipment and computer storage medium Pending CN116074435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211663352.6A CN116074435A (en) 2022-12-23 2022-12-23 Method and device for updating small component, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211663352.6A CN116074435A (en) 2022-12-23 2022-12-23 Method and device for updating small component, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN116074435A true CN116074435A (en) 2023-05-05

Family

ID=86183010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211663352.6A Pending CN116074435A (en) 2022-12-23 2022-12-23 Method and device for updating small component, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN116074435A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017736A1 (en) * 2008-07-16 2010-01-21 Samsung Electronics Co., Ltd. Method of controlling devices using widget contents and remote controller performing the method
CN106201553A (en) * 2016-07-22 2016-12-07 北京奇虎科技有限公司 Control method, device and terminal unit at desktop pushing application program
CN106839307A (en) * 2017-01-22 2017-06-13 美的集团股份有限公司 The control device of airhandling equipment, method and system
CN108829485A (en) * 2018-06-25 2018-11-16 腾讯科技(深圳)有限公司 Update method, device, storage medium and the computer equipment of application interface layout
CN113721805A (en) * 2021-08-23 2021-11-30 郑州时空隧道信息技术有限公司 Express delivery small assembly and control method based on express delivery small assembly
CN115129416A (en) * 2022-07-20 2022-09-30 富途网络科技(深圳)有限公司 Display method of market information component, data processing method and device and electronic equipment
CN115309470A (en) * 2022-07-13 2022-11-08 百度在线网络技术(北京)有限公司 Method, device and equipment for loading widgets and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017736A1 (en) * 2008-07-16 2010-01-21 Samsung Electronics Co., Ltd. Method of controlling devices using widget contents and remote controller performing the method
CN106201553A (en) * 2016-07-22 2016-12-07 北京奇虎科技有限公司 Control method, device and terminal unit at desktop pushing application program
CN106839307A (en) * 2017-01-22 2017-06-13 美的集团股份有限公司 The control device of airhandling equipment, method and system
CN108829485A (en) * 2018-06-25 2018-11-16 腾讯科技(深圳)有限公司 Update method, device, storage medium and the computer equipment of application interface layout
CN113721805A (en) * 2021-08-23 2021-11-30 郑州时空隧道信息技术有限公司 Express delivery small assembly and control method based on express delivery small assembly
CN115309470A (en) * 2022-07-13 2022-11-08 百度在线网络技术(北京)有限公司 Method, device and equipment for loading widgets and storage medium
CN115129416A (en) * 2022-07-20 2022-09-30 富途网络科技(深圳)有限公司 Display method of market information component, data processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
JP6150930B2 (en) Computing device, method, program
US20140282178A1 (en) Personalized community model for surfacing commands within productivity application user interfaces
US20110258575A1 (en) Displaying large datasets in a browser environment
CN104932770A (en) Methods, Systems, Electronic Devices, And Non-Transitory Computer Readable Storage Medium Media For Behavior Based User Interface Layout Display (Build)
US11216602B2 (en) Micro frontends with model-based state
CN109408136A (en) Information processing method, device, storage medium and electronic equipment
US20140298194A1 (en) Providing a personalized navigation experience in a mobile application
CN111596911B (en) Method, device, computer equipment and storage medium for generating control
US10824445B2 (en) Dynamic presentation of function portals
CN102436344A (en) Context menu
US10860675B2 (en) Informational tabs
US8171429B2 (en) Application navigation
KR102634375B1 (en) Methods and systems for positioning animated images within a dynamic keyboard interface
CN110874165B (en) Information display method, information determination method and system
US20150212700A1 (en) Dashboard with panoramic display of ordered content
CN116074435A (en) Method and device for updating small component, electronic equipment and computer storage medium
CN115168668A (en) Information recommendation method and device, computer equipment and storage medium
CN115526953A (en) Method and device for generating view, electronic equipment and storage medium
CN113704334A (en) Target data display method, device, equipment and storage medium
CN111984743A (en) Audit service data display method and device, computer equipment and storage medium
US20150212716A1 (en) Dashboard with selectable workspace representations
CN110619541A (en) Application program management method and device, computer equipment and storage medium
US11704014B1 (en) Supporting micro swipes for generating custom user interface responses
US20220222327A1 (en) Method, computer device, and non-transitory computer-readable recording medium to manage content for user account
EP3472727A1 (en) Programming organizational links that propagate to mobile applications

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