A generation method and an electronic device
By obtaining the movement trajectory of application icons in smart terminals and automatically generating folders based on whether they meet the conditions of closure or penetration, the problem of cumbersome folder generation operations in existing technologies is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2026-01-19
- Publication Date
- 2026-05-26
AI Technical Summary
When creating a folder on the front-end human-computer interaction display panel of a smart terminal, existing technologies require multiple steps, resulting in a poor user experience.
By responding to user movement of application icons, the system obtains movement trajectories and automatically marks and generates folders containing multiple application icons when closure or penetration conditions are met, simplifying the operation process.
It enables the creation of folders containing multiple application icons with a single drag-and-drop operation, reducing the complexity of operations and improving the user experience.
Smart Images

Figure CN122086282A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart terminal technology, and in particular to a generation method and an electronic device. Background Technology
[0002] Currently, creating a folder on the application icon display panel of a smart terminal requires multiple steps. Users either have to drag one application icon onto another to create a folder and then add new application icons to it, or click on multiple application icons and then click "create folder." This results in multiple operations required to create a folder containing multiple application icons, making the process cumbersome and leading to a poor user experience on smart terminals. Summary of the Invention
[0003] This application provides a generation method, an electronic device, a computer-readable storage medium, and a computer program product.
[0004] The technical solution of this application embodiment is implemented as follows: In a first aspect, embodiments of this application provide a generation method, the method comprising: In response to a movement operation on a first application icon, the movement trajectory corresponding to the movement operation is obtained; Determine that the movement trajectory meets the target conditions, and obtain at least one second application icon marked on the movement trajectory; Generate a target folder containing the first application icon and at least one second application icon.
[0005] Secondly, embodiments of this application provide a logic block diagram of a generation apparatus, the apparatus comprising: The first acquisition module is used to obtain the movement trajectory corresponding to the movement operation in response to the movement operation on the first application icon. The second acquisition module is used to determine that the movement trajectory meets the target conditions and obtain at least one second application icon marked on the movement trajectory. The generation module is used to generate a target folder containing a first application icon and at least one second application icon.
[0006] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the program to implement the generation method described above.
[0007] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the generation method provided in embodiments of this application when executed by a processor.
[0008] Fifthly, embodiments of this application provide a computer program product, including a computer program or computer executable instructions, which, when executed by a processor, implement the generation method provided in embodiments of this application. Attached Figure Description
[0009] Figure 1 This is a flowchart illustrating a generation method provided in an embodiment of this application. Figure 1 ; Figure 2 This is a flowchart illustrating a generation method provided in an embodiment of this application. Figure 2 ; Figure 3 This is a flowchart illustrating a generation method provided in an embodiment of this application. Figure 3 ; Figure 4 This is a flowchart illustrating a generation method provided in an embodiment of this application. Figure 4 ; Figure 5 This is a flowchart illustrating a generation method provided in an embodiment of this application. Figure 5 ; Figure 6 This is a schematic diagram of a display page provided in an embodiment of this application; Figure 7 This is a logic block diagram of a generation device provided in an embodiment of this application; Figure 8 This is a schematic diagram of the hardware entity of an electronic device provided in an embodiment of this application. Detailed Implementation
[0010] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0011] To address the issue that the process of generating a folder containing multiple application icons is too cumbersome, this application provides a generation method. Figure 1 This application provides a flowchart illustrating the interaction of a generation method, which is applied to the control center or processor of a smart terminal. Figure 1 As shown, this method can be implemented through S101 to S103: S101, in response to a movement operation on the first application icon, obtain the movement trajectory corresponding to the movement operation.
[0012] In the embodiments of this application, the first application icon can be any independent application icon or folder application icon in the smart terminal. An independent application icon refers to an application icon that can be launched directly by clicking the icon. For example, it can be a music icon, calendar icon, calculator icon, etc. on common smart terminals such as mobile phones, tablets, and smartwatches.
[0013] In the embodiments of this application, when a user moves the first application icon, they can first perform a long press operation on the first application icon. When the first application icon responds to the long press operation and enters a picked-up state, the touch point of the long press operation can be moved to form a movement operation, thereby moving the first application icon. As the first application icon moves following the movement operation, a movement trajectory can be formed. In this way, the control center or processor of the smart terminal can obtain the movement trajectory corresponding to the movement operation. In addition, to increase the user's recognition of the movement trajectory of the first application icon, the movement trajectory can be displayed on the mobile terminal. Furthermore, considering that the first application icon has a certain size, its actual dragging trajectory is a bar area. Therefore, a relatively recognizable feature point in the application icon (such as the center point, corner point, or the trigger point of picking up the application icon) can be taken as the determination point of the movement trajectory. When generating and displaying the movement trajectory of the first application icon, only the movement trajectory of the feature point is generated and displayed.
[0014] S102, determine that the movement trajectory meets the target conditions, and obtain at least one second application icon marked on the movement trajectory.
[0015] In the embodiments of this application, the movement trajectory formed by the user dragging the first application icon can be used to mark other application icons. When the marking is successful, the target condition is met. That is, the target condition can characterize the conditions for successfully marking an application icon. For example, when the movement trajectory successfully circles at least one application icon or successfully penetrates at least one application icon, it can be considered a successful marking. When the movement trajectory meets the above target condition, at least one second application icon marked by the movement trajectory can be obtained. The second application icon can be an application icon other than the first application icon. For example, if the first application icon is a music application icon, the second application icon can be a chat software application icon, an office software application icon, a video application icon, etc. It should be noted that the second application icon can also be a clone icon formed by an application clone.
[0016] In one possible embodiment, the state of the movement trajectory can be determined before determining at least one second application icon marked on the movement trajectory. When the movement trajectory no longer changes over a period of time, the movement operation on the first application icon is considered terminated, at which point at least one second application icon marked on the movement trajectory can be determined.
[0017] S103, Generate a target folder containing a first application icon and at least one second application icon.
[0018] In embodiments of this application, after determining at least one second application icon marked by the movement trajectory, the first application icon and the at least one second application icon can be placed in a folder to generate a new target folder. The name of the target folder can be a default name or a folder name generated based on the application attributes corresponding to the first and second application icons, respectively. The location of the target folder can be the initial position of the first application icon, the ending position of the first application icon's movement, or a preset application icon position near the ending position.
[0019] In one possible embodiment, the target folder icon may be the same size as the preset application icon; the folder background may be transparent and may display a thumbnail of at least one application icon contained therein.
[0020] Based on the above embodiments disclosed in this application, at least one second application icon can be marked by dragging the movement trajectory formed by the first application icon, and both the first and second application icons can be placed into the newly generated target folder. This greatly simplifies the folder generation process. Users can put multiple application icons into a folder by dragging once, which can reduce the cumbersomeness of folder generation to a certain extent and improve the user experience.
[0021] In some embodiments, the target condition may include a closure condition or a penetration condition, and S102 may include one of S121 and S122: S121, Determine that the movement trajectory meets the closure condition, and determine the application icon enclosed by the movement trajectory as the second application icon.
[0022] In the embodiments of this application, the closure condition can refer to the movement trajectory forming at least one closed shape. In the closure condition, it is not necessary for the starting and ending points of the movement trajectory to completely coincide. Considering that users cannot normally draw two completely identical movement trajectories, if the movement trajectories have intersecting points, it can be considered that the movement trajectory forms a closed shape.
[0023] In the embodiments of this application, the closure condition can refer to the movement trajectory forming at least one approximately closed shape. In the closure condition, it is not necessary for the starting and ending points of the movement trajectory to completely coincide; it is sufficient as long as the arc of the movement trajectory exceeds 270 degrees.
[0024] In the embodiments of this application, if the movement trajectory meets the closure condition, it means that the user wants to mark the icon in a way that surrounds the icon. At this time, the application icon surrounded by the movement trajectory can be determined as the second application icon.
[0025] S122, Determine that the movement trajectory meets the penetration condition, and determine the application icon that the movement trajectory passes through as the second application icon.
[0026] In the embodiments of this application, the penetration condition can refer to the movement trajectory passing through an application icon. Compared to the closure condition, the content setting of the penetration condition is much simpler. When the movement trajectory meets the penetration condition, the application icon passed through by the movement trajectory can be identified as the second application icon.
[0027] In one possible embodiment, considering that the movement trajectory may penetrate some application icons when forming a closed shape, but when the movement trajectory forms a closed shape, the user's intention is to circle and surround the icons, not to penetrate them. Therefore, it is possible to first determine whether the movement trajectory meets the closure condition. If the closure condition is met, it is no longer necessary to determine whether the movement trajectory meets the penetration condition. If the closure condition is not met, it is necessary to determine whether the movement trajectory meets the penetration condition. If the movement trajectory meets neither the closure condition nor the penetration condition, then the movement trajectory is an invalid trajectory, and the first application icon can be restored to its position before the movement.
[0028] In one possible embodiment, only one target condition (i.e., a closing condition or a penetration condition) can be set in the smart terminal to simplify the process of generating folders.
[0029] Based on the above embodiments disclosed in this application, target conditions can be constructed through closure conditions and / or penetration conditions, and the second application icon marked by the movement trajectory can be determined through the above two conditions, which can improve the marking accuracy of the second application icon of the movement trajectory to a certain extent.
[0030] In some embodiments, "determining that the movement trajectory satisfies the closure condition" in S121 can be achieved through step A1: Step A1: If the movement trajectory forms at least one closed area, and at least one closed area includes at least one application icon, then the movement trajectory is determined to meet the closure condition.
[0031] In the embodiments of this application, considering that the closed area formed by the movement trajectory may not contain any application icons, which may be caused by user error, an additional determination can be made based on the formation of a closed area: whether the closed area contains at least one application icon. If the movement trajectory forms at least one closed area, and at least one closed area contains at least one application icon, then the movement trajectory can be determined to meet the closure condition.
[0032] In some embodiments, "determining that the movement trajectory satisfies the penetration condition" in S122 can be achieved through step B1: Step B1: If the movement trajectory does not form a closed area, determine that the movement trajectory meets the penetration condition.
[0033] In the embodiments of this application, if the movement trajectory does not form a closed area, it can be determined that the movement trajectory meets the penetration condition.
[0034] In one possible embodiment, when the penetration condition is determined to be met in this way, the movement trajectory may not have marked any application icon through penetration. In this case, the movement trajectory is invalid, and the first application icon can be restored to its position before the movement.
[0035] In one possible embodiment, to improve the accuracy of determining whether a movement trajectory meets the penetration condition, additional conditions can be added. For example, one way to determine this is: if the movement trajectory does not form a closed area and penetrates at least one application icon, then the movement trajectory can be determined to meet the penetration condition.
[0036] In one possible embodiment, it can be prioritized to determine whether the movement trajectory meets the closure condition. If the closure condition is not met, and the movement trajectory does not form a closed area, then the movement trajectory can be determined to meet the penetration condition.
[0037] Based on the above embodiments disclosed in this application, it is possible to determine whether the movement trajectory meets the closure condition or the penetration condition by whether the movement trajectory forms a closed area and whether the closed area contains an application icon, which can improve the accuracy of the determination of the closure condition or the penetration condition to a certain extent.
[0038] Based on the above implementation methods, such as Figure 2 As shown, Figure 2 A flowchart illustrating a generation method provided in this application embodiment. Figure 2 The above S121 may also include steps S211 and S212: Step S211: Determine the set of region pixel positions corresponding to at least one closed region, and the set of icon pixel positions corresponding to each application icon.
[0039] In the embodiments of this application, to determine whether an application icon is contained within a closed area, pixel positions can be used to first determine at least one set of region pixel positions corresponding to each closed area. The number of region pixel position sets can be the same as the number of closed areas. Simultaneously, the set of icon pixel positions corresponding to each application icon can also be determined. Determining these two sets of pixel positions can be achieved by establishing a planar coordinate system on the smart terminal display panel and then traversing the closed areas and application icons.
[0040] Step S212: If there is a target location set contained in the region pixel location set among the various icon pixel location sets, determine that at least one application icon is included in at least one closed region.
[0041] In embodiments of this application, the icon pixel location set can be traversed to determine whether each icon pixel location set is contained within at least one region pixel location set. If every pixel location in one icon pixel location set is contained within one region pixel location set, it can be considered that the icon pixel location set contains a target location set contained within the region pixel location set. Since each image pixel location set corresponds to an application icon, in this case, it can be determined that at least one closed region contains at least one application icon.
[0042] Based on the above embodiments disclosed in this application, the location of pixels can be used to determine whether an application icon is contained in a closed area, which can improve the accuracy of determining whether an application icon is contained in a closed area to a certain extent.
[0043] In some embodiments, such as Figure 3 As shown, Figure 3 A flowchart illustrating a generation method provided in this application embodiment. Figure 3 At least one second application icon includes at least one folder icon, S103, which can be achieved through S131 and S132: S131, determine that at least one folder icon corresponds to a folder containing a third application icon.
[0044] In embodiments of this application, if the second application icon includes at least one folder icon, to avoid nested folders that would make clicking icons within folders cumbersome for users, the third application icon contained in the folder corresponding to the marked at least one folder icon can be determined first. For example, if the marked folder icon includes both a music application icon and a video application icon, then both the music application icon and the video application icon can be determined as the third application icon.
[0045] S132, generate a target folder containing at least one second application icon other than at least one folder icon, a first application icon, and a third application icon.
[0046] In embodiments of this application, after determining the third application icon, all application icons other than at least one folder icon from at least one second application icon, the first application icon, and the third application icon can be placed into the newly generated target folder. This avoids generating subfolders within the existing folder.
[0047] Based on the above embodiments disclosed in this application, when marking folder icons on the movement trajectory, the icons in the marked folder can be placed together with other marked second application icons and first application icons into a newly generated target folder, which can avoid generating subfolders, improve the efficiency of users clicking on icons in folders, and enhance the user experience.
[0048] In some embodiments, S103 can also be implemented by one of S133 and S134: S133, at the end of the movement trajectory, generate a target folder containing a first application icon and at least one second application icon.
[0049] In the embodiments of this application, to avoid randomly determining the generation location of the target folder, the generation location of the folder can be determined before the folder is generated. Generally, it can be assumed that the final position after the user drags the first application icon (i.e., the end position of the movement trajectory) is the position where the user wants to generate the folder. Therefore, the generation location of the target folder can be set to the end position of the movement trajectory, and a target folder containing the first application icon and at least one second application icon can be generated at this end position.
[0050] In one possible embodiment, if the end position of the movement trajectory is contained within the set of icon pixel positions of the folder icon, the end folder position icon can be retained, and other second application icons besides that folder icon and the first application icon can be placed into the folder corresponding to that folder icon. Furthermore, if the second application icon contains other folder icons, the method described in S131 and S132 can be used to place the application icons inside the folders corresponding to the other folder icons into the folder corresponding to the end folder icon.
[0051] S134, determine the distance between multiple specified icon positions on the application page where the end position is located and the end position, and generate a target folder containing a first application icon and at least one second application icon at the specified icon position corresponding to the minimum distance.
[0052] In the embodiments of this application, considering that the endpoint may not be within the range of application icon locations specified on the smart terminal, the distance between the endpoint and multiple specified icon locations on the application page where the endpoint is located can be determined. The specified icon locations can be blank spaces without actual application icons; the distance can be the distance between the center point of the endpoint and the specified icon locations. After obtaining this distance, the minimum distance can be found, and the specified icon location corresponding to this minimum distance can be used as the folder generation location to generate a target folder containing a first application icon and at least one second application icon.
[0053] Based on the above embodiments disclosed in this application, the end position of the movement trajectory or the designated icon position closest to the end position can be used as the generation position of the target folder, and a target folder containing a first application icon and at least one second application icon can be generated at that position. This can avoid the random determination of the target folder position to a certain extent, so that the generation position of the target folder can match the user's intention, thereby improving the accuracy and readability of the target folder position and enhancing the user experience.
[0054] In some embodiments, such as Figure 4 As shown, Figure 4 A flowchart illustrating a generation method provided in this application embodiment. Figure 4 S101 can be implemented through S111 to S114: S111, in response to a movement operation on the first application icon, obtain the first movement trajectory of the first application icon on the first display page; the first application icon is located within the first display page.
[0055] In the embodiments of this application, if a large number of applications are installed in a smart terminal, it is impossible to display all application icons on a single display page. Therefore, a smart terminal can contain multiple display pages. The first display page can refer to the display page on the smart terminal that contains the first application icon. When the first application icon begins to move, a first movement trajectory can be formed on the first display page. In this way, the control center of the smart terminal can obtain the first movement trajectory of the first application icon on the first display page.
[0056] S112, when the first movement trajectory intersects with the edge of the first display page, the current display page is switched from the first display page to the second display page; the second display page and the first display page are adjacent desktops.
[0057] In the embodiments of this application, the edge of the first display page can refer to the edge of the first display page adjacent to other display pages. For example, if the display page of the smart terminal switches from the first display page to the second display page when the first page is moved to the left, then the right edge of the first page (that is, the left edge of the second display page after switching to the second display page) is the edge between the first display page and the second display page. If the first movement trajectory intersects with the edge of the first display page, it can be assumed that the user wants to mark the application icon contained in the second display page adjacent to the first display page. Therefore, the current display page can be switched from the first display page to the second display page. The second display page and the first display page are adjacent desktops of the same smart terminal.
[0058] S113, obtain the second movement trajectory of the first application icon on the second display page.
[0059] In the embodiments of this application, after the current display page switches to the second display page, the pick-up position of the first application icon will change to its position on the second display page. At this time, the control center can continue to acquire the second movement trajectory of the first application icon on the second display page. Specifically, after the current display page switches to the second display page, the initial position of the first application icon on the second display page can be the position where the edges of the first application icon intersect with the edges of the first display page. For example, if the first application icon intersects with the right edge of the first display page, then after the current display page switches to the second display page, the initial position of the first application icon is the right edge position of the second display page. If the user maintains this position for a duration exceeding a threshold duration, page turning will continue. If the user drags the first application icon away from the right edge position of the second display page within the threshold duration, the current display page remains the second display page.
[0060] S114, Based on the first movement trajectory and the second movement trajectory, determine the movement trajectory corresponding to the movement operation.
[0061] In the embodiments of this application, for the first and second movement trajectories formed by different display pages, if both the first and second movement trajectories are valid trajectories, then both the first and second movement trajectories can be used as the movement trajectories corresponding to the movement operation. If one of the first and second movement trajectories is invalid, then only the valid trajectory between the first and second movement trajectories can be used as the movement trajectory corresponding to the movement operation. The implementation details of invalid trajectories can be found in the embodiments under S122 and step B1, and will not be repeated here.
[0062] Based on the above embodiments disclosed in this application, when the first application icon moves and triggers a cross-page, two segments of movement trajectories of the two display pages before and after the cross-page can be obtained, and the final movement trajectory corresponding to the movement operation can be determined based on the two segments of movement trajectories. To a certain extent, this can improve the applicability of the movement trajectory, improve the accuracy of the movement trajectory, improve the operability of the movement trajectory, and further enhance the user experience.
[0063] In some embodiments, S114 can be achieved through steps C1 and C2: Step C1: If the second movement trajectory does not intersect with the edge, the first and second movement trajectories are jointly determined as the movement trajectory corresponding to the movement operation.
[0064] In the embodiments of this application, "edge" refers to the intersecting edge of the first display page and the second display page. Since the initial position of the second movement trajectory is the right edge of the second display page, the intersecting edge of the second display page with the first display page is the left edge of the second display page. If the second movement trajectory does not intersect with the intersecting edge of the first and second display pages, it can be assumed that the user intends to mark the application icon on the second display page. Therefore, the first and second movement trajectories can be jointly determined as the movement trajectory corresponding to the movement operation.
[0065] Step C2: If the second movement trajectory intersects with the edge, delete the second movement trajectory and determine the first movement trajectory as the movement trajectory corresponding to the movement operation.
[0066] In the embodiments of this application, considering that users may accidentally touch the edge and cause page turning, if the second movement trajectory intersects with the aforementioned edge (i.e., the intersection edge of the first display page and the second display page), it can be assumed that the user wants to switch back to the first display page. At this time, the second movement trajectory can be deleted, and only the first movement trajectory can be determined as the movement trajectory corresponding to the movement operation.
[0067] Based on the above embodiments disclosed in this application, when a smart terminal switches from a first display page to a second display page, the movement trajectory corresponding to the movement operation can be obtained by selecting from the first and second movement trajectories based on whether the second movement trajectory on the second display page intersects with the edge. To a certain extent, this can make the movement trajectory corresponding to the movement operation more in line with the user's intention and further improve the accuracy of the movement trajectory.
[0068] In some embodiments, such as Figure 5 As shown, Figure 5 A flowchart illustrating a generation method provided in this application embodiment. Figure 5 S103 may also include a process for generating folder names, which may specifically include S135 to S138: S135, obtain the applications corresponding to the first application icon and the second application icon respectively.
[0069] In the embodiments of this application, the generated folder typically has a folder name. To match this folder name with the application icons it contains, the applications corresponding to the first and second application icons can first be obtained. Here, an application refers to a specific application on a smart terminal, such as a specific music application, a specific video application, a specific game application, a specific shopping application, etc.
[0070] S136, Determine the common application attributes of the application; common application attributes characterize the common uses of the application.
[0071] In the embodiments of this application, after obtaining the applications corresponding to the first application icon and the second application icon respectively, the common application attributes of these applications can be determined. These common application attributes can characterize the common uses of the applications. Each application's application attributes can typically be stored as metadata in the application's registry; therefore, the application attributes of each application can be obtained by reading its registry. Alternatively, the application attributes of each application can be obtained through the application store's application classification information. Then, based on these application attributes, the common application attributes shared by these applications can be identified. For example, if game applications, music applications, and video applications all belong to entertainment applications, then entertainment is a common application attribute for game applications, music applications, and video applications; if music applications and video applications both belong to audiovisual applications, then audiovisual is a common application attribute for music applications and video applications. This common application attribute can be the minimum common classification attribute of each application.
[0072] S137, Determine the target folder name based on shared application attributes.
[0073] In the embodiments of this application, after obtaining the common application attributes of the application, the target folder name can be determined based on the common application attributes. For example, if the common application attribute is entertainment, the target folder name can be "Entertainment Application"; if the common application attribute is audio-visual, the target folder name can be "Audio-visual Application".
[0074] S138, Generate a target folder containing the first application icon and the second application icon, and whose folder name is the target folder name.
[0075] In the embodiments of this application, when generating a target folder containing a first application icon and a second application icon, the folder name of the target folder can be set to the target folder name obtained in S137.
[0076] Based on the above embodiments disclosed in this application, the folder name of the newly created folder can be determined according to the common application attributes of the applications corresponding to the first and second application icons marked by the movement trajectory. This can improve the readability and recognizability of the target folder to a certain extent and further enhance the user experience.
[0077] Based on the above embodiments, the method in S103 may further include: S139, If there are no shared application attributes between applications, determine the click frequency of the second application icon.
[0078] In the embodiments of this application, considering that the applications marked by users may not have common application attributes, in order to ensure that the name of the target folder can still be more in line with the user's usage habits, the click frequency of the second application icon can be determined first based on the user's historical usage data of the smart terminal.
[0079] S1310, determine the second application icon whose click frequency is greater than or equal to the target threshold as the target application icon.
[0080] In embodiments of this application, if the click frequency of the second application icon is greater than or equal to a target threshold, then the second application icon can be determined as the target application icon. It can be assumed that the application corresponding to the target application icon is an application frequently used by the user.
[0081] For example, if the statistical period is set to weekly and the target threshold is set to 3 clicks per week, then when the click frequency of a game application icon exceeds 3 times per week, the game application icon can be identified as the target application icon.
[0082] S1311, determine the first application type of the application corresponding to the target application icon and the second application type of the application corresponding to the first application icon.
[0083] In the embodiments of this application, since the first application icon is triggered by the user's primary click, its click frequency can be disregarded. Thus, after determining the target application icon based on the click frequency, both the first application type corresponding to the target icon and the second application type corresponding to the first application icon can be considered. The first and second application types can include all possible category information for the application. This narrows down the statistical scope of the application and makes it easier to find common category information.
[0084] For example, a specific music app can be either an audio-visual app or an entertainment app. Similarly, a specific short video app can be either an audio-visual app, an entertainment app, or a social app.
[0085] S1312, Generate target name based on first application type and second application type.
[0086] In the embodiments of this application, for the first application type and the second application type, firstly, common classification information between the first application type and the second application type can be found, and then, a target name can be generated based on the common classification information. Furthermore, if there is no common classification information between the first application type and the second application type, the target name can be a default name, such as "Folder 1", "Folder 2", etc.
[0087] S1313, Generate a target folder containing the first application icon and the second application icon, and the folder name is the target name.
[0088] In the embodiments of this application, when generating a target folder containing a first application icon and a second application icon, the folder name of the target folder can be set to the target name obtained in S1312.
[0089] Based on the above embodiments disclosed in this application, when the applications corresponding to the first application icon and the second application icon do not have common application attributes, the statistical range of the second application icon can be narrowed by the frequency of user clicks on the second application icon. The target name can be generated by the common category information of the target application icon after narrowing the range and the application corresponding to the first application icon. At the same time, it supports generating a default name when there is no common category information. To a certain extent, it can improve the matching degree between the name of the target folder and the user's usage habits, and further improve the user experience.
[0090] The following describes the application of the generation method provided in the embodiments of this application in a real-world scenario.
[0091] Currently, creating a folder on the desktop requires multiple steps. You either have to drag one application onto another to create a folder and then add more to it, or click on multiple icons and then click to create a folder. This process requires at least two stages and is quite cumbersome.
[0092] To address the above issues, this embodiment proposes: Drag an icon to circle one or more other icons. Releasing the drag creates a folder at the release point containing all circled icons and the dragged icon. When the dragged path includes multiple closed regions, the icons within each closed region are placed into a separate folder. The dragging path can be displayed during the dragging process. If the drag path does not completely enclose an application icon, those icons will not be placed in the newly created folder. If the drag path circles a folder, the icons within that folder, along with other circled icons, will be placed into the newly created folder. Furthermore, regardless of whether the circled icons correspond to the same type of application, they will all be placed in the newly created folder.
[0093] The specific steps for determining the circled icon are as follows: 1) First, capture the current screen screenshot, where the current screen screenshot refers to the screenshot of the display page where the icon is dragged; 2) Based on the dragging trajectory, the closed-loop outline drawn by the hand is found through the edge detection algorithm. In order to avoid detecting the edge of the icon, a unique display color of the dragging trajectory can be set, and the hue characteristics of the edge detection operator can be specified through this display color. 3) By using template matching, the icon inside the circle is matched with the icon template of known icons, thereby identifying the type of icon drawn in the circle; 4) A folder with the default name "Folder1" will be created at the location where you release the button.
[0094] like Figure 6 As shown, Figure 6 This is a schematic diagram of a display page provided in an embodiment of this application. The user drags icon 602 away from its original position 601, creating a movement trajectory. During the movement, icon 602 first circles icon 603, forming a closed area 604, and then circles icons 605 and 606, forming a closed area 607. The end position of the movement trajectory is position 608; therefore, the generated folder is located at position 608. The generated folder (not shown in the figure) may include icons 602, 603, 605, and 606.
[0095] Figure 7 A logic block diagram of a generation device provided in an embodiment of this application, such as Figure 7 As shown, the generating apparatus 700 may include: The first acquisition module 701 is used to obtain the movement trajectory corresponding to the movement operation in response to the movement operation of the first application icon. The second acquisition module 702 is used to determine that the movement trajectory meets the target conditions and obtain at least one second application icon marked on the movement trajectory. The generation module 703 is used to generate a target folder containing a first application icon and at least one second application icon.
[0096] In some embodiments, the target condition includes a closure condition or a penetration condition, and the second acquisition module 702 includes: The first determination submodule is used to determine whether the movement trajectory meets the closure condition and to determine the application icon surrounded by the movement trajectory as the second application icon. or, The second determination submodule is used to determine whether the movement trajectory meets the penetration condition, and to determine the application icon that the movement trajectory passes through as the second application icon.
[0097] In some embodiments, the first determining submodule includes: The first determining unit is configured to determine that the movement trajectory satisfies the closure condition if the movement trajectory forms at least one closed area and the at least one closed area includes at least one application icon. or, The second determination submodule includes: The second determining unit is used to determine if the movement trajectory satisfies the penetration condition if the movement trajectory does not form a closed area.
[0098] In some embodiments, the device 700 further includes: The first determining module is used to determine the set of region pixel positions corresponding to at least one closed region, and the set of icon pixel positions corresponding to each application icon. The second determining module is used to determine that at least one application icon is included in at least one closed region if there is a target location set contained in the region pixel location set among the various icon pixel location sets.
[0099] In some embodiments, at least one second application icon includes at least one folder icon, and the generation module 703 includes: The third determination submodule is used to determine the third application icon contained in the folder corresponding to at least one folder icon; The first generation submodule is used to generate a target folder containing at least one second application icon (excluding at least one folder icon), a first application icon, and a third application icon.
[0100] In some embodiments, the generation module 703 includes: The second generation submodule is used to generate a target folder containing a first application icon and at least one second application icon at the end of the movement trajectory. or, The third generation submodule is used to determine the distance between multiple specified icon positions on the application page where the end position is located and the end position, and to generate a target folder containing a first application icon and at least one second application icon at the specified icon position corresponding to the minimum distance.
[0101] In some embodiments, the first acquisition module 701 includes: The first acquisition submodule is used to acquire the first movement trajectory of the first application icon on the first display page in response to a movement operation on the first application icon; the first application icon is located within the first display page; The switching submodule is used to switch the current display page from the first display page to the second display page when the first movement trajectory intersects with the edge of the first display page; the second display page and the first display page are adjacent desktops; The second acquisition submodule is used to acquire the second movement trajectory of the first application icon on the second display page; The fourth determination submodule is used to determine the movement trajectory corresponding to the movement operation based on the first movement trajectory and the second movement trajectory.
[0102] In some embodiments, the fourth determining submodule includes: The third determining unit is used to determine the first and second moving trajectories together as the moving trajectory corresponding to the moving operation if the second moving trajectory does not intersect with the edge. The fourth determining unit is used to delete the second movement trajectory if it intersects with the edge, and to determine the first movement trajectory as the movement trajectory corresponding to the movement operation.
[0103] In some embodiments, the generation module 703 includes: The third acquisition submodule is used to acquire the applications corresponding to the first application icon and the second application icon, respectively. The fifth submodule is used to determine the common application attributes of the application; common application attributes represent the common uses of the application. The sixth submodule is used to determine the target folder name based on common application attributes; The fourth generation submodule is used to generate a target folder that contains the first application icon and the second application icon, and whose folder name is the same as the target folder name.
[0104] In some embodiments, the device 700 further includes: The seventh determination submodule is used to determine the click frequency of the second application icon if there are no shared application attributes between applications; The eighth determination submodule is used to determine the second application icon whose click frequency is greater than or equal to the target threshold as the target application icon; The ninth determination submodule is used to determine the first application type of the application corresponding to the target application icon and the second application type of the application corresponding to the first application icon, respectively. The fourth generation submodule is used to generate target names based on the first application type and the second application type; The fifth generation submodule is used to generate a target folder containing the first application icon and the second application icon, with the folder name being the target name.
[0105] It should be noted that, in the embodiments of this application, if the above-described generation method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware, software, or firmware, or any combination of hardware, software, and firmware.
[0106] This application provides another electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements some or all of the steps in the above-described method.
[0107] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements some or all of the steps in the above-described method. The computer-readable storage medium can be transient or non-transient.
[0108] This application provides a computer program including computer-readable code. When the computer-readable code runs in an electronic device, the processor in the electronic device executes some or all of the steps in the above-described method.
[0109] This application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above-described method. This computer program product can be implemented specifically through hardware, software, or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium; in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.
[0110] It should be noted that the descriptions of the various embodiments above tend to emphasize the differences between them, while their similarities or commonalities can be referred to interchangeably. The descriptions of the above embodiments of the device, storage medium, computer program, and computer program product are similar to the descriptions of the above method embodiments and have similar beneficial effects. For technical details not disclosed in the embodiments of the device, storage medium, computer program, and computer program product of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0111] Figure 8 This is a hardware entity diagram of an electronic device provided in an embodiment of this application, such as... Figure 8 As shown, the hardware entity of the electronic device 800 includes a processor 801 and a memory 802, wherein the memory 802 stores a computer program that can run on the processor 801, and the processor 801 executes the program to implement the steps in the method of any of the above embodiments.
[0112] The memory 802 stores computer programs that can run on the processor. The memory 802 is configured to store instructions and applications that can be executed by the processor 801. It can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the processor 801 and various modules in the electronic device 800. It can be implemented by flash memory or random access memory (RAM).
[0113] When processor 801 executes a program, it implements the steps of the generation method described above. Processor 801 typically controls the overall operation of electronic device 800.
[0114] This application provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the generation method as described in any of the above embodiments.
[0115] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0116] The aforementioned processor can be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), Controller, Microcontroller, and Microprocessor. It is understood that other electronic devices can also implement the functions of the aforementioned processor, and this application does not specifically limit the specific implementation.
[0117] The aforementioned computer storage media / memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM), etc.; or it can be various terminals that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0118] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above steps / processes do not imply a sequential order of execution; the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above embodiments of this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0119] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0120] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0121] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0122] Furthermore, in the various embodiments of this application, all functional units can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units. Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0123] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, magnetic disks, or optical disks.
[0124] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A generation method, the method comprising: In response to a movement operation on a first application icon, the movement trajectory corresponding to the movement operation is obtained; Determine that the movement trajectory meets the target conditions, and obtain at least one second application icon marked on the movement trajectory; Generate a target folder containing the first application icon and at least one second application icon.
2. The method according to claim 1, wherein the target condition includes a closure condition or a penetration condition, and the step of determining that the movement trajectory satisfies the target condition and obtaining at least one second application icon marked by the movement trajectory includes: Once the movement trajectory is determined to satisfy the closure condition, the application icon enclosed by the movement trajectory is identified as the second application icon. or, If the movement trajectory is determined to satisfy the penetration condition, the application icon that the movement trajectory passes through is identified as the second application icon.
3. The method according to claim 2, further comprising: Determine the set of region pixel positions corresponding to the at least one closed region, and the set of icon pixel positions corresponding to each application icon; If each of the icon pixel position sets contains a target position set included in the region pixel position set, then it is determined that the at least one closed region includes at least one application icon.
4. The method according to any one of claims 1 to 3, wherein the at least one second application icon includes at least one folder icon, and generating a target folder containing the first application icon and the at least one second application icon includes: Determine the third application icon contained in the folder corresponding to the at least one folder icon; Generate a target folder containing application icons other than the at least one folder icon from the at least one second application icon, the first application icon, and the third application icon.
5. The method according to any one of claims 1 to 3, wherein generating the target folder containing the first application icon and the at least one second application icon comprises: At the end of the movement trajectory, a target folder containing the first application icon and at least one second application icon is generated. or, Determine the distance between multiple specified icon positions on the application page where the end position is located and the end position, and generate a target folder containing the first application icon and the at least one second application icon at the specified icon position corresponding to the minimum value of the distance.
6. The method according to any one of claims 1 to 3, wherein obtaining the movement trajectory corresponding to the movement operation in response to a movement operation on a first application icon comprises: In response to a movement operation on the first application icon, obtain the first movement trajectory of the first application icon on the first display page; The first application icon is located within the first display page; When the first movement trajectory intersects with the edge of the first display page, the current display page is switched from the first display page to the second display page; the second display page and the first display page are adjacent desktops; Obtain the second movement trajectory of the first application icon on the second display page; Based on the first movement trajectory and the second movement trajectory, the movement trajectory corresponding to the movement operation is determined.
7. The method according to claim 6, wherein determining the movement trajectory corresponding to the movement operation based on the first movement trajectory and the second movement trajectory includes: If the second movement trajectory does not intersect with the edge, the first movement trajectory and the second movement trajectory are jointly determined as the movement trajectory corresponding to the movement operation; If the second movement trajectory intersects with the edge, delete the second movement trajectory and determine the first movement trajectory as the movement trajectory corresponding to the movement operation.
8. The method according to any one of claims 1 to 3, wherein generating the target folder containing the first application icon and the at least one second application icon comprises: Obtain the applications corresponding to the first application icon and the second application icon respectively; Determine the common application attributes of the application; The shared application attributes characterize the common uses of the application; Based on the shared application attributes, the target folder name is determined; Generate a target folder containing the first application icon and the second application icon, and whose folder name is the same as the target folder name.
9. The method according to claim 8, further comprising: If there is no shared application attribute among the applications, determine the click frequency of the second application icon; The second application icon whose click frequency is greater than or equal to the target threshold is identified as the target application icon; Determine the first application type of the application corresponding to the target application icon and the second application type of the application corresponding to the first application icon, respectively; Based on the first application type and the second application type, generate a target name; Generate a target folder containing the first application icon and the second application icon, with the folder name being the target name.
10. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, the processor executing the program to implement the generation method according to any one of claims 1 to 9.