Program control method, device, electronic device and readable storage medium
The program control method enhances application flexibility by updating display and loading information based on user inputs, addressing inflexibility in existing technologies.
Patent Information
- Application Number
- JP2023573448
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-05-28
- Filing Date
- 2022-05-23
- Publication Date
- 2024-08-26
- Estimated Expiration
- 2042-05-23
AI Technical Summary
Existing application technologies lack flexibility in display and loading content, resulting in inflexible presentation across different electronic devices.
A program control method that includes displaying a target widget with functional and modular components, receiving user inputs to update display and loading information of the application interface, and associating these updates with the widget's changes.
Enhances flexibility in application display and loading by allowing customization of content and module management, such as trimming, merging, and rearranging functions and modules, thereby improving user experience.
Smart Images

Figure 0007540103000001 
Figure 0007540103000006 
Figure 0007540103000008
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims priority to Chinese Patent Application No. 202110594337.X, filed in China on May 28, 2021, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of application control technology, and specifically to a program control method, device, electronic device and readable storage medium. [Background technology]
[0003] In related technology, when a specific application is launched, the loading of the application and the modules displayed within the application interface are all fixed, and for example, when the same application is launched on different electronic devices, the top page of the same application is displayed on the different electronic devices.
[0004] As can be seen from this, the related art has a drawback in that the display contents and loading contents of applications are not flexible. Summary of the Invention [Problem to be solved by the invention]
[0005] The embodiments of the present application aim to provide a program control method, device, electronic device, and readable storage medium that can solve the problem of low flexibility in the display content and loading content of applications in the related art. [Means for solving the problem]
[0006] In order to solve the above technical problems, the present application is realized as follows.
[0007] In a first aspect, embodiments of the present application include displaying a target widget of a target application, the target widget including at least one of a functional component and a modular component; receiving a first input for the target widget; updating display information of the target widget and updating display information and load information of a program interface of the target application in response to the first input; The present invention provides a program control method, in which the update of display information and load information of the program interface of the target application is associated with the update of display information of the target widget.
[0008] In a second aspect, embodiments of the present application include a display module for displaying a target widget of a target application, the target widget including at least one of a functional component and a modular component; a receiving module for receiving a first input for the target widget; an update module responsive to the first input for updating display information of the target widget and updating display information and load information of a program interface of the target application; A program control device is provided, in which updates of display information and load information of the program interface of the target application are associated with updates of display information of the target widget.
[0009] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or command stored in the memory and executable on the processor, the program or command, when executed by the processor, achieving steps of the method according to the first aspect.
[0010] In a fourth aspect, an embodiment of the present application provides a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implements the steps of the method according to the first aspect.
[0011] In a fifth aspect, an embodiment of the present application provides a chip including a processor and a communication interface, the communication interface and the processor being coupled to execute a program or command to implement the method according to the first aspect.
[0012] In a sixth aspect, embodiments of the present application provide a computer program product stored on a non-transitory storage medium and executed by at least one processor to implement a method according to the first aspect. Effect of the Invention
[0013] In the control method provided in the embodiment of the present application, a target widget of a target application is displayed, the target widget includes at least one of a functional component and a module component, and a first input is received for the target widget, and in response to the first input, the display information of the target widget is updated, and the display information and loading information of the program interface of the target application are updated, where the updated content of the display information and loading information of the program interface of the target application is associated with the updated content of the display information of the target widget. In this way, the loading information and display information of the target application can be adjusted through the operation on the target widget, for example, the trimming and merging of functions and modules in the target application are realized, and the loading and displaying are performed according to the functions and modules after the trimming and merging, so that the display information and loading information of the target application are more diversified, and thus the flexibility of the display content and loading content of the application is improved. [Brief description of the drawings]
[0014] [Figure 1] 1 is a flowchart of a program control method provided in an embodiment of the present application. [Figure 2a] FIG. 1 is a diagram (part 1) showing an application scene of a program control method provided in an embodiment of the present application. [Figure 2b] FIG. 2 is a diagram (part 2) showing an application scene of the program control method provided in the embodiment of the present application. [Figure 2c] FIG. 3 is a diagram (part 3) showing an application scene of the program control method provided in the embodiment of the present application. [Figure 2d] FIG. 4 is a diagram showing an application scene of the program control method provided in the embodiment of the present application (part 4). [Diagram 3] 1 is a flowchart (part 1) of a program control method provided in an embodiment of the present application. [Figure 4] 2 is a flowchart (part 2) of a program control method provided in an embodiment of the present application. [Figure 5a] FIG. 1 is a diagram (part 1) showing an application scene of a program control method provided in an embodiment of the present application. [Figure 5b] FIG. 2 is a diagram (part 2) showing an application scene of the program control method provided in the embodiment of the present application. [Figure 5c] FIG. 3 is a diagram (part 3) showing an application scene of the program control method provided in the embodiment of the present application. [Figure 5d] FIG. 4 is a diagram showing an application scene of the program control method provided in the embodiment of the present application (part 4). [Figure 5e] FIG. 5 is a diagram (part 5) showing an application scene of the program control method provided in the embodiment of the present application. [Figure 5f] FIG. 6 is a diagram showing an application scene of the program control method provided in the embodiment of the present application (part 6). [Figure 6] FIG. 2 is a block diagram of a program control device provided in an embodiment of the present application. [Figure 7]FIG. 1 is a configuration diagram (part 1) of an electronic device provided in an embodiment of the present application. [Figure 8] FIG. 2 is a configuration diagram (part 2) of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it should be understood that the described embodiments are only a part of the embodiments of the present application, and are not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without any creative efforts belong to the protection scope of the present application.
[0016] The terms "first", "second", etc. in the specification and claims of the present application are not intended to describe a particular order or sequence, but to distinguish between similar objects. It should be understood that the terms used in this manner may be substituted for each other where appropriate, so that the embodiments of the present application may be performed in an order other than that shown or described herein, and that the objects distinguished by "first" and "second" generally belong to one category, and the number of objects is not limited, for example, the first object may be one or more. In addition, in the specification and claims, "and / or" indicates at least one of the connected objects, and the symbol " / " generally indicates that the related objects before and after are in an "or" relationship.
[0017] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the program control method, program control device, electronic device, and readable storage medium provided in the embodiments of the present invention will be described in detail with reference to specific embodiments and application scenarios thereof with reference to the accompanying drawings.
[0018] As shown in FIG. 1, which is a flowchart of the program control method provided in the embodiment of the present application, the program control method may include the following steps 101, 102 and 103.
[0019] In step 101, a target widget of a target application is displayed, where the target widget includes at least one of a functional component and a module component.
[0020] In specific implementation, the target application may include one, two or more applications, and displaying the target widget corresponding to the target application may be displaying the target widget that corresponds to the application one-to-one, that is, different applications correspond to different target widgets, and one widget may be understood as a set of all components of one corresponding application, and the all components may specifically include at least one of a functional component and a module component, and in implementation, different functional components and module components can be regarded as different "atomic components".
[0021] It should be noted that the atomic component has the same meaning as the atomic component in the prior art, that is, the atomic component may include at least one of a functional component and a modular component, and each atomic component may have an associated function, module, page, or tab, etc. Specifically, a functional component is a component extracted and generated based on a main function of an application, such as a function such as play, up / down, or volume control in a music or video playback application, and a modular component is a component extracted and generated based on a page or tab in an application, such as a module such as a home page, shopping cart, or my account in a shopping application. In the prior art, when a user touches an atomic component, only its associated function or module is loaded, or its associated page is displayed. Here, a page may be specifically understood as a page associated with the atomic component in an application, or a page on which a function or module associated with the atomic component in an application exists.
[0022] The difference with the prior art is that the atomic components provided in the embodiments of the present application are associated with the load information and display information of their related functions, modules or pages, so that when a user operates an atomic component, the display status and load status of a module associated with the atomic component in an application can be updated. In addition, after a user deletes a module component of an application, when the application is launched, the module corresponding to the deleted module component will not be loaded, thus saving the execution and storage space of the application.
[0023] At step 102, a first input for the target widget is received.
[0024] In a specific implementation, receiving a first input for the target widget may be interpreted as receiving a first input for at least one atomic component in the target widget, and the first input may be a touch input performed by a user on an electronic device, for example, the first input may include at least one of a tap, a slide, and a long press touch input for the atomic component, which is used to adjust the display position of the atomic component, or associate the atomic component with other atomic components, or delete the atomic component, etc.
[0025] In step 103, in response to the first input, update display information of the target widget, and update display information and load information of the program interface of the target application, where the updated content of the display information and load information of the program interface of the target application is associated with the updated content of the display information of the target widget.
[0026] In a first aspect, updating the display information of the target widget may include updating the number, arrangement order, etc. of atomic components in the target widget based on the type of a first input and the atomic component that is the target of the first input, for example, canceling the display of a certain atomic component in the target widget when the first input is for deleting the certain atomic component, and displaying each atomic component in the target widget according to the rearranged order when the first input is for swapping the order of atomic component A and atomic component B.
[0027] In a second aspect, updating the display information of the program interface of the target application may include adjusting the display order of each page in the target application, adding or removing modules displayed in the target application interface, etc.
[0028] In a third aspect, updating the load information of the target application may include inhibiting loading of program code and data of modules corresponding to deleted atomic components in the target application.
[0029] In implementation, the above prohibition of loading program code and data of modules corresponding to deleted atomic components in the target application may be understood as, for example, loading only program code and data of modules corresponding to non-deleted atomic components in the target application.
[0030] The above-mentioned updating content of the display information and the load information of the program interface of the target application is associated with the updating content of the display information of the target widget, which may be understood as the display information of the atomic components displayed in the target widget being consistent with the display information and the load information of the program interface of the target application. For example, when releasing the display of the atomic component A in the target widget, the data of the module corresponding to the atomic component A is not loaded, and the display content of the module corresponding to the atomic component A is not displayed in the program interface of the target application.
[0031] Optionally, the first input includes an operation input for adjusting an arrangement order of components in the target widget; Updating the display information of the target widget and updating the display information and loading information of the program interface of the target application includes: Displaying each component in the target widget according to the adjusted order; and Loading data of modules in the target application, each corresponding to each component in the target widget, according to the adjusted order; and displaying, in the target application, display contents of modules corresponding to each component in the target widget according to the adjusted order.
[0032] In a specific implementation, the data of the above module may be data such as the program code, resources, etc. of the module, and the display content of the above module may be the page on which the module is displayed, the tab corresponding to the module, or the entry of the module, etc.
[0033] In this embodiment, the first input may be any operation for adjusting the arrangement order of components in the target widget, for example, sliding a first atomic component in the target widget into the display position of a second atomic component to swap the positions of the first atomic component and the second atomic component.
[0034] In addition, displaying the display contents of modules in the target application corresponding to each component in the target widget according to the adjusted order may also mean displaying each module, page or tab in the target application according to the same arrangement order as the atomic components in the target widget after the adjustment.
[0035] For example, as shown in Figures 2a and 2b, assuming that the default atomic components of a music playing application are arranged according to the order shown in the left diagram of Figure 2a, i.e., the third atomic component 201 associated with the "Discover" page 2011 is displayed at the top of the target widgets of the music playing application, when the music playing application is opened, the displayed home page is as shown in the left diagram of Figure 2b, i.e., the home page of the music playing application is the "Discover" page 2011 by default. After the user performs a first input to exchange and adjust the positions of the fourth atomic component 202 and the third atomic component 201 associated with the "Podcast" page 2021, i.e., after the position exchange, the atomic components of the music playing application are arranged according to the order shown in the right diagram of Figure 2a, and then, when the music playing application is opened, the displayed home page is as shown in the right diagram of Figure 2b, i.e., the home page of the music playing application is the "Podcast" page 2021 by default. In this way, the adjustment of the display order of the home page and pages of the application is realized.
[0036] Of course, in a specific implementation, the above-mentioned position-adjusted atomic components may be other atomic components than the atomic components associated with the home page.
[0037] In this embodiment, the user can easily customize the load order of each module in the application and the display position and order of each page.
[0038] Optionally, the first input includes an input for deleting a first module component in the target widget; Updating the display information of the target widget and updating the display information and loading information of the program interface of the target application includes: Deleting the first modular component; inhibiting loading of data of a module corresponding to the first module component in the target application; and removing a display content of a module corresponding to the first modular component in a program interface of the target application.
[0039] In a specific implementation, the prohibition of loading data of a module corresponding to the first module component in the target application may be understood as not loading data of a module corresponding to the first module component when the target application is launched. In implementation, if a certain atomic component of a target application is deleted by a first input, when the target application is launched, it can search in the background that the certain module component has been deleted, so that data of a module corresponding to the deleted module component is not loaded, and only data of a module corresponding to an undeleted atomic component is loaded.
[0040] Moreover, the first module component may specifically be some module components in the target widget. In practical application, different module components correspond to different executable files (e.g., dex files) in an application package (e.g., an application package (APK) in an Android system), and the executable files include all operation commands and execution data of the modules corresponding to the module components. In the related art, the internal code organization method of an application package (e.g., APK) is generally organized into different engineering based on the difference of modules or functions, and then the code of the different engineering is compiled and separated into different dex files. When the system launches the APK, it sequentially loads each dex file in a specific order.
[0041] In this embodiment, the first Module The prohibition of loading data of a module corresponding to a component may include the following: when opening an application, the system can determine which module each component of the application corresponds to and whether the component is deleted; if the component is deleted, the dex file or resource of the module corresponding to the component will not be loaded into memory when the application APK is launched, and the corresponding module in the application will not be loaded accordingly; when a user taps a module that is not loaded from the application interface, the dex file corresponding to the module will be dynamically loaded from the magnetic disk into memory.
[0042] For example, as shown in FIG. 2c, assuming that the default target widget of a music playback application includes five module components, namely, a “Podcast” component, a “Discover” component, a “My” component, a “Playlist” component and a “Cloud Village” component, the fifth atomic component 204 (i.e., the “Cloud Village” component) associated with the “Discover” page can be deleted by the above first input, so that after the fifth atomic component 204 is deleted, when the music playback application is launched again, the “Cloud Village” page will not be displayed in the interface of the music playback application.
[0043] The first program interface of the target application Module The above step of deleting the display contents of the module corresponding to the component is the first display content in the program interface of the target application. ModuleIt may be that the module corresponding to the component or the icon, entry, etc. of the module are not displayed. In practical application, the module that is not loaded may not be displayed in the application interface, so that the user cannot tap the module that is not loaded, and the application does not need to perform the process of dynamically loading the dex file corresponding to the module from the magnetic disk into the memory when the user taps the module that is not loaded.
[0044] In this embodiment, when one or several components in the target application are deleted, the data of the module corresponding to the component is not loaded when the target application is started, so that memory space can be saved. In addition, the display content of the module corresponding to the component is not displayed, so that the module corresponding to the component is hidden in the interface of the target application, so that the interface of the target application can be simplified.
[0045] In addition, if the first input includes at least one sub-input for deleting all module components in the target widget, the target application can be deleted from memory to save memory space, and only the functional components of the target application, such as previous song, next song, play, pause, etc., can be displayed on the desktop.
[0046] Optionally, the target widget includes at least one module component and at least one function component, and the first input includes at least one sub-input for deleting all module components in the target widget; Updating the display information of the target widget and updating the display information and loading information of the program interface of the target application includes: uninstalling the target application; and When a second user input is received for a first functional component of the at least one functional component, loading required data for the first functional component from a cloud server of the target application or launching a fast application corresponding to the first functional component.
[0047] It should be noted that the first input may be an input for deleting all modular components of the target application at once, or an input for deleting all modular components of the target application in multiple batches.
[0048] For example, as shown in FIG. 2d, assuming that only one module component (i.e., the “cloud village” component 204) remains in the target widget of a music playing application, the first input is for deleting the “cloud village” component 204. Thus, after deleting the “cloud village” component 204, only the function components 203 of the music playing application are displayed on the desktop. The function components 203 include playback, previous song, next song, and volume control, respectively. In this case, when the user taps one of the function components 203, the data required for the function component 203 is loaded from the cloud server of the music playing application to the function component 203, or a fast application (such as a mini program) corresponding to the function component 203 is launched.
[0049] In addition, the second input can be used to control the first functional component to execute a corresponding application function. For example, assuming that the first application is a music playing application, when a user taps the playing component, the music playing function of the music playing application can be executed by loading data required for the playing component from a cloud server of the music playing application, or by launching a fast application corresponding to the music playing application. Of course, other than the touch input of tapping, the second input can be other touch inputs to the first functional component, for example, the second input includes one or more of touch inputs such as long press, double tap, slide, etc. to the first functional component.
[0050] In this embodiment, when all module components of a target component are deleted, a target application corresponding to the target widget can be uninstalled to reduce memory consumption by the target application, and while uninstalling the target application, functional components of the target application are also reserved, so that when a user operates a first functional component among them, a function corresponding to the first functional component is executed based on data loaded from a cloud server of the target application or by launching a fast application corresponding to the first functional component.
[0051] What needs to be explained is that the first input is the first ModuleThe above embodiment including an input for deleting a component may be combined with the above embodiment in which the first input includes at least one sub-input for deleting all module components in the target widget, and in practical application, the first input for deleting all module components in the target widget may be combined with the above embodiment in which the first input includes at least one sub-input for deleting all module components in the target widget when launching the application by determining whether the module components still exist in the target application. Module prohibiting loading of data of a module corresponding to the component, and Module The method can determine whether to delete the display content of a module corresponding to the component, uninstall the target application, and when a second input from a user is received for a first functional component of the at least one functional component, load required data for the first functional component from a cloud server of the target application or launch a fast application corresponding to the first functional component.
[0052] For example, the program control method shown in FIG. 3 may include the following steps 301, step 302, step 303, step 304, step 305, step 306, step 307, and step 308.
[0053] In step 301, the functional components and module components in the application are extracted and displayed on the desktop as atomic components.
[0054] In step 302, modular atomic components are dragged to arrange the pages within the application.
[0055] In step 303, the atomic component is selected and deleted.
[0056] Specifically, in this step, the user may delete an atomic component by dragging the atomic component to a blank position.
[0057] In step 304, the user taps an application icon.
[0058] Specifically, this step may involve the user tapping on a functional component of the application, for example, the functional component 203 shown in FIG. 2d.
[0059] In step 305, it is determined whether any more modular atomic components exist.
[0060] In this step, if the determination result is "Yes", step 306 is executed, and if the determination result is "No", step 307 is executed.
[0061] In implementation, if the determination result of this step is "yes", it indicates that the atomic component deleted in step 303 is the last modular component of the application, or that all modular components of the application have been deleted.
[0062] In step 306, the modules corresponding to the deleted atomic components are not loaded and displayed.
[0063] In step 307, data is obtained from the cloud server of the application or the fast application is loaded.
[0064] Before this step, the method may further include a step of deleting the application from memory and displaying only the functional components of the application on the desktop, and step 304 may include tapping the functional components of the application.
[0065] In step 308, the application is launched and loaded according to the settings in the above steps.
[0066] Optionally, the target application includes a first application and a second application, the target widget includes a first widget of the first application and a second widget of the second application, and the first input is for associating a first module component in the first widget with the second application; updating display information and load information of the program interface of the target application; When launching the second application, loading data of the first module associated with the second application and the first module component; Displaying a module mark of the first module or a link entry of the first module in a target area of a program interface of the second application.
[0067] The first input may include one or more types of touch inputs such as a tap input, a slide input, and a character input, and is not specifically limited here.
[0068] In this embodiment, when the second application is launched, data of the first module associated with the second application and the first module component is loaded, and a module mark of the first module or a link entry of the first module is displayed in the target area of the program interface of the second application, thereby enabling one application to operate at least two applications. Thus, when a user needs to operate the at least two applications, there is no need to switch applications, improving the convenience of operating the applications.
[0069] In one optional embodiment, the first input may include an input of dragging the first module component into a display area of a second module component in the second widget, where a module type of the module corresponding to the second module component and a module corresponding to the first module component are the same.
[0070] In this embodiment, in response to the first input, the link entry of the first module may be displayed floating on the program interface of the second application, that is, in response to the first input, the target area may be determined to be a floating display area. For example, as shown in Figures 5a and 5b, assuming that the second application is a music playing application A and the third application is a music playing application B, when a user drags a "music room" component 501 associated with a "music room" module in the music playing application A into a target widget 502 of the music playing application B, and the user launches the music playing application B, the application interface 500 shown in Figure 5b can be displayed, which includes a link entry 503 of a module corresponding to the "music room" component 501, and when the user taps the link entry 503, the program interface of the "music room" module of the music playing application A can be displayed in the music playing application B. In this example, the first input is an input of dragging the first module component into the display area of the second module component in the second widget.
[0071] In a specific implementation, the target area is specifically a floating display area in the page where the module corresponding to the second module component exists, so that the link entry of the first module is displayed floating in the page where the module corresponding to the second module component exists, so that the similar modules of two different applications are displayed in the same application interface or even in the same page, so that the user can select or compare the similar functions of the two different applications.
[0072] In this embodiment, similar functions of different applications can be associated with each other by the first input.
[0073] In another optional embodiment, the first input may include an input for dragging the first module component into a component display area of the second widget.
[0074] In this embodiment, in response to the first input, a module mark of the first module may be displayed in the menu bar of the program interface of the second application, that is, in response to the first input, the target area may be determined to be the menu bar. For example, as shown in Fig. 5a and Fig. 5d, assuming that the first application is a music playing application A and the second application is a music playing application B, when a user drags a "music room" component 501 associated with the "music room" module in the music playing application A into a target widget 502 of the music playing application B and the user launches the music playing application B, an application interface 500 shown in Fig. 5d can be displayed, in which a module mark corresponding to the "music room" component 501 is included in a menu bar 504 in the application interface, and when the user taps the module mark, the "music room" module of the music playing application A can be opened in the music playing application B. In this example, the first input is an input of dragging the first module component into a component display area of the second widget.
[0075] Compared with the previous optional embodiment, in this embodiment, the user does not need to determine the position of a second module component having similar function corresponding to a first module component before performing a slide input, and can achieve associating the first module component in the first widget with the second application by simply sliding the first module component directly into the second widget, and the operation complexity is lower.
[0076] It should be noted that, for the first input, in addition to the above two embodiments, an additional button or component may be displayed on the target widget or application icon, and when the additional button is tapped, the atomic components of other applications can be added to the current application, so as to realize the association of the atomic components of other applications with the current application; or a search window component may be added to the target widget or application icon, and when the search window is tapped and the name of the corresponding application and the name of the atomic component are input, the atomic components that match the names of the atomic components in other applications can be searched, and then the searched atomic components can be selected and added to the current application, so as to realize the association of the atomic components of other applications with the current application. Here, the input method and specific process of the first input are not limited.
[0077] And the display manner and display position of the module mark of the first module or the link entry of the first module in the program interface of the second application may be adjusted according to the user's operation. For example, as shown in Fig. 5c, when the user receives a link entry 503 corresponding to the floating-displayed music room component dragged to the menu bar 504 in the application interface shown in Fig. 5c, a module mark 5041 associated with the music room component can be generated in the menu bar 504, so that when the user taps the module mark 5041, the music playback application A is launched, and a page 505 corresponding to the music room component of the music playback application A is displayed.
[0078] Of course, the target area may be a display area near a module corresponding to a second module component in the program interface of the second application, in addition to the menu bar and floating display area. For example, as shown in FIG. 5e and FIG. 5f, assuming that the first application is a shopping application A and the second application is a shopping application B, when the search component of the shopping application A is associated with the shopping application B, the second search window 507 of the shopping application A can be displayed near the first search window 506 of the shopping application B, and the user inputs search content in at least one of the first search window 506 and the second search window 507 to search for products. In addition, when corresponding search results are obtained in each of the shopping application A and the shopping application B, the search results of the shopping application A and the shopping application B may be displayed in the same area, and the search results of the shopping application A and the search results of the shopping application B are displayed separately. For example, as shown in FIG. 5f, a mark 508 of the shopping application A is displayed on the search results of the shopping application A, so that it is easier to compare the search results of different applications when searching for products. Of course, in this embodiment, the search results of the shopping application A and the shopping application B may be displayed in different areas, such as in separate columns, and this is not described in detail here.
[0079] It should be noted that the specific process of loading the data of the first module associated with the second application and the first module component can refer to the process of loading the data of the module corresponding to the undeleted component in the target application in the previous embodiment, and will not be described in detail here.
[0080] In this embodiment, by associating a first module component in the first widget with the second application, when the second application is launched, data of the first module associated with the second application and the first module component is loaded, and a module mark of the first module or a link entry of the first module can be displayed in a target area of a program interface of the second application. Thus, in addition to the module of the second application being displayed in the program interface of the second application, the module mark of the first module associated with the first module component or the link entry of the first module can also be additionally displayed. This makes it possible to incorporate a module of the first application into the second application, and to operate at least two applications with one application. Thus, when a user needs to operate the at least two applications, there is no need to switch applications, improving the convenience of operating the applications.
[0081] In the program control method provided in the embodiment of the present application, a target widget of a target application is displayed, the target widget includes at least one of a function component and a module component, and a first input is received for the target widget, and in response to the first input, the display information of the target widget is updated, and the display information and loading information of the program interface of the target application are updated, where the updated content of the display information and loading information of the program interface of the target application is associated with the updated content of the display information of the target widget. In this way, the loading information and display information of the target application can be adjusted through the operation on the target widget, for example, the trimming and merging of functions and modules in the target application are realized, and the loading and display are performed according to the functions and modules after the trimming and merging, so that the display information and loading information of the target application are more diversified, and thus the flexibility of the display content and loading content of the application is improved.
[0082] 4, which is a flow chart of another program control method provided in the embodiment of the present application, the another program control method is similar to the program control method in the method embodiment shown in FIG. 1, and the difference between them is that in the method embodiment shown in FIG. 4, a new combined application can be generated through operations on the target widgets of different applications, and the combined application can have all the functions of the different applications. Specifically, as shown in FIG. 4, the another program control method provided in the method embodiment may include the following steps 401, 402, 403, 404, 405, and 401.
[0083] In step 401, a target widget of a target application is displayed, the target widget including at least one of a functional component and a module component, the target application includes a third application and a fourth application, and the target widget includes a third widget of the third application and a fourth widget of the fourth application.
[0084] At step 402, a first input for the target widget is received, the first input being for associating all components in the third widget with the fourth application.
[0085] At step 403, in response to the first input, a combined application is generated based on the third application and the fourth application.
[0086] At step 404, in response to the first input, generate a combination widget based on the third widget and the fourth widget, where the combination widget includes all components in the third widget and all components in the fourth widget.
[0087] In step 405, when the combination application is launched, data of modules corresponding to all components in the third widget and data of modules corresponding to all components in the fourth widget are loaded.
[0088] In step 406, display contents of modules corresponding to all the components in the third widget and modules corresponding to all the components in the fourth widget on a program interface of the combined application.
[0089] In a specific implementation, the first input for associating all components in the third widget with the fourth application may refer to the explanation of the first input for associating the first module component in the first widget with the second application in the previous embodiment of this application, and the detailed description is omitted here. In addition, this embodiment can directly display the interface of another application in one application, and realize a convenient manner of combining two applications, and this embodiment can also be combined with the embodiments in the previous embodiment to realize function combination, interface arrangement and customization between different applications, etc.
[0090] In a specific implementation, when the combination application is launched, the above loading data of modules corresponding to all components in the third widget and modules corresponding to all components in the fourth widget may be understood as launching the third application and the fourth application in the background, and loading data of modules corresponding to all atomic components of the third application and all atomic components of the fourth application, respectively. For example, the system is responsible for launching original applications (the third application and the fourth application) corresponding to the atomic components in the combination widget of the combination application, and loading dex files to which modules corresponding to each atomic component in the combination widget belong into memory, that is, launching modules required for multiple applications.
[0091] Then, after generating the combination widget, each atomic component in the combination widget can be arranged in a preset order, which may be a system default order or an order generated according to some rule, for example, placing atomic components corresponding to similar types of modules in the combination widget close to each other, or placing atomic components of the same application close to each other, etc.
[0092] On this basis, the display contents of modules corresponding to all components in the third widget and modules corresponding to all components in the fourth widget on the program interface of the combination application may be understood as follows: the system provides an intermediate layer between the third application and the fourth application, and the intermediate layer is further covered by a final display layer, so that after displaying the interface of application A, when the user taps an atomic component originally belonging to another application B, the module corresponding to the atomic component runs in the background, and then transmits the calculation result and screen to the intermediate layer, and the intermediate layer simply arranges or dynamically mixes these result pages and the currently displayed page of application A through the intermediate layer, and transmits the result to the final display layer, and the final display layer determines the drawing and display manner of the screen. For example, the modules in the combination application may be arranged and displayed in a default manner or in a manner customized by the user, where arranging in a default manner may be understood as pre-storing a default arrangement rule, and if the user does not customize the arrangement manner, the modules in the combination application may be arranged and displayed according to the pre-stored default arrangement rule.
[0093] In this embodiment, when all atomic components of a third application are associated with a fourth application, a new application can be generated based on the third application and the fourth application so as to have all the functions of the third application and the fourth application.
[0094] It should be noted that the method embodiment shown in Fig. 4 may be further combined with the method embodiment shown in Fig. 1. For example, a module corresponding to the module component of the sixth application or even the seventh application may be displayed in the interface of the application, thereby realizing the combination, trimming, arrangement and customization of functions of different applications, which will not be described in detail here.
[0095] Another program control method provided in an embodiment of the present application can generate a combined application having all the functions of two different applications, so that the pages of the at least two applications can be displayed in the interface of one application, so that when a user needs to open at least two applications, he or she only needs to open the combined application that combines the at least two applications, thereby avoiding the user from launching the at least two applications and switching between the at least two applications.
[0096] It should be noted that the execution subject of the program-controlled method provided in the embodiment of the present application may be a program-controlled device, or a control module for executing the program-controlled method in the program-controlled device. In the embodiment of the present application, the program-controlled device provided in the embodiment of the present application will be described by taking the program-controlled device executing the program-controlled method as an example.
[0097] As shown in FIG. 6, which is a block diagram of a program control device provided in an embodiment of the present application, the program control device 600 includes a display module 601, a receiving module 602, and an update module 603.
[0098] The display module 601 is used to display a target widget of a target application, where the target widget includes at least one of a functional component and a module component.
[0099] The receiving module 602 is used for receiving a first input for the target widget.
[0100] The update module 603 is used to respond to the first input, update the display information of the target widget, and update the display information and load information of the program interface of the target application, where the updated content of the display information and load information of the program interface of the target application is associated with the updated content of the display information of the target widget.
[0101] Optionally, the first input includes an operation input for deleting a first module component in the target widget; The update module 603 is a first deletion unit for deleting the first modular component; a prohibition unit for prohibiting loading of data of a module corresponding to the first module component in the target application; and a second deletion unit for deleting the display content of the module corresponding to the first module component in the program interface of the target application.
[0102] Optionally, the target widget includes at least one module component and at least one function component, and the first input includes at least one sub-input for deleting all module components in the target widget; The update module 603 is an uninstallation unit for uninstalling the target application; and a first loading unit for, when receiving a second user input for a first functional component of the at least one functional component, loading required data for the first functional component from a cloud server of the target application or launching a fast application corresponding to the first functional component.
[0103] Optionally, the target application includes a first application and a second application, the target widget includes a first widget of the first application and a second widget of the second application, and the first input is for associating a first module component in the first widget with the second application; The update module 603 is a second loading unit for loading data of the second application and a first module associated with the first module component when launching the second application; a first display unit for displaying a module mark of the first module or a link entry of the first module in a target area of a program interface of the second application.
[0104] Optionally, the first input includes an input for dragging the first module component into a component display area of the second widget; Or, the first input includes an input of dragging the first module component into a display area of a second module component in the second widget, where the module type of the module corresponding to the second module component and the module corresponding to the first module component are the same.
[0105] Optionally, the target application includes a third application and a fourth application, the target widget includes a third widget of the third application and a fourth widget of the fourth application, and the first input is for associating all components in the third widget with the fourth application; The update module 603 is a first generating unit for generating a combined application based on the third application and the fourth application; a second generating unit for generating a combination widget based on the third widget and the fourth widget, the combination widget including all components in the third widget and all components in the fourth widget; a third loading unit for loading data of modules corresponding to all components in the third widget and modules corresponding to all components in the fourth widget when the combination application is started; and a second display unit for displaying display contents of modules corresponding to all the components in the third widget and modules corresponding to all the components in the fourth widget in a program interface of the combination application.
[0106] The program control device 600 provided in the embodiment of the present application can realize each process of the method embodiment shown in Figure 1, Figure 3 or Figure 4, and can obtain the same beneficial effects as the method embodiment shown in Figure 1, Figure 3 or Figure 4. In order to avoid repetition, detailed description is omitted here.
[0107] The program control device in the embodiment of the present application may be a device, a component in a terminal, an integrated circuit or a chip. The device may be a portable electronic device or a non-portable electronic device. For example, the portable electronic device may be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-portable electronic device may be a network attached storage (NAS), a personal computer (PC), a television (TV), an automated teller machine or a kiosk, etc., and is not specifically limited in the embodiment of the present application.
[0108] The program control device in the embodiment of the present application may be a device having an operating system, which may be an Android operating system, an ios operating system, or other possible operating systems, and is not specifically limited in the embodiment of the present application.
[0109] The program control device provided in the embodiment of the present application can realize each process implemented in the method embodiment of Figure 1, Figure 3 or Figure 4. In order to avoid repetition, detailed description is omitted here.
[0110] Optionally, as shown in Fig. 7, the embodiment of the present application further provides an electronic device 700. The electronic device includes a processor 701, a memory 702, and a program or command stored in the memory 702 and executable on the processor 701, and when the program or command is executed by the processor 701, each process of the embodiment of the program control method shown in Fig. 1, Fig. 3 or Fig. 4 is realized, and the same technical effect can be achieved. In order to avoid repetition, detailed description is omitted here.
[0111] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned portable electronic devices and non-portable electronic devices.
[0112] FIG. 8 is a schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application.
[0113] The electronic device 800 includes components such as, but not limited to, a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
[0114] Those skilled in the art can understand that the electronic device 800 may further include a power source (e.g., a battery) that supplies electricity to each component, and the power source is logically connected to the processor 810 by a power management system, so that the power management system can realize functions such as charge / discharge management and power consumption management. The structure of the electronic device shown in FIG. 8 does not limit the electronic device, and the electronic device may include more or fewer components than those shown, or a combination of some components, or a different component arrangement, and detailed description thereof will be omitted here.
[0115] Here, the display unit 806 is used to display a target widget of a target application, where the target widget includes at least one of a functional component and a module component.
[0116] The user input unit 807 is used to receive a first input for the target widget.
[0117] A processor 810 is used to respond to the first input, update display information of the target widget, and update display information and load information of a program interface of the target application.
[0118] Here, the updated contents of the display information and the load information of the program interface of the target application are associated with the updated contents of the display information of the target widget.
[0119] Optionally, the first input includes an input for deleting a first module component in the target widget; The processor 810 executes updating the display information of the target widget and updating the display information and load information of the program interface of the target application, Deleting the first modular component; inhibiting loading of data of a module corresponding to the first module component in the target application; and removing a display content of a module corresponding to the first modular component in a program interface of the target application.
[0120] Optionally, the target widget includes at least one module component and at least one function component, and the first input includes at least one sub-input for deleting all module components in the target widget; The processor 810 executes updating the display information of the target widget and updating the display information and load information of the program interface of the target application, uninstalling the target application; and When a second user input is received for a first functional component of the at least one functional component, loading required data for the first functional component from a cloud server of the target application or launching a fast application corresponding to the first functional component.
[0121] Optionally, the target application includes a first application and a second application, the target widget includes a first widget of the first application and a second widget of the second application, and the first input is for associating a first module component in the first widget with the second application; The processor 810 executes updating display information and load information of the program interface of the target application, loading, by a processor 810, data of a first module associated with the second application and the first module component when launching the second application; and displaying, by a display unit 806, a module mark of the first module or a link entry of the first module in a target area of a program interface of the second application.
[0122] Optionally, the first input includes an input for dragging the first module component into a component display area of the second widget; Or, the first input includes an input of dragging the first module component into a display area of a second module component in the second widget, where the module type of the module corresponding to the second module component and the module corresponding to the first module component are the same.
[0123] Optionally, the target application includes a third application and a fourth application, the target widget includes a third widget of the third application and a fourth widget of the fourth application, and the first input is for associating all components in the third widget with the fourth application; The processor 810 executes updating the display information of the target widget and updating the display information and load information of the program interface of the target application, generating a combination application based on the third application and the fourth application; generating a combination widget based on the third widget and the fourth widget, the combination widget including all components in the third widget and all components in the fourth widget; When launching the combined application, loading data of modules corresponding to all components in the third widget and modules corresponding to all components in the fourth widget; and controlling a display unit 806 to display, in a program interface of the combination application, display contents of modules corresponding to all the components in the third widget and modules corresponding to all the components in the fourth widget.
[0124] The electronic device provided in the embodiment of the present application can realize each process of the embodiment of the program-controlled method shown in Figure 1, Figure 3 or Figure 4, and can obtain the same beneficial effects as the embodiment of the program-controlled method shown in Figure 1, Figure 3 or Figure 4. In order to avoid repetition, detailed description is omitted here.
[0125] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processing unit (GPU) for processing image data of static or video captured by an image capture device (e.g., a camera) in a video capture mode or an image capture mode, and a microphone. The display unit 806 may include a display panel, which may be arranged in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel and other input devices. The touch panel is also called a touch screen. The touch panel may include two parts: a touch detection device and a touch controller. The other input devices may include, but are not limited to, a physical keyboard, a function button (e.g., a volume control button, a switch button, etc.), a trackball, a mouse, and a control lever, and detailed description thereof is omitted here. The memory 809 may be used to store software programs and various data, including but not limited to applications and an operating system. The processor 810 may be integrated with an application processor that mainly processes the operating system, user interface, applications, etc., and a modem processor that mainly processes wireless communication. It can be appreciated that the modem processor need not be integrated into processor 810 .
[0126] The embodiment of the present application further provides a readable storage medium. The readable storage medium may be non-volatile or volatile. The readable storage medium stores a program or command, and when the program or command is executed by a processor, each process of the embodiment of the program control method shown in FIG. 1, FIG. 3 or FIG. 4 is realized, and the same technical effect can be achieved. In order to avoid repetition, detailed description is omitted here.
[0127] Here, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0128] An embodiment of the present application further provides a computer program product. The computer program product is stored in a non-transitory storage medium. The computer program product can be executed by at least one processor to realize each process of the embodiment of the program control method shown in Figure 1, Figure 3 or Figure 4, and achieve the same technical effect. In order to avoid repetition, detailed description is omitted here.
[0129] The embodiments of the present application separately provide a chip, which includes a processor and a communication interface, and the communication interface and the processor are coupled to each other, and the processor executes programs or commands to realize each process of the embodiments of the program control method shown in Figure 1, Figure 3 or Figure 4, and can achieve the same technical effects. In order to avoid repetition, detailed descriptions are omitted here.
[0130] It should be understood that the chips referred to in the embodiments of this application may be referred to as system level chips, system chips, chip systems, or systems on chips, and the like.
[0131] It should be noted that in this specification, the terms "comprise", "consist of" or any other variations are intended to include a non-exclusive inclusion, whereby a process, method, article, or apparatus that includes a set of elements includes not only those elements, but also other elements not expressly stated or inherent to such process, method, article, or apparatus. Unless otherwise specified, an element limited by the phrase "comprises a" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element. It should also be noted that the scope of the method and apparatus in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may include performing functions substantially simultaneously or in the reverse order depending on such functions, for example, the described method may be performed in a different order than described, and various steps may be added, omitted, or combined. Also, features described with reference to any example may be combined in other examples.
[0132] From the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be realized in the form of a combination of software and a necessary common hardware platform, and of course, they can be realized by hardware, but in many cases the former is a more preferred embodiment. Based on this view, the technical solution of the present application can be substantially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM / RAM, magnetic disk, optical disk) and includes a number of commands that cause a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present application.
[0133] Although the examples of the present application have been described above with reference to the drawings, the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative and not limiting. Based on the suggestions of the present application, many forms that a person skilled in the art can make without departing from the spirit of the present application and the scope of protection of the claims are all within the scope of protection of the present application.
Claims
1. displaying a target widget of a target application, the target widget including at least one of a functional component and a modular component; receiving a first input for the target widget; updating display information of the target widget and updating display information and load information of a program interface of the target application in response to the first input; The program control method, wherein the update of display information and load information of the program interface of the target application is associated with the update of display information of the target widget.
2. the first input includes an input to delete a first module component in the target widget; The step of updating the display information of the target widget and updating the display information and loading information of the program interface of the target application includes: deleting the first modular component; inhibiting loading of data of a module corresponding to the first module component in the target application; and removing a representation of a module corresponding to the first modular component in a program interface of the target application.
3. the target widget includes at least one module component and at least one functional component, and the first input includes at least one sub-input for deleting all module components in the target widget; The step of updating the display information of the target widget and updating the display information and loading information of the program interface of the target application includes: uninstalling the target application; The method of claim 1, further comprising: when receiving a second user input for a first functional component of the at least one functional component, loading required data for the first functional component from a cloud server of the target application or launching a fast application corresponding to the first functional component.
4. the target application includes a first application and a second application, the target widget includes a first widget of the first application and a second widget of the second application, and the first input is for associating a first module component in the first widget with the second application; said step of updating display and load information of a program interface of said target application further comprising: when launching the second application, loading data of a first module associated with the second application and the first module component; The method of claim 1 , further comprising the step of: displaying a module mark of the first module or a link entry of the first module in a target area of a program interface of the second application.
5. the first input includes an input for dragging the first module component to a component display area of the second widget; Alternatively, the method of claim 4, wherein the first input includes an input of dragging the first module component into a display area of a second module component in the second widget, and the module type of the module corresponding to the second module component and the module corresponding to the first module component are the same.
6. the target applications include a third application and a fourth application, the target widgets include a third widget of the third application and a fourth widget of the fourth application, and the first input is for associating all components in the third widget with the fourth application; The step of updating the display information of the target widget and updating the display information and loading information of the program interface of the target application includes: generating a combined application based on the third application and the fourth application; generating a combination widget based on the third widget and the fourth widget, the combination widget including all components in the third widget and all components in the fourth widget; When launching the combined application, loading data of modules corresponding to all components in the third widget and modules corresponding to all components in the fourth widget; The method of claim 1 , further comprising: displaying display contents of modules corresponding to all components in the third widget and modules corresponding to all components in the fourth widget in a program interface of the combined application.
7. a display module for displaying a target widget of a target application, the target widget including at least one of a functional component and a modular component; a receiving module for receiving a first input for the target widget; an update module responsive to the first input for updating display information of the target widget and updating display information and load information of a program interface of the target application; The program control device, wherein the update of display information and load information of the program interface of the target application is associated with the update of display information of the target widget.
8. The first input includes an operation input for deleting a first module component in the target widget; The update module includes: a first deletion unit for deleting the first modular component; a prohibition unit for prohibiting loading of data of a module corresponding to the first module component in the target application; The apparatus of claim 7 , further comprising: a second deletion unit for deleting a display content of a module corresponding to the first module component in a program interface of the target application.
9. the target widget includes at least one module component and at least one functional component, and the first input includes at least one sub-input for deleting all module components in the target widget; The update module includes: an uninstallation unit for uninstalling the target application; The apparatus of claim 7, further comprising: a first loading unit for loading required data to the first functional component from a cloud server of the target application or launching a fast application corresponding to the first functional component when a second user input to a first functional component of the at least one functional component is received.
10. the target application includes a first application and a second application, the target widget includes a first widget of the first application and a second widget of the second application, and the first input is for associating a first module component in the first widget with the second application; The update module includes: a second loading unit for loading data of the second application and a first module associated with the first module component when launching the second application; 8. The device according to claim 7, further comprising: a first display unit for displaying a module mark of the first module or a link entry of the first module in a target area of a program interface of the second application.
11. the first input includes an input for dragging the first module component to a component display area of the second widget; Alternatively, the first input includes an input of dragging the first module component into a display area of a second module component in the second widget, and the module type of the module corresponding to the second module component and the module corresponding to the first module component are the same.
12. the target applications include a third application and a fourth application, the target widgets include a third widget of the third application and a fourth widget of the fourth application, and the first input is for associating all components in the third widget with the fourth application; The update module includes: a first generating unit for generating a combined application based on the third application and the fourth application; a second generating unit for generating a combination widget based on the third widget and the fourth widget, the combination widget including all components in the third widget and all components in the fourth widget; a third loading unit for loading data of modules corresponding to all components in the third widget and modules corresponding to all components in the fourth widget when the combination application is started; The device according to claim 7, further comprising: a second display unit for displaying display contents of modules corresponding to all components in the third widget and modules corresponding to all components in the fourth widget in a program interface of the combined application.
13. An electronic device comprising a processor, a memory, and a program or command stored in the memory and executable on the processor, the program or command realizing steps of the program control method according to any one of claims 1 to 6 when the program or command is executed by the processor.
14. A readable storage medium having stored thereon a program or command that, when executed by a processor, implements the steps of the program control method according to any one of claims 1 to 6.
15. A chip comprising a processor and a communication interface, the communication interface and the processor being coupled to each other, the processor executing programs or commands to implement the steps of the program control method of any one of claims 1 to 6.
Citation Information
Patent Citations
Character translation method and device, storage medium and electronic equipment
CN111401323A
Program control method and device, electronic equipment and readable storage medium
CN113325986A
Method and electronic device for displaying UI components
JP2022523989A
Method for operating an intelligent interactive tablet, storage medium and related device
JP2022529118A
Method for providing user interface with widget function terminal and system
KR1020110100988A
